Skip to content

refactor(site_lock): follow the module layout (moves only) - #830

Merged
antosubash merged 1 commit into
mainfrom
refactor/layout-site-lock
Nov 5, 2026
Merged

antosubash merged 1 commit into
mainfrom
refactor/layout-site-lock

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

  • Moves-only restructure of site_lock to docs/module-layout.md, same pattern as refactor(mail): move to core/ and delivery/ module layout (moves only) #829 (mail): constants/settings/state to site_lock/core/; middleware, page (with templates/unlock.html) and rate_limit to site_lock/web/.
  • Tests mirror the areas under modules/site_lock/tests/<area>/<feature>/.
  • site_lock.settings stays as a deprecated sys.modules alias (remove_in 0.0.46). No logic changes; CHANGELOG and layout table updated.

Verification

  • make lint, make ci-docs-build, make test-py (7850 passed, 45 skipped), make test-js green locally
  • make doctor clean; python -W error::DeprecationWarning -c "import site_lock.module, site_lock.web.middleware, site_lock.web.page" succeeds
  • Built wheel contains site_lock/web/templates/unlock.html
  • Moves-only review: 0 findings

Test plan

  • CI is green

https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

constants, settings and state move to site_lock/core/; the middleware,
unlock page (with its template) and attempt limiter to site_lock/web/;
tests mirror them. site_lock.settings stays as a deprecated alias until
0.0.46.

Claude-Session: https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4d6d6c2
Status: ✅  Deploy successful!
Preview URL: https://835169ba.simple-module-python.pages.dev
Branch Preview URL: https://refactor-layout-site-lock.simple-module-python.pages.dev

View logs

@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:50:42.914406Z 4d6d6c2 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.

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