Repository navigation
fix: keep drawing and window settings, movable favourites bar, quieter self-healing sync - #65
Merged
Merged
Conversation
The cursor, magnet, stay in drawing mode, lock and hide switches reset on every launch. They are now saved per computer in openterm.drawing-tools.v1 and restored at startup. The tool in hand is not restored, and neither is the eraser cursor, so a restart never deletes the first drawing clicked. The favourites bar sat fixed at the top centre of the charts. It now has a drag handle like the drawing style bar, keeps its place in meridian.favorites.position and stays inside the chart body when the window shrinks.
The main window always opened at 1440x900. Its normal bounds and its maximised or full-screen state are now saved in window.json and restored at startup. A window last left on a display that is gone opens centred on the primary display, shrunk to fit.
Unexpected errors, damaged-setup errors and data written by a newer version stopped sync until the user pressed Try again. They now retry on the scheduler's back-off with a new "retrying" status, journalled once per problem. Mass deletions, joining, stale or rolled-back history, tampering, removal and lost GitHub sign-ins still stop and ask. The status bar flipped between "Synced" and "Syncing" with a spinner on every poll. It is now a small dimmed cloud icon that shows how the last run ended, with words only when the user must act.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three fixes from user feedback:
openterm.drawing-tools.v1). The main window reopens at its last size and place, maximised or full screen if it was (window.json,electron/window-bounds.ts).meridian.favorites.position) and is kept inside the charts when they shrink.retryingstatus, journalled once per problem. The status bar cell is a small dimmed cloud icon that shows how the last run ended, so it no longer flips to "Syncing" with a spinner on every poll; words appear only when the user must act.What changed
src/lib/drawing-tools.ts,src/lib/drawing-tools-model.ts(new),src/main.tsx: load and save the rail switches.packages/meridian-charts/src/ui/toolbar.ts,ui/styles.ts: favourites bar handle, drag, saved position, clamping on resize.electron/window-bounds.ts(new),electron/main.ts: save and restore the main window placement.electron/sync-service.ts,shared/sync.ts:retryQuietlyfor setup, damaged-file, unknown and newer-format errors; the unusedfailedattention reason is removed.src/lib/sync.ts,src/components/sync/SyncStatus.tsx,SyncDialog.tsx,src/components/ui/Icon.tsx,src/styles.css: settled status in the store, icon-only status cell, retry banner in the dialog.Behaviour choices
How was this tested?
npm run typecheck,npm test(852 pass) andnpm run buildpass locally.Checklist
npm run checkpasses (typecheck, tests and build).docs/is updated where needed (no user guide change needed).CHANGELOG.md.