feat: Preferences page with project metadata, autosave, and editor se… - #5
Merged
Conversation
…ttings The Settings nav page becomes a real Preferences page with three sections. Project holds per-project metadata (author, comment, and a new repository link on ProjectData) that dirties the project like any other edit. Development adds an autosave toggle with a 1-60 minute interval — it only fires while the project is dirty and already has a path, never raising a dialog — plus a toggle for reopening the last project on launch. Editor covers zoom sensitivity, collapsed preview lines for the node editor's bubbles, per-entity delete confirmations, and a language switcher. Canvas zoom is now animated (each wheel tick glides ~120ms, chaining from the in-flight target), with the range tightened from 0.1-4.0 to 0.2-3.0 and sensitivity read from config. Delete confirmations gain separate toggles for nodes, characters, and blocks (blocks default off, matching prior behavior — they also gain their own dialog for when it's on), and every confirm dialog carries a "Don't ask again" checkbox that flips the matching toggle when confirmed. The language override is read before i18n init at startup and applies live when switched, refreshing menus and nav labels; Help gains a Language item that jumps to Preferences and pulses the language row with the Find-style glow. App-level values persist through cosmic_config with backward- compatible defaults; f32-ish settings are stored as integer percents to satisfy the config entry's Eq requirement.
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.
Preferences page
Settings tab is now Preferences, with three sections.
Project
Development
Editor
All app-level settings persist via cosmic-config with backward-compatible defaults.