Skip to content

refactor(web): pages without a form say so in one line - #604

Merged
PiquelChips merged 1 commit into
mainfrom
refactor/544-pages-no-change
Nov 21, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
refactor/544-pages-no-change

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Part of #544

Four account pages have no form: the settings overview, a notification's page, the developer console's apps and an app's overview. Each one still wrote out the same 13 lines of AccountPage boilerplate, a NoChange change with a reopened and an apply that can never be called, so the part that matters was harder to find.

Now they write no_change!(); in their impl. The macro sits beside NoChange in web/account.rs and expands to the same type Change, reopened and apply as before, built on NoChange::absurd. I tried a ReadOnlyPage trait with a blanket AccountPage impl first and dropped it: it had to repeat the page's constants and render's signature, and it made Self::TITLE ambiguous inside the pages.

  • Tests merged or removed: none.
  • Files outside the Pages area: none.
  • Proof nothing changed: a scratch test (not committed) dumped every account page's response, status, headers and HTML, for GET and for a form posted to it, on this branch and on origin/main. Both runs registered an app and recorded a notification. After normalizing IDs, handles and times, the two dumps are identical. That includes the 400 "out of date" page a post to each of these four pages gets, and the console's missing-app 404.
  • Checks: just fmt, cargo clippy -p auth-service --all-targets with and without --all-features, cargo doc -p auth-service with -D warnings, just db test -E 'test(/^web::/)' (93 passed) and just rust unused.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)

@PiquelChips PiquelChips added apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI refactor No behviour changes labels Nov 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eda77c7b-fcbe-4f79-9e24-152fb3f8b6fb
Commits

Reviewing files that changed from the base of the PR and between 467e813 and c2d96f6.

Files selected for processing: 5

  • apps/auth-service/src/web/account.rs
  • apps/auth-service/src/web/developers/app.rs
  • apps/auth-service/src/web/developers/mod.rs
  • apps/auth-service/src/web/settings/notifications.rs
  • apps/auth-service/src/web/settings/overview.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 09:54
@PiquelChips
PiquelChips marked this pull request as draft November 21, 2026 14:00
@PiquelChips
PiquelChips marked this pull request as ready for review November 21, 2026 14:15
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit f30a152 Nov 21, 2026
13 checks passed
@PiquelChips
PiquelChips deleted the refactor/544-pages-no-change branch November 21, 2026 16:55
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI refactor No behviour changes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant