Skip to content

fix(dialogs): keep GitHub Owner editable during creation - #1471

Merged
reason-machines[bot] merged 20 commits into
mainfrom
fix/dlg-prheader-titledialog-6013
Nov 17, 2026
Merged

reason-machines[bot] merged 20 commits into
mainfrom
fix/dlg-prheader-titledialog-6013

Conversation

@reason-machines

@reason-machines reason-machines Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Conductor Rebuild / SAME6013 / GITHUB-OWNER-PENDING-6013.

Keep the loaded GitHub Owner selector editable while repository creation is pending, as in retained Conductor. One production expression: remove || pending from the Owner select's disabled prop. Owner loading/error/refetch gating, selected-owner reconciliation, name input, captured submission arguments, duplicate-submit guard, provider calls and shared dialogs stay unchanged.

Proof

Fresh default read: 350276dac249fa14d24ec2460c5397a1e61cec97. Retained real-Conductor renderer was rehashed: SHA-256 5199d392ef2dec92886393f181bc98531efc6251f75b9effecd9f60dc9515dde. Eighteen locked literal producer/caller/native-trigger/selection bindings are retained; original code was read as untrusted data, never evaluated.

  • node --experimental-strip-types --test src/components/githubRepoPendingOwner.test.ts — frozen baseline 7 pass / 2 intended pending-Owner failures → identical 9/9 pass. Both checks assert enabled state before invoking selection. Actual component/state model; synthetic outer frame and deferred backend ports. Captured first request stays unchanged, changed draft cannot bypass duplicate protection, rejection keeps the edited owner, retry captures it, success keeps callback/close behavior.
  • node --experimental-strip-types --test src/components/githubRepoOwners.test.ts src/components/githubRepoPendingName.test.ts src/components/githubRepoDismissal.test.ts src/components/githubRepoName.test.ts src/state/githubRepoDialog.test.ts — 19/19 pass before and after, unchanged.
  • python3 evidence/dialogs/github-owner-pending/verify.py — passed. Frozen fixture SHA, exact one-expression patch, 18 source bindings and raw TAP counts verified; supplying the held original renderer/index additionally passed all byte-range comparisons.
  • npm ci --ignore-scripts --no-audit --no-fund — passed.
  • npm run build — passed (branding, full TypeScript, production Vite; existing large-chunk warning only).
  • npm run lint:colors — passed (6 tests, 1,274-file scan).
  • git diff --check origin/main...HEAD — passed. Original RED TAP is archived byte-exact in gzip, not trimmed/regenerated.
  • Sole heavy slot explicitly released at 19:42:15Z before its deadline; own heavy process readback empty.

Visible proof and limits

Browser proof passed: frozen baseline 4/6 (two intended pending-Owner failures) → identical treatment 6/6. Same six controls and identical 186-input graphs, differing only in GitHubRepoDialog. Actual DialogFrame, portal, motion, keybindings and production styles; synthetic backend ports and clearly labelled settlement controls inside the real modal. Baseline edit/retry stops at the enabled prerequisite, before touching the disabled selector. Treatment preserves the first person request, edits the draft to team without duplicating submission, retains team on rejection, retries with team and resolves/close-callback once. Loading, idle, unedited rejection and successful resolution controls passed on both sides.

python3 evidence/dialogs/github-owner-pending/frozen-browser/verify.py — passed all 12 verdicts, five intermediate stages, frozen fixture/source hashes and cleanup; 32 raw readbacks and 17 assertion requests preserved with original source IDs/revisions/hashes. Real click/submit events are trusted; select value setter + normal input/change dispatch is not a trusted native picker interaction.

Matched pending images were viewed and published:

GitHub Owner baseline pending — disabled

GitHub Owner treatment pending — enabled

Browser/server cleanup passed: owned tabs empty, all own previews stopped/listening null, own server processes absent, independent port48733 bind passed. Explicit release to ledger/49 at 20:00:16Z, before the 20:04:41Z deadline. No preview remains running.

The refetch runtime control covers ordinary organizations-error retry, not cached background-query parity. This pending-only change does not broaden the existing OwnersState model. Live-original side-by-side, current installed original identity, full-App, macOS/WebKit, native, real-provider and packaged inclusion remain unverified/not run under existing exclusive custody. No Mac/native operation, credentials or real repository creation occurred.

Self-contained source, frozen regression and build evidence. Ready against main; merge only once all exact-head checks pass.

reason-machines Bot and others added 20 commits November 16, 2026 23:37
…(GAP-DLG-01 tail)

Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
…DialogFrame (GAP-DLG-03)

Both dialogs were using custom modal-backdrop / oc-alert-backdrop wrappers
outside the established DialogFrame / ConfirmationDialog primitives.

ResetChatDialog (src/features/chat/ResetChatDialog.tsx):
- Replace outer modal-backdrop oc-alert-backdrop + inner alertdialog div with
  DialogFrame kind="alert", which provides AlertDialog semantics, backdrop
  blur, motion, focus containment, return focus, and ⌘↵ dispatch to
  [data-primary-action] via the keybinding registry.
- Cancel: className="btn" + data-dialog-cancel (DialogFrame's initialFocus
  selector for alert dialogs); remove explicit autoFocus prop.
- Reset: className="btn btn-danger" + data-primary-action (unchanged) +
  disabled={busy}; kbd hint class updated to project-confirmation-kbd.
- Spinner and error display preserved; onKeyDown removed (handled by
  DialogFrame).

KeyboardShortcutsDialog (src/components/KeyboardShortcutsDialog.tsx):
- Replace modal-backdrop outer div + modal ks-dialog inner div with
  DialogFrame kind="dialog" className="ks-dialog".
- h2 heading gets id=KEYBOARD_SHORTCUTS_TITLE_ID; DialogFrame uses
  aria-labelledby instead of aria-label.
- data-dialog-id preserved on inner wrapper.

Tests (3 files):
- dialogMotion removed from allowed set (no longer a direct dependency).
- DialogFrame stubbed in each require handler: renders a plain alertdialog
  div with onKeyDown Escape support; layout/motion/a11y are DialogFrame's.
- Selectors updated: cancel via data-dialog-cancel, shortcuts via
  project-confirmation-kbd.
- Backdrop tests updated: AlertDialog has no click-dismiss; test verifies
  onMouseDown on the alertdialog element has no close handler.
- Focus test updated: verify data-dialog-cancel on Cancel instead of
  autoFocus prop.
- ⌘↵ keyboard tests collapsed to data-primary-action attribute check and
  click test; DialogFrame owns the keyboard dispatch.

Typecheck: clean. 12/12 resetChat unit tests pass.
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Remove the legacy nested oc-alert shell and reuse the existing project-confirmation variant. Preserve callbacks, alert semantics, focus markers and the frozen five-case regression. Hosted baseline CI failed only its two frame assertions. No shared CSS or runtime admission changes.

Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
…edialog-6013

Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Conductor Rebuild: unchanged frozen regression 7 pass / 2 intended failures -> 9/9 pass; unchanged adjacent tests 19/19 before and after. Exact source audit, default branding/typecheck/Vite build and color lint passed. Sole heavy slot explicitly released with own processes empty. Separate browser admission pending; native and package verification remain with existing custodians.

Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Freeze identical browser controls, original DOM receipts, matched pending screenshots, and the early resource-release receipt. Baseline reproduces both intended failures; treatment passes all six controls without native or provider IO.

Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>

Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
@reason-machines
reason-machines Bot merged commit c22e27d into main Nov 17, 2026
7 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.

0 participants