[PR #4008] [MERGED] Extension settings: accent colors for enabled/delete + wrap dialog hashes #6199

Closed
opened 2026-10-23 04:08:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4008
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/extension-settings-accent


📝 Commits (1)

  • 67e6e93 Use accent (not stoplight colors) for extension list and wrap dialog hashes

📊 Changes

2 files changed (+7 additions, -6 deletions)

View changed files

📝 packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx (+4 -5)
📝 packages/client/src/components/ui/AppDialogRenderer.tsx (+3 -1)

📄 Description

Linked issue

Follow-up to #4006/#4007, addressing further maintainer UI feedback after testing Personal Extensions.

Why this change

  1. Enabled extensions in the list were highlighted with a hardcoded emerald green (row, icon badge, and the "Enabled"/"Running" status pill) instead of the accent color.
  2. The delete confirmation button used the destructive (red) tone instead of the accent styling.
  3. The run/delete confirmation dialog did not wrap a long unbroken SHA-256 hash, so it overflowed off the side of the box.

What changed

  • Enabled list styling → accent: the enabled row background/border, the enabled icon badge, and the "Enabled"/"Running" status pill now use var(--primary) tokens instead of emerald. The needs-approval pill drops amber for a neutral accent tint.
  • Delete confirm → accent: removeExtension drops tone: "destructive", so the confirm button uses the standard accent styling. The confirmation copy is unchanged. Genuine error banners (load/permission errors, server errors) keep the destructive red, since those are errors, not actions.
  • Dialog wrapping: AppDialogRenderer adds break-words so long unbroken tokens (a full sha256: hash) wrap inside the dialog instead of overflowing. This is an app-wide dialog improvement and only affects tokens that would otherwise overflow.

Third-party parity (requested)

Both the Personal and External extension tabs render through the same list rows and the same confirmation dialog, so all three fixes apply identically to imported third-party extensions.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated: pnpm check passes.

Manual verification notes

  • Enable a browser extension and confirm the row, icon, and status pill use the accent color (light + dark), for both a Professor Mari draft and an imported third-party extension.
  • Click delete and confirm the dialog's Delete button uses the accent color and the long hash in the message wraps inside the box.
  • Confirm error states (e.g. no Admin Access) still show the red error banner.

Docs and release impact

  • No docs changes needed (styling only)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Styling-only change; screenshots to be added during manual verification.

Summary by CodeRabbit

  • Style

    • Updated personal extension status indicators and cards with refreshed primary color styling.
    • Improved confirmation dialog message formatting for better text wrapping and preserved whitespace.
  • Bug Fixes

    • Removed the destructive visual treatment from the personal extension deletion confirmation dialog.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4008 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/extension-settings-accent` --- ### 📝 Commits (1) - [`67e6e93`](https://github.com/Pasta-Devs/Marinara-Engine/commit/67e6e93cc8b2a918b138f203b67ca6613679b64f) Use accent (not stoplight colors) for extension list and wrap dialog hashes ### 📊 Changes **2 files changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx` (+4 -5) 📝 `packages/client/src/components/ui/AppDialogRenderer.tsx` (+3 -1) </details> ### 📄 Description ## Linked issue Follow-up to #4006/#4007, addressing further maintainer UI feedback after testing Personal Extensions. ## Why this change 1. Enabled extensions in the list were highlighted with a hardcoded emerald green (row, icon badge, and the "Enabled"/"Running" status pill) instead of the accent color. 2. The delete confirmation button used the destructive (red) tone instead of the accent styling. 3. The run/delete confirmation dialog did not wrap a long unbroken SHA-256 hash, so it overflowed off the side of the box. ## What changed - **Enabled list styling → accent:** the enabled row background/border, the enabled icon badge, and the "Enabled"/"Running" status pill now use `var(--primary)` tokens instead of emerald. The needs-approval pill drops amber for a neutral accent tint. - **Delete confirm → accent:** `removeExtension` drops `tone: "destructive"`, so the confirm button uses the standard accent styling. The confirmation copy is unchanged. Genuine error banners (load/permission errors, server errors) keep the destructive red, since those are errors, not actions. - **Dialog wrapping:** `AppDialogRenderer` adds `break-words` so long unbroken tokens (a full `sha256:` hash) wrap inside the dialog instead of overflowing. This is an app-wide dialog improvement and only affects tokens that would otherwise overflow. ### Third-party parity (requested) Both the Personal and External extension tabs render through the same list rows and the same confirmation dialog, so all three fixes apply identically to imported third-party extensions. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated: `pnpm check` passes. ### Manual verification notes - Enable a browser extension and confirm the row, icon, and status pill use the accent color (light + dark), for both a Professor Mari draft and an imported third-party extension. - Click delete and confirm the dialog's Delete button uses the accent color and the long hash in the message wraps inside the box. - Confirm error states (e.g. no Admin Access) still show the red error banner. ## Docs and release impact - [x] No docs changes needed (styling only) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence Styling-only change; screenshots to be added during manual verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated personal extension status indicators and cards with refreshed primary color styling. * Improved confirmation dialog message formatting for better text wrapping and preserved whitespace. * **Bug Fixes** * Removed the destructive visual treatment from the personal extension deletion confirmation dialog. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:08:04 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6199
No description provided.