Skip to content

Consolidate Views/ into Pages/ and standardize module UI organization#79

Merged
antosubash merged 4 commits intomainfrom
claude/improve-ui-organization-h908R
Apr 5, 2026
Merged

Consolidate Views/ into Pages/ and standardize module UI organization#79
antosubash merged 4 commits intomainfrom
claude/improve-ui-organization-h908R

Conversation

@antosubash
Copy link
Copy Markdown
Owner

  • Merge all Views/ directories into Pages/ across all modules (tsx pages,
    cs endpoints, and utility files)
  • Move shared components to module-root components/ directory (Admin, Users)
  • Update all Pages/index.ts imports to use relative ./paths
  • Update .editorconfig CA1812 suppression to cover Pages/*Endpoint.cs
  • Remove duplicate OpenIddict page files
  • Update CLAUDE.md example to reflect new import pattern

claude and others added 4 commits April 5, 2026 08:50
- Merge all Views/ directories into Pages/ across all modules (tsx pages,
  cs endpoints, and utility files)
- Move shared components to module-root components/ directory (Admin, Users)
- Update all Pages/index.ts imports to use relative ./paths
- Update .editorconfig CA1812 suppression to cover Pages/*Endpoint.cs
- Remove duplicate OpenIddict page files
- Update CLAUDE.md example to reflect new import pattern
…ndpoint-per-file check

- Remove ViewPageAttribute from Core and all 76 endpoint files
- Update generator to derive page names from namespace segments between
  module base namespace and class name (stripping Views/Pages segments)
- Update ViewPagesEmitter to generate ./ imports instead of ../Views/
- Change all endpoint namespaces from *.Views.* to *.Pages.* to match
  file locations
- Move OpenIddict client endpoints to Pages/OpenIddict/ subdirectory
  for correct namespace-based inference of OpenIddict/OpenIddict/* pages
- Add SM0049 diagnostic: error when multiple IViewEndpoint classes exist
  in a single file
- Update ViewDiscoveryTests and ViewPagesEmitterTests for new behavior
- Add nested namespace test for Users/Account/Login pattern
…use Path.GetFileName

- Add TypeMappingHelpers.ExtractNamespace() to eliminate repeated
  LastIndexOf('.') + Substring pattern
- Cache moduleNs per owner in view inference loop to avoid redundant
  string manipulation per view
- Use Path.GetFileName in SM0049 diagnostic instead of manual
  slash-detection logic
- Update FindClosestModuleName to use the new helper
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying simplemodule-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: ee41eaf
Status: ✅  Deploy successful!
Preview URL: https://10096003.simplemodule-website.pages.dev
Branch Preview URL: https://claude-improve-ui-organizati.simplemodule-website.pages.dev

View logs

@antosubash antosubash merged commit 93c97f0 into main Apr 5, 2026
4 checks passed
@antosubash antosubash deleted the claude/improve-ui-organization-h908R branch April 5, 2026 09:45
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