Skip to content

fix: list the User's interfaces one per line so module patches combine - #404

Merged
roble merged 1 commit into
mainfrom
dev-2026-10-31-user-interfaces
Oct 31, 2026
Merged

roble merged 1 commit into
mainfrom
dev-2026-10-31-user-interfaces

Conversation

@roble

@roble roble commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Same change as saucebase-dev/core#35, for the starter's own copy of app/Models/User.php. Module patches that add an interface (auth's PasskeyUser, billing's BillingOwner) each insert their own line instead of editing one shared implements line, so they apply in any order.

Changes

  • app/Models/User.php: identical to core's new stub.
  • pint.json: class_definition.single_line: false, so pint keeps one interface per line.

Tests

  • Core's stub test pins the layout; this file is a byte-for-byte copy of that stub.
  • All 64 orderings of the auth, api-tokens, billing and tenancy User patches apply under patch -p1 and git apply.

Merge after core#35 and the 2.8.1 release.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Standardized formatting for class declarations and related code style settings. These changes do not alter application behavior or affect the user experience.

Matches core 2.8.1's stub. Pint's class_definition keeps the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ebee78ae-b966-4bda-865d-c09b43c8e086
Commits

Reviewing files that changed from the base of the PR and between 9a155e5 and 1ffa4b4.

Files selected for processing: 2
  • app/Models/User.php
  • pint.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The Pint configuration now sets class definition formatting rules. The User class lists its existing interfaces on separate lines, with a comment describing the patch convention.

Changes: User interface formatting

Layer / File(s) Summary
Class declaration formatting
pint.json, app/Models/User.php
Pint adds three class definition rules. The User class lists FilamentUser, HasLocalePreference, and HasMedia on separate lines. A comment describes the one-interface-per-line patch convention.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 1ffa4

No actionable merge risk was identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: formatting the User interfaces one per line so module patches can combine.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

@sonarqubecloud

Copy link
Copy Markdown

@roble
roble merged commit f42c8de into main Oct 31, 2026
13 checks passed
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