-
Notifications
You must be signed in to change notification settings - Fork 0
feat(slice-032): complete audit remediation — export status close button + verification #139
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -322,8 +322,19 @@ export function MermaidPreviewPanel({ | |
| : styles.exportWorking | ||
| } | ||
| role={exportStatus.type === "error" ? "alert" : "status"} | ||
| aria-live={exportStatus.type === "error" ? undefined : "polite"} | ||
| > | ||
| {exportStatus.message} | ||
| <span>{exportStatus.message}</span> | ||
| {exportStatus.type !== "working" && ( | ||
| <button | ||
| type="button" | ||
| onClick={() => setExportStatus({ type: "idle" })} | ||
| aria-label="Close export status message" | ||
| className={styles.statusCloseButton} | ||
| > | ||
| <span className="codicon codicon-close" aria-hidden="true" /> | ||
| </button> | ||
| )} | ||
|
Comment on lines
+328
to
+337
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win Add tests for the new dismiss path. This introduces user-facing state transitions (show close button for success/error, hide for working, click resets to idle). The provided test context covers status/alert roles, but not this new close interaction. A focused test here would prevent regressions in exactly the thing this PR adds. 🤖 Prompt for AI Agents |
||
| </div> | ||
| )} | ||
| {preview.status !== "ok" ? ( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.