Skip to content

Settings: address sub-tab review feedback - #38

Merged
tpaulshippy merged 2 commits into
mainfrom
settings-review-feedback
Oct 20, 2026
Merged

tpaulshippy merged 2 commits into
mainfrom
settings-review-feedback

Conversation

@tpaulshippy

@tpaulshippy tpaulshippy commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #37 addressing the 4 cubic P2s:

  1. Drafts cleared on success — create/promote/commit/new-branch now consume their ghDraft fields.
  2. Model setup (API key + gateway) renders before the status-gated early return, so BYOK users are unaffected by status loading/failure (restores pre-split behavior).
  3. Delete-branch enablement recomputes in the input handler via syncDelBtn.
  4. Branch drafts scoped to the repo — ghResetBranches clears picker/delete drafts (called on open/create/promote/logout); switch/new track the picked branch; delete clears the deleted name.

Test: extended branches.test.ts served-page needles covering each fix.


Summary by cubic

Settings now keep model setup available while GitHub status loads or fails, and clear completed action drafts without losing text typed mid-flight.

  • Drafts clear only when they still match what was submitted, so input typed during an in-flight action survives.
  • Branch drafts reset only on a repo change; same-repo History loads keep the picker input, and logout clears them.
  • Switch, new, and delete sync the picker to the refreshed branch state (including error paths), and the Delete button enables while typing.
  • Adds served-page checks covering these behaviors.

Written for commit d65bacf. Summary will update on new commits.

View guided diff Turn on auto-fix

- Clear consumed drafts on success (create/promote/commit/new-branch)
- Render model setup before the status gate so BYOK works while loading
- Recompute Delete-branch enablement while typing
- Scope branch drafts to the repo via ghResetBranches; track picked
  branch across switch/new/delete

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread src/index.ts Resolved
Comment thread tests/branches.test.ts Resolved
Comment thread src/index.ts Resolved
Comment thread src/index.ts Resolved
Comment thread src/index.ts Resolved
- Compare-and-clear drafts (create/promote/commit/new-branch) so
  text typed mid-flight survives the in-flight action
- Scope branch-draft reset to repo changes (ghNoteLinked/ghSetLinked);
  same-repo History loads keep picker input; logout clears
- Sync picker to refreshed current in new/switch/delete catch paths;
  drop delete drafts only when the name is actually gone
- Test asserts structure: setup-before-gate ordering, handler body,
  guarded clears
@tpaulshippy
tpaulshippy merged commit c0ad651 into main Oct 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant