Skip to content

Compose the staged site settings screen - #111

Draft
pournasserian wants to merge 2 commits into
mainfrom
76-settings-screen
Draft

pournasserian wants to merge 2 commits into
mainfrom
76-settings-screen

Conversation

@pournasserian

Copy link
Copy Markdown
Member

Draft: staged C1 settings screen

Adds the Site settings route with five real cards: Identity, Language and region, Content, Access and Danger zone. Uses the merged library controls in a named form, with sample settings kept in memory only. There is no CMS dependency, upload or delete operation, new public component, or library JavaScript.

Do not merge yet. The stage uses native checkbox and select choices while #72 is not landed, a text-only site marker pending #67, and waits for #75's final acceptance (which depends on #72/#73). It is not a claim of final visual parity or later-milestone completion.

Observed workflow

  • JavaScript-disabled static SSR makes an actual named POST with antiforgery. Page-size 500 is rejected by host validation; other edited values are still present. The keyboard error link focuses the named input with ordered error/help/unit references; correcting to 45 saves the received values. The native logo chooser posts no data or filename and has no promised selection after replacement.
  • Native discard restores the current document's defaults. In interactive Server and WASM, a host-owned discard restores the last accepted sample and clears validation; saving again reads that model, not just reset DOM values. Blazor normally only scrolls for a fragment; the same-origin gallery focus module focuses the correction target without replacing the native fallback link.
  • Preview deleting the site is an actual native disclosure and message. It does not execute or imitate a delete operation. The keyboard and reduced-motion checks exercise it.

Staging and comparison

The guide records #85 shell/tabs/alert, #93 notification/searchable choices/dialog, #95 logo and #96 global search replacement owners, and an inventory of relevant #27 workarounds. The old coordinator baseline stays separate from these current HTTP captures.

Measured the actual invalid gallery POST state against the actual HTTP reference at 1440 and 320 px in light/comfortable/LTR, dark/compact/RTL, plus compact RTL forced colors at 320. Five sections in order and no horizontal overflow in either page. The five comparable controls matched 175 of 175 computed typography, padding, color and height values. Cards measured 800 px at desktop, 288 px at narrow comfortable, and 288 versus 296 px at narrow compact (gallery gutter versus app shell). The shorter native chooser and staged choice layouts change section heights; no-JS step buttons are intentionally hidden, leaving more input width than in the scripted reference. The reference and gallery are not a pixel match.

Checks

  • Initial native POST RED before the receiver (successful document saved seeded 25 instead of validating 500), then green. The initial interactive checks also caught scroll without focus and a native reset without model restoration, both fixed. The first-DOM recheck caught and removed the prerender-only event directive attribute and aligned the heading's intentional focus target.
  • dotnet build -c Release -warnaserror --artifacts-path <evidence>/a — exit 0. dotnet test --project tests/FluentCMS.Components.Browser -c Release --no-build --artifacts-path <evidence>/a --filter-class 'FluentCMS.Components.Browser.Forms.SiteSettings*' — exit 0, 15 passed, 0 skipped. All three modes, axe, 320px targets in both densities including forced colors, and actual first interactive IDs/names and states. No new component bUnit surface; this is a gallery integration route.
  • node <evidence>/compare-settings.cjs and node <evidence>/record-settings.cjs — exit 0, dynamic ports, screenshots/geometry and sanitized POST results. Actual browser: bundled Playwright Chromium 156.0.8078.4 / Windows ARM64; no Firefox, WebKit, Safari or full-suite worker runs.
  • Local Release pack, package inspection, contrast (129 pairs) and Markdown lint passed. No gallery assets, focus module, or API changes in the library. Verified staged head bcf752d4ce68628957d696c7fa47efc57db4388c on c6bf11d.

Closes #76

@pournasserian pournasserian left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Staged review only at bcf752d: inspected the five-section composition, named EditForm and host model, JS-disabled 500 → error → 45 correction, error focus and discard semantics, scoped gallery assets, the four later fallback owners and #27 layout dispositions. Local visual comparison uses actual HTTP pages and records the differences; no final parity or milestone exit is claimed. Keep draft until the remaining C1 controls and #75 are on main and the final workflows have been rerun on the integrated head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C-24: Deliver the staged settings reference screen and C1 acceptance evidence

1 participant