Skip to content

feat: demo accounts declared; announcement audience and dates fixed - #25

Merged
roble merged 8 commits into
mainfrom
dev-2026-11-20
Nov 20, 2026
Merged

roble merged 8 commits into
mainfrom
dev-2026-11-20

Conversation

@roble

@roble roble commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Release from dev. Expected: v3.5.0.

Changes

  • fix: the audience is chosen before the newest announcement
  • fix: an announcement can't end before it starts
  • feat: the demo seeder declares its accounts (#[DemoAccount])

Merge with a merge commit, as earlier releases.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Active announcements are now selected according to the visitor’s audience: signed-in visitors see dashboard announcements, while guests see frontend announcements.
  • Bug Fixes
    • Announcement end times that precede their start times are rejected with a form error, preventing invalid announcements from being saved.
  • Documentation
    • Audience targeting guidance now describes how announcements are selected and when banners are displayed.

roble and others added 6 commits November 16, 2026 11:37
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installer and modules:seed name the featured ones; a test checks the
seeder creates every account it declares.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The raw 'after_or_equal:starts_at' rule ran against Filament's state
paths, where starts_at isn't at the top level, so it always passed and a
backwards window was saved (and never shown). Filament's afterOrEqual()
resolves the sibling field.

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

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 76dd9cc5-76dd-408a-87bf-9571e77ba10b
Commits

Reviewing files that changed from the base of the PR and between 4b21f5f and c0a61d9.

Files selected for processing: 1

  • composer.json

No actionable comments were generated in the recent review.

Walkthrough

The provider now selects active announcements by visitor audience. The form validates announcement end times against start times. The showcase seeder declares a demo account, and a feature test checks that it is created. The Composer development branch alias also changes.

Changes: Announcement behavior

Layer / File(s) Summary
Audience-based announcement selection
src/Providers/AnnouncementsServiceProvider.php, tests/Feature/AnnouncementResourceTest.php, resources/boost/skills/saucebase-announcements-development/SKILL.md
The provider selects active announcements for the visitor’s audience. A feature test checks dashboard and frontend selection, and the documentation describes the selection behavior.
End-time validation
src/Filament/Resources/Announcements/Schemas/AnnouncementForm.php, tests/Feature/AnnouncementResourceTest.php
The form validates ends_at with a state-path-aware constraint against starts_at. A feature test checks that an earlier end time is rejected.

Showcase demo accounts

Layer / File(s) Summary
Demo-account declaration and test
database/seeders/ShowcaseAnnouncementsDatabaseSeeder.php, tests/Feature/ShowcaseStaffTest.php
The seeder declares the announcements admin demo account. A feature test checks that declared demo accounts are created.

Composer branch alias

Layer / File(s) Summary
Development branch alias
composer.json
The dev-dev branch alias changes from 3.5.x-dev to 3.x-dev.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Possibly related PRs

  • saucebase-dev/announcements#24: It introduces the Showcase seeder structure that this change annotates with a demo account and references in a test. It also changes the Composer branch alias.
Merge Risk: Minimal · previous review 4b21f

The change filters announcements by audience, validates end times against start times, declares a demo account, and updates the dev branch alias. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two of the main changes: demo accounts declared via the seeder, and announcement audience and date fixes. The changeset also adds a Filament afterOrEqual date check, audience-based ann…
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: Title check

Explanation

The title names two of the main changes: demo accounts declared via the seeder, and announcement audience and date fixes. The changeset also adds a Filament afterOrEqual date check, audience-based announcement selection in shareInertiaData, and a composer dev branch alias change. The title is specific and accurate, though it is somewhat broad and does not mention the composer alias change, which is minor.

Finishing Touches

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

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: 74620e94-719c-4479-8fdc-e7f119160f8f
Commits

Reviewing files that changed from the base of the PR and between ea585f2 and 4b21f5f.

Files selected for processing: 7

  • composer.json
  • database/seeders/ShowcaseAnnouncementsDatabaseSeeder.php
  • resources/boost/skills/saucebase-announcements-development/SKILL.md
  • src/Filament/Resources/Announcements/Schemas/AnnouncementForm.php
  • src/Providers/AnnouncementsServiceProvider.php
  • tests/Feature/AnnouncementResourceTest.php
  • tests/Feature/ShowcaseStaffTest.php

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

@sonarqubecloud

Copy link
Copy Markdown

@roble
roble merged commit cba7ce8 into main Nov 20, 2026
7 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