Repository navigation
feat(native): settings Projects page with project actions - #63
Merged
Merged
Conversation
Open
Port Settings > Projects: the project list, each project's name, icon reset, pin, archive, New threads overrides, actions (add, edit, delete, import from t3.json, reset, shortcuts), checkouts and removal. Open it from the settings nav and search, the thread and project menus, the project filter, and the command palette.
Build project override writes when the settings queue sends them, so a Model or Workspace change queued behind another keeps it, and send action lists the same way. Offer only models every grouped checkout can run, virtualize the project list with a linear shared-name check, and refetch a project's favicon when its chosen image changes.
rynfar
force-pushed
the
nw/60-projects
branch
from
November 2, 2026 18:57
84027be to
ab190c8
Compare
Owner
Author
|
Review round 1, addressed in ab190c8 (rebased on
|
Owner
Author
|
On finding 3 (explicit automatic model at project scope), I checked again and I'm keeping my earlier answer.
Adding an inline "automatic" reset at project scope would add a control the web doesn't show, so I haven't added one. If you have a web build where it appears at project scope, a capture would change my mind. |
This was referenced Nov 2, 2026
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.
Problem
The native client had no Settings → Projects page. "Project settings" was hidden in the thread menu and missing from the project menu, so a project's name, pin, archive state, New threads overrides and actions could only be changed on the web. Closes #60 (ledger row ST-PROJECTS).
Approach
Ported
ProjectsSettings.tsx,ProjectSettingsPanel.tsxandProjectActionsSettings.tsx, along with what they render:ProjectActionsList,ProjectDefaultsSettingsat project scope, and theprojectScriptEditordialog.settings/projects.rs: the group list and its order; the row that follows the project after a regroup; icon decode, description and default;project.updateand forcedproject.deletepayloads; rename rules; the Danger copy;planProjectRemovalandConfirmDialogHost's title/description split.projectOverrideWrites/planScopedSettingsClear), which keep keys this client doesn't read.settings/project_actions.rs: the editor form rules, the id and role rules (buildProjectScript,releaseClaimedRoles,nextProjectScriptId), thekeybindingValueForCommandround trip, and theuseProjectScriptSettingswrite plan: the override write, then upsert, replace or remove, keeping a shortcut that another project still uses.parseT3ProjectFilewith lenient JSON, and the importable filter.ProjectScriptnow round-trips every field (async,previewUrl,autoOpenPreview). Project overrides keep their raw entry.ProjectShelldecodesfaviconPathandprojectIcon.settings/projects.rs: the list and the project picker ("Applying settings for …", the project half ofSettingsScopeSentence). The page shows Name, Project icon (preview and reset), Pin, Archive, New threads (Model, Workspace), Checkouts and Danger. Removal confirms with the web's message and returns to the list.settings/project_actions.rs: the Actions section, with import menu, list, reset to inherited value and mixed state, plus the invalid t3.json row and the editor dialog (icon picker, shortcut capture, delete confirmation).project-overview,project-actions); the thread context menu (sidebar and chat header); the project menu; a gear button on each project-filter row; and the palette's "Project settings".Not ported (row is
partial)projectIconoverrides yet. The reset works, and afaviconPathshows through the server's favicon.Ledger
ST-PROJECTS→partial, Native =crates/{app,core}/src/settings/{projects,project_actions}.rs, Issue #60.Evidence
settings::projects::tests::*(9) andsettings::project_actions::tests::*(10), includingdeleting_an_action_keeps_a_shortcut_another_project_still_uses,resetting_the_override_clears_it_and_drops_orphaned_shortcuts,override_writes_keep_unknown_keys_and_clear_to_null,the_project_model_skips_overrides_on_disabled_instances,removal_confirmations_follow_plan_project_removalandt3_json_parses_leniently_and_rejects_invalid_files. Updated tests:nav_keeps_the_web_order_and_drops_unported_sectionsand the project menu labels.cargo run -p t3-client --example project_settings_probe -- --allow-write --dir <scratch>. It renames, pins and unpins, archives and unarchives, sets and resets the icon, sets and clears the workspace override, imports Lint from t3.json, adds Dev with mod+shift+9, rebinds it (replace), deletes it (shortcut removed), resets the override, checks the keybindings are unchanged, and removes the project. Transcript:/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/3ca997f3-68be-482e-8fff-7893917dbe2a/scratchpad/nw60/probe-transcript.txt/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/3ca997f3-68be-482e-8fff-7893917dbe2a/scratchpad/nw60/projects-list.png: the project list/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/3ca997f3-68be-482e-8fff-7893917dbe2a/scratchpad/nw60/project-page.pngand/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/3ca997f3-68be-482e-8fff-7893917dbe2a/scratchpad/nw60/project-page-full.png: the project page/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/3ca997f3-68be-482e-8fff-7893917dbe2a/scratchpad/nw60/add-action.png: the Add Action dialogcargo clippy --workspace --all-targets -- -D warnings✓ (and--features snapshot),cargo test --workspace✓,node scripts/gen-theme.ts --check✓,node --test parity/sync.test.ts✓,node ../../apps/native/conformance/generate.ts --check✓.