Skip to content

feat(layout): core/web/ui module layout for new modules (PR 0) - #827

Merged
antosubash merged 2 commits into
mainfrom
refactor/module-layout-framework
Nov 5, 2026
Merged

antosubash merged 2 commits into
mainfrom
refactor/module-layout-framework

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

  • PR 0 of the module-layout migration: make new-module / smpy create-module now scaffold core/, web/ and ui/ areas. The package root keeps only files that are looked up there (module.py, models.py, tasks.py, contracts/, pages/, locales/, theme.css/styles.css).
  • Scaffolded tests mirror the areas under tests/<area>/<feature>/, with module-prefixed basenames and no __init__.py.
  • Wheel-installed modules get <pkg>/ui scanned for Tailwind @source and resolved by the host Vite reader (module-assets.ts, plus its template copy). components/ stays supported.
  • New docs/module-layout.md (in the VitePress sidebar). CLAUDE.md, module-authoring, the guides and the shipped skills are updated.
  • host/tests/test_module_layout.py is a ratchet that freezes the existing modules' roots. No existing module moves in this PR.

Verification

  • make lint: pass
  • make ci-docs-build: pass
  • PYTEST_WORKERS=8 make test-py: 7847 passed, 46 skipped. The one failure, test_clean_target_is_not_in_repo, comes from an empty /tmp/.git placeholder that reappears in this sandbox. After rmdir /tmp/.git that file passes (8 passed).
  • make test-js: pass
  • Code review: a correctness reviewer found 0 findings; a maintainability and docs reviewer fixed 6 stale doc and skill paths.
  • Browser verification skipped (scaffold, tooling and docs change).

Test plan

  • CI is green
  • make new-module name=probe scaffolds the area layout and its tests pass

https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

… Tailwind and Vite

Scaffolded modules now keep only looked-up files at the package root
(module.py, models, tasks.py, contracts/, pages/, locales/, CSS) and put
the rest in core/, web/ and ui/ areas, with tests mirroring the areas.
Wheel-installed modules get <pkg>/ui scanned for Tailwind classes and
resolved by the host Vite reader. docs/module-layout.md describes the
layout and the moves-only migration; host/tests/test_module_layout.py
freezes the current roots of existing modules so they only shrink.

Claude-Session: https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-05T15:02:17.688205Z 3977edc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3977edc
Status: ✅  Deploy successful!
Preview URL: https://50a1e782.simple-module-python.pages.dev
Branch Preview URL: https://refactor-module-layout-frame.simple-module-python.pages.dev

View logs

@antosubash
antosubash merged commit be73b8c into main Nov 5, 2026
16 checks passed
@antosubash
antosubash deleted the refactor/module-layout-framework branch November 5, 2026 15:11
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.

1 participant