Default the availability admin page to the week view #84

Merged
thatguygriff merged 1 commits from fix/availability-week-default into main 2026-07-22 14:18:21 +00:00
Owner

Follow-up demo feedback to #76 / PR #80: the My Availability page should also open in its week view.

  • AvailabilityController now defaults usc_view to week (usc_view=list opts back into the table, which keeps the bulk-delete form and checkboxes).
  • The view toggle lists Week first as the default, and the week navigation links no longer need to carry usc_view=week.
  • Docs updated in docs/features/availability-management.md.

Tests

  • New AvailabilityControllerTest::testDefaultsToWeekView; the existing list-view test now opts in via usc_view=list.
  • composer test — 409 tests pass; composer lint (PHPStan level 10) and composer cs clean.

🤖 Generated with Claude Code

Follow-up demo feedback to #76 / PR #80: the **My Availability** page should also open in its **week view**. - `AvailabilityController` now defaults `usc_view` to `week` (`usc_view=list` opts back into the table, which keeps the bulk-delete form and checkboxes). - The view toggle lists Week first as the default, and the week navigation links no longer need to carry `usc_view=week`. - Docs updated in `docs/features/availability-management.md`. ## Tests - New `AvailabilityControllerTest::testDefaultsToWeekView`; the existing list-view test now opts in via `usc_view=list`. - `composer test` — 409 tests pass; `composer lint` (PHPStan level 10) and `composer cs` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
thatguygriff added 1 commit 2026-07-22 14:09:52 +00:00
Default the availability admin page to the week view too
CI / Tests (PHP 8.2) (pull_request) Successful in 38s
CI / Tests (PHP 8.1) (pull_request) Successful in 48s
CI / No Debug Code (pull_request) Successful in 3s
CI / Coding Standards (pull_request) Successful in 2m49s
CI / PHPStan (pull_request) Successful in 2m53s
CI / Tests (PHP 8.3) (pull_request) Successful in 2m38s
CI / Build Plugin Zip (pull_request) Skipped
266f572884
Follow-up demo feedback: the My Availability page now opens in its weekly
calendar (usc_view=list opts back into the table, which keeps the bulk-delete
form), matching the new lessons defaults.

Co-Authored-By: Claude Fable 5 <[email protected]>
thatguygriff merged commit 1bd0e33401 into main 2026-07-22 14:18:21 +00:00
thatguygriff deleted branch fix/availability-week-default 2026-07-22 14:18:21 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#84