Repository navigation
fix: correct three small UI defects and quiet the signed-out /bff/user - #134
Merged
Merged
Conversation
Owner
Author
|
Review findings that stay open, with the reason for each:
|
The query skipped retries for a 401 or 403. /bff/user now answers a signed-out visitor with 204, so each error left is a real failure, and one retry keeps a short 5xx from showing a signed-in user as signed out. The spec now marks the 204 as a change from Duende BFF.
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.
Why
Earlier agents reported four small UI defects. Three reproduce on main. This PR fixes those three, each with a test that fails on main.
The fourth defect, an unstyled Not Found page, does not reproduce. #126 already fixed it.
What changed
/bff/usernow answers a signed-out visitor with 204 and no body. Before, it sent 401. A browser logs every 4xx response as a console error, and a signed-out visitor is a normal state.getUserreads 204 as signed out. A 4xx or 5xx status still shows the error toast.FilterControlDialognow owns the side padding of its control. A control pads itself for the desktop submenu popover. In the dialog, that padding came on top of the dialog's own 16 px. So text, multiselect, and date controls sat 16, 24, and 28 px from the edge. All five controls now sit 16 px from the edge.ResponsiveDialognow stops 4.5rem below the top of the screen. While a sheet is open on a phone, one toast shows at the top. At 667x375 the sheet was 85vh tall, and the toast covered the top 8 px of the sheet, the drag handle. The cap usesdvh, so it holds when the phone toolbar shows. A browser withoutdvhkeeps the old 85vh. The toast timers are unchanged.Scope
Blast Radius
The 204 changes the wire contract of
/bff/user. I updated each consumer in the repo: the BFF tests, the stack suite, the conformance runner, the verify skill, and the docs. A request withoutX-CSRFstill gets 401. A tab that still runs the old bundle during a deploy shows a "status code 204" toast at its next auth refetch. The toast can show again on each later visit to Home, until the user reloads the page. In a rolling deploy with more than one BFF, a new SPA can get one 401 from an old BFF and show one toast. The padding change also aligns the filter edit dialog on a tablet or desktop with its title. The desktop submenus are pixel-identical.Verification
pnpm lint,pnpm build,pnpm test(84 passed), andpnpm test:e2e --workers=4(53 passed). The new functional tests passed 10 out of 10 runs with--repeat-each=10.dotnet test --project tests/FullstackTemplate.Bff.Tests: 32 failures on main with the new tests, and 476 out of 476 pass with the fix.login-logoutrecipe passed, andconsole.logandnetwork.logstayed empty.pnpm test:e2e:stackgave 9 passed and 5 skipped by the provider.Filter sheets at 390 px, before and after (multiselect in light mode, date in dark mode):
Filter dialog at 768 px, before and after:
Tall sheet with a toast at 667x375, before and after: