Skip to content

feat: add InertiaLayoutDataMiddleware for React layout shared data#74

Merged
antosubash merged 13 commits intomainfrom
claude/fix-pr-73-smoke-test-fyqYG
Apr 5, 2026
Merged

feat: add InertiaLayoutDataMiddleware for React layout shared data#74
antosubash merged 13 commits intomainfrom
claude/fix-pr-73-smoke-test-fyqYG

Conversation

@antosubash
Copy link
Copy Markdown
Owner

Populates InertiaSharedData with auth state, menu items, public menu,
and CSRF token on every request so React layouts can read them from
Inertia shared props.

antosubash and others added 13 commits April 4, 2026 14:16
Populates InertiaSharedData with auth state, menu items, public menu,
and CSRF token on every request so React layouts can read them from
Inertia shared props.
…emodule/ui

Port Blazor AppLayout/PublicLayout/UserDropdown to React components that
read layout data from Inertia shared props. Integrate via resolveLayout
in the ClientApp entry point for automatic layout selection based on auth state.
- Remove all Blazor/Razor references from tests, docs, CLI, Dockerfile, and Tailwind config
- Delete RazorComponentExtensionsEmitterTests and ClientsActionEndpoint (replaced by view endpoints)
- Move /uris and /permissions routes into ClientsEditEndpoint
- Fix scaffold build test: use local ProjectReferences instead of NuGet packages
- Make HostingExtensionsEmitter and SettingsExtensionsEmitter conditionally emit Agents/Rag code
- Extract HasAnyAgentContent property on DiscoveryData for shared agent detection logic
- Add .scaffold-test/ to .gitignore
…nent errors

MarketplacePackageDetail was missing inherited fields causing undefined property
access that crashed the entire React tree. Added PageErrorBoundary to gracefully
catch page-level errors without killing navigation.
…classes

The source generator now tracks BaseTypeFqn for DTO types and emits
`extends` clauses in generated TypeScript interfaces. This fixes
MarketplacePackageDetail missing inherited fields from MarketplacePackage.
Blazor files deleted in our branch, accept deletion. Generator emitters
aligned with main's unconditional agent registration and RAG settings.
The static HTML shell has inline scripts (theme init, import map) that were
blocked by the Content-Security-Policy. Added nonce placeholders in index.html
and per-request nonce injection in HtmlFileInertiaPageRenderer.
The CSP header unconditionally included upgrade-insecure-requests, which
tells browsers to upgrade all HTTP requests to HTTPS. In CI, the e2e
tests run against http://localhost:5000, causing the browser to fail
loading scripts/styles over HTTPS on an HTTP-only server.
@antosubash antosubash merged commit 10309de into main Apr 5, 2026
4 checks passed
@antosubash antosubash deleted the claude/fix-pr-73-smoke-test-fyqYG branch April 5, 2026 07:37
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.

2 participants