refactor(ui): consolidate bulk modals and sprint Primer shell#48
Merged
Conversation
Replace per-action bulk modal components with shared modal shell and factory patterns; refresh sprint modal/settings to match GitHub-native Primer CSS and extract sprint settings helpers with tests.
Contributor
There was a problem hiding this comment.
3 issues found across 22 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…cape Restore bulk close reason selection via ModalShell, prune disconnected sprint header widgets, and isolate modal Escape from global shortcuts.
Contributor
There was a problem hiding this comment.
2 issues found across 6 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Mark menu close always uses COMPLETED per ADR/regression spec. Re-check selection after async PAT validation before opening modal.
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
ModalShelland route bulk/sprint dialogs through the modal factory for consistent Primer layoutChanges
Modal infrastructure (
src/ui/modal-shell.tsx,src/lib/modal-factory.tsx,src/lib/primer-css-helper.ts)Bulk actions (
src/features/bulk-actions-*.tsx, deletedbulk-*-modal.tsx)Sprint UI (
src/features/sprint-*.tsx,src/features/sprint-settings-utils.ts)sprint-settings-utilsplus tests for settings derivationContent script (
src/entries/content.ts)Test Plan
pnpm typecheckpasses locallySummary by cubic
Consolidated bulk action modals and rebuilt the sprint panel on a shared
ModalShellfor a consistent Primer look and correct focus/Escape behavior. Restores close-reason selection, streamlines sprint widgets, and removes duplicate components.Refactors
ModalShelland updated the modal factory to mount dialogs with shared Primer styling, motion, and Escape isolation.BulkCloseModal,BulkLockModal,BulkOpenModal,BulkPinModal,BulkUnpinModal); routed remaining flows through the factory and ported close/delete toModalShell.ProgressBarand updated header widget styling.sprint-settings-utilswith tests; extendedprimer-css-helperwith chip/button presets; injected sprint UI via light DOM usingctx.Bug Fixes
ModalShelltests to verify.Written for commit 63bbd43. Summary will update on new commits.