-
Notifications
You must be signed in to change notification settings - Fork 14
refactor(app): grayscale execution polish — composer overlay, sidebar row, error page, right-panel divider #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8d9c7ea
chore(ui): add grayscale-audit scripts and README
Astro-Han 457b9e4
refactor(ui): grayscale token system + semantic shadow language
Astro-Han abc6869
refactor(ui): drop borders on raised surfaces, switch to shadow language
Astro-Han e29ca87
refactor(app): typography density across chips, sidebar, sections, tools
Astro-Han b02f487
feat(app): unified mac titlebar chrome + right-panel divider extension
Astro-Han b49b679
refactor(app): drop duplicate session title bar
Astro-Han fd14427
refactor(app): redesign session row — status right, archive removed
Astro-Han 4d8ef24
refactor(app): composer overlay + redesigned jump-to-bottom button
Astro-Han 3b981e3
refactor(app): error page editorial redesign
Astro-Han 890d6c0
refactor(app): sidebar polish — scroll, empty state, header guard
Astro-Han 2b7fab1
refactor(app): todo dock progress shows current step
Astro-Han 023bc02
fix(app): drive scroller padding from CSS variable, not inline writes
Astro-Han 57ee5b4
chore(app): drop dead SidebarPanel and orphan imports
Astro-Han File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| import { Dialog } from "@opencode-ai/ui/dialog" | ||
| import { Button } from "@opencode-ai/ui/button" | ||
| import { useDialog } from "@opencode-ai/ui/context/dialog" | ||
| import { createMemo, createSignal } from "solid-js" | ||
| import { useLanguage } from "@/context/language" | ||
| import { useSync } from "@/context/sync" | ||
| import { sessionTitle } from "@/utils/session-title" | ||
|
|
||
| export function DialogDeleteSession(props: { | ||
| sessionID: string | ||
| onConfirm: () => Promise<void> | void | ||
| }) { | ||
| const sync = useSync() | ||
| const language = useLanguage() | ||
| const dialog = useDialog() | ||
| const [deleting, setDeleting] = createSignal(false) | ||
|
|
||
| const name = createMemo( | ||
| () => sessionTitle(sync.session.get(props.sessionID)?.title) ?? language.t("command.session.new"), | ||
| ) | ||
|
|
||
| const handleDelete = async () => { | ||
| if (deleting()) return | ||
| setDeleting(true) | ||
| try { | ||
| await props.onConfirm() | ||
| dialog.close() | ||
| } finally { | ||
| setDeleting(false) | ||
| } | ||
| } | ||
|
|
||
| return ( | ||
| <Dialog title={language.t("session.delete.title")} fit> | ||
| <div class="flex flex-col gap-4 pl-6 pr-2.5 pb-3"> | ||
| <div class="flex flex-col gap-1"> | ||
| <span class="text-13-regular text-text-strong"> | ||
| {language.t("session.delete.confirm", { name: name() })} | ||
| </span> | ||
| </div> | ||
| <div class="flex justify-end gap-2"> | ||
| <Button variant="ghost" size="large" onClick={() => dialog.close()} disabled={deleting()}> | ||
| {language.t("common.cancel")} | ||
| </Button> | ||
| <Button variant="primary" size="large" onClick={handleDelete} disabled={deleting()}> | ||
| {language.t("common.delete")} | ||
| </Button> | ||
| </div> | ||
| </div> | ||
| </Dialog> | ||
| ) | ||
| } | ||
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.