-
Notifications
You must be signed in to change notification settings - Fork 120
frontend: Fix background color of extensions page log #3733
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
base: master
Are you sure you want to change the base?
frontend: Fix background color of extensions page log #3733
Conversation
…ontinuing Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the extensions page log handling to safely process streaming responses and adjusts the log text color to use the sheet background token for better visual consistency with its background. Class diagram for updated log handling in ExtensionManagerViewclassDiagram
class ExtensionManagerView {
+handleLogProgress(progressEvent, extension)
}
class StreamProgressEvent {
+currentTarget
}
class InstalledExtensionData
class StreamingResponseUtils {
+aggregateStreamingResponse(chunks, predicate)
+parseStreamingResponse(response)
}
ExtensionManagerView --> StreamProgressEvent : uses
ExtensionManagerView --> InstalledExtensionData : uses
ExtensionManagerView ..> StreamingResponseUtils : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey - I've found 1 issue, and left some high level feedback:
- When
progressEvent?.currentTarget?.responseis missing, the handler now silently returns; if this situation is unexpected, consider adding at least a debug log or error state so failures to stream logs are visible during troubleshooting.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- When `progressEvent?.currentTarget?.response` is missing, the handler now silently returns; if this situation is unexpected, consider adding at least a debug log or error state so failures to stream logs are visible during troubleshooting.
## Individual Comments
### Comment 1
<location> `core/frontend/src/views/ExtensionManagerView.vue:1240` </location>
<code_context>
pre.logs {
- color: rgba(var(--v-theme-on-surface), 0.9);
+ color: var(--v-sheet_bg-base);
background: var(--v-sheet_bg_complement-base);
padding: 10px;
</code_context>
<issue_to_address>
**suggestion (bug_risk):** New `pre.logs` color token may reduce contrast against `background` for log text
Using `var(--v-sheet_bg-base)` ties the text color to a background token, which may not be tuned for foreground/readability, especially against `var(--v-sheet_bg_complement-base)` in some themes (notably dark mode). Consider using a dedicated text/foreground token instead (or keeping the `on-surface`-based color) to ensure sufficient contrast across themes.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| pre.logs { | ||
| color: rgba(var(--v-theme-on-surface), 0.9); | ||
| color: var(--v-sheet_bg-base); |
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.
suggestion (bug_risk): New pre.logs color token may reduce contrast against background for log text
Using var(--v-sheet_bg-base) ties the text color to a background token, which may not be tuned for foreground/readability, especially against var(--v-sheet_bg_complement-base) in some themes (notably dark mode). Consider using a dedicated text/foreground token instead (or keeping the on-surface-based color) to ensure sufficient contrast across themes.
Summary by Sourcery
Improve robustness and styling of the extension manager log display.
Bug Fixes: