-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix: FIT-159: Storage error logs modal not optimized for dark mode #7867
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
fix: FIT-159: Storage error logs modal not optimized for dark mode #7867
Conversation
…into fb-fit-159/storage-error-logs-modal-not-optimized-for-dark-mode
✅ Deploy Preview for heartex-docs canceled.
|
|
/git merge
|
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
/git merge
|
|
/git merge
|
…environments. Improves look and feel of Card component so the card for added storage is adapted to dark mode. Reuses existing useCopyText utility for copying. Increases the visibility of the Failed status and adds (View Logs) text to convey that it can be clicked.
…rage-error-logs-modal-not-optimized-for-dark-mode
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7867 +/- ##
===========================================
- Coverage 69.91% 65.41% -4.50%
===========================================
Files 675 466 -209
Lines 48981 32238 -16743
Branches 8409 8409
===========================================
- Hits 34243 21090 -13153
+ Misses 14738 11148 -3590
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This PR optimizes the Storage error logs modal for Dark Mode and refines related UI components to improve readability, styling consistency, and user interaction.
- Introduces
variantprop inCodeBlockfor different visual states and adds custom scrollbars with<pre>wrapping. - Unifies card component borders by replacing box-shadows with border-bottoms and updating border color tokens.
- Refactors the error-log modal in
StorageSummaryto useCodeBlock, adds a copy-to-clipboardCopyButton, updates modal title, footer link, and status text to "Failed (View Logs)".
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| web/libs/ui/src/lib/code-block/code-block.tsx | Added variant prop/styles, custom scrollbars, refactored to wrap code in <pre> |
| web/libs/ui/src/lib/Card/Card.module.scss | Replaced box-shadow with border-bottom; updated border color variable |
| web/apps/labelstudio/src/pages/Settings/StorageSettings/StorageSummary.jsx | Reworked error-log modal to use CodeBlock + CopyButton, updated link, modal title, and status |
| web/apps/labelstudio/src/pages/Settings/StorageSettings/StorageCard.jsx | Added top margin (mt-3) to the sync button container |
| web/apps/labelstudio/src/components/Card/Card.scss | Replaced box-shadow with border-bottom for consistency |
web/apps/labelstudio/src/pages/Settings/StorageSettings/StorageSummary.jsx
Show resolved
Hide resolved
web/apps/labelstudio/src/pages/Settings/StorageSettings/StorageSummary.jsx
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/pages/Settings/StorageSettings/StorageSummary.jsx
Outdated
Show resolved
Hide resolved
…into fb-fit-159/storage-error-logs-modal-not-optimized-for-dark-mode
|
/fm sync |
|
/git merge
|
…into fb-fit-159/storage-error-logs-modal-not-optimized-for-dark-mode
|
/git merge
|
Reason for change
The Storage error logs modal on the Settings > Cloud Storage page was not optimized for Dark Mode, making the text unreadable when a failed sync occurred. This PR addresses the issue by implementing design improvements to ensure the modal's readability and overall user experience in Dark Mode.
This PR also includes the following improvements:
Screenshots
Before:
LSE


After:
LSO


LSE


Testing
The changes have been verified by: