Skip to content

refactor(admin): the overview's test moves beside it - #618

Merged
PiquelChips merged 1 commit into
mainfrom
refactor/544-admin-overview-tests
Nov 21, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
refactor/544-admin-overview-tests

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Part of #544. Stacked on #564 (fix/550-notice-icons), as every change to crates/ui/src/admin is for now: retarget to main once it merges.

crates/ui/src/admin/overview.rs ended with a 37-line inline mod tests block. docs/dev/rust-conventions.md allows 30 lines inline; a longer block goes to a sibling tests.rs. So overview.rs becomes overview/mod.rs with overview/tests.rs beside it. The test moved verbatim, one indent shallower, and keeps its path: admin::overview::tests::the_lead_counts_accounts_in_the_right_number.

  • Tests merged or removed: none.
  • Files edited outside the Admin area: none.
  • Proof that behaviour is unchanged: no code changed; the same test passes.

Checks: just fmt; cargo clippy -p sourceorigin-ui --all-targets with and without --all-features (-D warnings); just test -p sourceorigin-ui --all-features (10 of 10).

Note

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

@PiquelChips PiquelChips added admin The admin dashboard at admin.sourceorigin.dev refactor No behviour changes tests Tests 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 27 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: 8e547a8e-0b65-4ea5-b34a-4ab6de4c6463
Commits

Reviewing files that changed from the base of the PR and between 9b6d375 and 677965d.

Files selected for processing: 2

  • crates/ui/src/admin/overview/mod.rs
  • crates/ui/src/admin/overview/tests.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 10:26
@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:24
Base automatically changed from fix/550-notice-icons to main November 21, 2026 15:30
Its 37-line inline test block outgrew the 30 lines docs/dev/rust-conventions.md allows inline, so `overview.rs` becomes `overview/mod.rs` with a sibling `tests.rs`. The test is moved unchanged.
@PiquelChips
PiquelChips force-pushed the refactor/544-admin-overview-tests branch from f347406 to 677965d Compare November 21, 2026 15:54
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit adb8a0c Nov 21, 2026
14 checks passed
@PiquelChips
PiquelChips deleted the refactor/544-admin-overview-tests branch November 21, 2026 18:01
@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

admin The admin dashboard at admin.sourceorigin.dev refactor No behviour changes tests Tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant