Skip to content

[PB-7046]: feat/show Photos in the sidebar - #2348

Merged
xabg2 merged 9 commits into
masterfrom
feat/PB-7046-photos-sidenav
Nov 23, 2026
Merged

xabg2 merged 9 commits into
masterfrom
feat/PB-7046-photos-sidenav

Conversation

@xabg2

@xabg2 xabg2 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Photos now appears in the sidebar, right after Drive, so users can open their photo backups from the web app.

It is only shown in the personal space. Inside a workspace the entry is hidden, and opening the Photos page directly takes the user to the Drive of that workspace. Going back from there returns to the previous page instead of bouncing to Photos again.

Related Issues

Jira: PB-7046

Related Pull Requests

N/A

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

  • Unit tests cover the entry in the personal space, the entry hidden inside a workspace, opening Photos from it, opening the page inside a workspace and going back from the workspace Drive.

Additional Notes

N/A

Summary by CodeRabbit

  • New Features
    • Added Photos to personal-space navigation between Drive and Favorites. Selecting it opens the Photos page.
    • Photos is not shown in workspace navigation. When opened while a workspace is selected, Photos redirects to that workspace’s Drive.

@xabg2 xabg2 added the enhancement New feature or request label Nov 19, 2026
@xabg2 xabg2 self-assigned this Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Photos page redirects to the configured Drive path with the selected workspace ID when a workspace is active. In personal space, it renders Photos. The sidenav includes a Photos entry that is hidden in B2B workspaces.

Changes: Photos navigation

Layer / File(s) Summary
Photos page routing
src/views/Photos/PhotosPage.tsx, src/views/Photos/index.ts, src/views/Photos/PhotosPage.test.tsx
PhotosPage redirects workspace selections to the configured Drive path, defaulting to /, with the workspace ID in the query string. In personal space, it renders PhotosView. The default export now points to PhotosPage. Tests cover workspace navigation, back navigation, and personal-space rendering.
Sidenav Photos entry
src/hooks/useSidenavNavigation.tsx, src/hooks/useSidenavNavigation.test.tsx
The sidenav adds a Photos entry that is active on /photos, hidden in B2B workspaces, and clears file and folder access tokens before navigation. Tests cover item order, visibility, and Photos and Drive destinations.

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

Change: Feature

Possibly related PRs

Merge Risk: Minimal · previous review 894b6

The Photos sidebar entry and the workspace redirect look correct, and unit tests cover them. QA is still unchecked in the PR checklist, but no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a Photos entry is added to the sidebar. It includes the ticket ID and a "feat/" prefix, which is noisy but does not make it misleading. The changeset also covers a wor…
Description check Passed The description follows the template sections: Description, Related Issues (Jira PB-7046), Related Pull Requests (N/A), Checklist, Testing Process, and Additional Notes. It explains the personal-space…
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 the main change: a Photos entry is added to the sidebar. It includes the ticket ID and a "feat/" prefix, which is noisy but does not make it misleading. The changeset also covers a workspace redirect and hidden entry in workspaces, which the title does not mention, but that is expected.

Full details: Description check

Explanation

The description follows the template sections: Description, Related Issues (Jira PB-7046), Related Pull Requests (N/A), Checklist, Testing Process, and Additional Notes. It explains the personal-space-only visibility, the workspace redirect, and the back-navigation behavior. Several checklist items remain unchecked (local testing, documentation, SonarCloud review, QA), and the Testing Process section does not list concrete test commands. These gaps are non-critical, so the description is mostly complete.

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: 2a2d107d-2e58-4121-a0c2-f43c7f6550de
Commits

Reviewing files that changed from the base of the PR and between 924b85d and 894b6e9.

Files selected for processing: 1

  • src/hooks/useSidenavNavigation.tsx

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9adc61a
Status: ✅  Deploy successful!
Preview URL: https://8113fb33.drive-web.pages.dev
Branch Preview URL: https://feat-pb-7046-photos-sidenav.drive-web.pages.dev

View logs

@xabg2
xabg2 marked this pull request as ready for review November 19, 2026 15:10
@sonarqubecloud

Copy link
Copy Markdown

@xabg2
xabg2 merged commit cb17d70 into master Nov 23, 2026
12 checks passed
@xabg2
xabg2 deleted the feat/PB-7046-photos-sidenav branch November 23, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants