fix: UX and dev mode improvements - #18
Open
gmenher wants to merge 1 commit into
Open
Conversation
Gkrumbach07
reviewed
Aug 6, 2026
Gkrumbach07
reviewed
Aug 6, 2026
Gkrumbach07
reviewed
Aug 6, 2026
Gkrumbach07
reviewed
Aug 6, 2026
Gkrumbach07
reviewed
Aug 6, 2026
Gkrumbach07
reviewed
Aug 6, 2026
Gkrumbach07
reviewed
Aug 6, 2026
gmenher
added a commit
to gmenher/openshell-dashboard
that referenced
this pull request
Aug 6, 2026
Address review feedback on Gkrumbach07#18: 1. ALLOWED_ORIGINS: Keep default empty (preserves same-origin fallback in production). Auto-add http://localhost:3000 only when AUTH_DISABLED=true, so make dev works out of the box without breaking deployments that rely on the same-origin WebSocket check. 2. gRPC error extraction: Replace fragile sanitizeGrpcMessage (regex + colon-splitting heuristic) with errors.As + GRPCStatus() interface. This extracts the original clean gateway message directly, bypassing status.FromError's behavior of replacing the message with the full fmt.Errorf wrapper chain (grpc-go v1.82+). No stripping heuristic needed — the source is clean from the start. 3. Add test coverage: TestWriteGrpcErrorWrapped covers the real scenario (gateway layer wraps gRPC errors with fmt.Errorf). Verifies that short messages ('not found', 'denied') and long messages are all extracted cleanly regardless of wrapper context. 4. About modal: Use isAutoFit with autoFitMinModifier for responsive layout without mid-word wrapping.
gmenher
force-pushed
the
fix/ux-dev-mode-fixes
branch
from
August 6, 2026 13:20
892a959 to
516da0c
Compare
4 tasks
Owner
|
Hey @gmenher — this needs a rebase onto current main. PR #29 removed CORS/ To rebase:
|
gmenher
force-pushed
the
fix/ux-dev-mode-fixes
branch
from
August 9, 2026 18:23
516da0c to
816eaae
Compare
Use isAutoFit with autoFitMinModifier on the DescriptionList so items reflow responsively instead of breaking labels mid-word at narrow widths.
gmenher
force-pushed
the
fix/ux-dev-mode-fixes
branch
from
August 11, 2026 22:47
816eaae to
0a1c6f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: RHOAIENG-83129
Summary
Fixes the About modal text wrapping issue found during initial review.
About modal text wrapping
Labels like "Dashboard version" were wrapping mid-word at narrow widths.
Fix: Changed
DescriptionListto useisAutoFitwithautoFitMinModifierso items reflow responsively.Note: This PR originally addressed three issues (terminal CORS, gRPC error extraction, and About modal). The scope has been reduced because:
errors.As+GRPCStatus()interface).Only the About modal fix remains.
Testing