Skip to content

test: sidebar checks for templates and resizable pages - #71

Merged
sauce-base merged 4 commits into
mainfrom
dev
Nov 30, 2026
Merged

sauce-base merged 4 commits into
mainfrom
dev

Conversation

@roble

@roble roble commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Release from dev. Expected: v3.10.2 (from v3.10.1). Merge with a merge commit.

Test-only: the sidebar E2E after core 3.3 made resizing a page's choice.

Changes

  • test: the resize-handle check skips when a template replaces the dashboard
  • test: the dashboard sidebar has no resize handle
  • test: the sidebar resizes, ignores a right-button drag and clamps a stored width
  • test: the sidebar renders no empty menu groups

Checks

PHPUnit 285/285, Pint. The resize-handle spec runs in saucebase-dev (tenancy path mode) and skips in the chat template, whose dashboard is the chat.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Added dashboard checks for empty sidebar menu groups and unexpected resize handles.
    • The resize-handle check is skipped when the dashboard URL points to a template page.

roble and others added 4 commits November 28, 2026 18:10
An app with no main or bottom links (a template's) must not keep their
padded, empty groups. Core's NavGroup now skips them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tored width

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resizing is AppLayout's opt-in `resizable`; its behaviour is covered by core's
Layout/AppLayout stories.

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

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

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Adds two authenticated dashboard sidebar checks. One checks for empty menu groups. The other checks for a resize handle and skips when the pathname does not end in /dashboard.

Changes: Dashboard sidebar checks

Layer / File(s) Summary
Authenticated sidebar assertions
tests/e2e/tests/sidebar.spec.ts
Adds checks for empty sidebar menu groups and a sidebar resize handle. The resize-handle check skips when the pathname does not end in /dashboard.

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

Change: Other

Merge Risk: Minimal · up to 8c1ed

This release only adds end-to-end tests for the dashboard sidebar and has no production behavior change. Merge risk is minimal.

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 "test: sidebar checks for templates and resizable pages" matches the only change, which adds two sidebar E2E tests in tests/e2e/tests/sidebar.spec.ts. One test checks that no empty menu grou…
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 "test: sidebar checks for templates and resizable pages" matches the only change, which adds two sidebar E2E tests in tests/e2e/tests/sidebar.spec.ts. One test checks that no empty menu groups render. The other checks that the dashboard has no resize handle and is skipped when a template replaces the dashboard. The title names the test scope and the template and resizable aspects accurately, though it does not mention the empty-group check. It is a short, specific, single sentence with a conventional prefix.

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: 80b4e4c1-f034-4d59-b43a-1804f3bb3ba8
Commits

Reviewing files that changed from the base of the PR and between b73157d and 8c1ed94.

Files selected for processing: 1

  • tests/e2e/tests/sidebar.spec.ts

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

@sauce-base
sauce-base merged commit 3e0a1a1 into main Nov 30, 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.

2 participants