-
Notifications
You must be signed in to change notification settings - Fork 386
Add desktop dialogs framework #5605
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
Conversation
🎭 Playwright Test Results⏰ Completed at: 09/17/2025, 11:22:26 PM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
<style scoped> | ||
@reference '../assets/css/style.css'; | ||
.p-button-secondary { | ||
@apply text-white rounded-lg border-none bg-neutral-600; | ||
} | ||
.p-button-secondary:hover { | ||
@apply bg-neutral-550; | ||
} | ||
.p-button-secondary:active { | ||
@apply bg-neutral-500; | ||
} | ||
.p-button-danger { | ||
@apply bg-coral-red-600 border-0; | ||
} | ||
.p-button-danger:hover { | ||
@apply bg-coral-red-500; | ||
} | ||
.p-button-danger:active { | ||
@apply bg-coral-red-400; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope 🤖
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The border-0 needs to go, but how would you like this done? I do not want to blast over the entire frontend, which is how I would normally go about setting severity colours (globally).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline:
- This is not the frontend pattern
- It is attempting to emulate a second
style.css
, as we cannot easily use one - A temporary exception is being made until we either: unify all designs on the same buttons, or this just gets split out into a smaller, desktop-only section.
48a837c
to
04738d4
Compare
- Added --color-danger-button base color (#f14352) - Defined three state variants using rgb(from var()) syntax: - default: 50% opacity - hover: 75% opacity - active: 88% opacity - Updated DesktopDialogView to use theme variables
The alpha colours do not work in light mode. There should be no visible change in dark mode from this commit.
This reverts commit 851f57cd8718b6595488301f90c2dd1c94e66de0.
46f4126
to
7149143
Compare
### Summary Adds desktop dialog framework with data-driven dialog definitions. ### Changes - Data-driven dialog structure in `desktopDialogs.ts` - Dynamic dialog view component with i18n support - Button action types: openUrl, close, cancel - Button severity levels for styling (primary, secondary, danger, warn) - Fallback invalid dialog for error handling - i18n collection script updated for dialog strings
## Summary Cherry-picked PR #5605 (Add desktop dialogs framework) to core/1.27 branch for hotfix release. ## Cherry-picked commits - 09e7d10: Add desktop dialogs framework (#5605) ## Changes - Data-driven dialog structure in `desktopDialogs.ts` - Dynamic dialog view component with i18n support - Button action types: openUrl, close, cancel - Button severity levels for styling (primary, secondary, danger, warn) - Fallback invalid dialog for error handling - i18n collection script updated for dialog strings ## Testing - Typecheck passed ✓ - Cherry-pick applied cleanly without conflicts ## Impact This adds the desktop dialog framework feature to the stable 1.27 branch, allowing desktop applications to display standardized dialogs. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5634-Hotfix-Cherry-pick-desktop-dialogs-framework-to-core-1-27-2726d73d3650811188e7f7e58766d52f) by [Unito](https://www.unito.io)
### Summary Adds desktop dialog framework with data-driven dialog definitions. ### Changes - Data-driven dialog structure in `desktopDialogs.ts` - Dynamic dialog view component with i18n support - Button action types: openUrl, close, cancel - Button severity levels for styling (primary, secondary, danger, warn) - Fallback invalid dialog for error handling - i18n collection script updated for dialog strings
Summary
Adds desktop dialog framework with data-driven dialog definitions.
Changes
desktopDialogs.ts
Review focus
Screenshots
When a corrupt environment is detected during server start:

If we make mistakes during dev (should NEVER be seen in prod):
