Repository navigation
fix(dialogs): keep GitHub Owner editable during creation - #1471
Merged
Merged
Conversation
…(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>
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
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
|| pendingfrom 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-2565199d392ef2dec92886393f181bc98531efc6251f75b9effecd9f60dc9515dde. 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.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:
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.