Skip to content

Conversation

@JammingBen
Copy link
Contributor

The relevant change for the bug fix is passing contextRouteName: 'files-public-link' to the settings url.

fixes #1380

@JammingBen JammingBen self-assigned this Oct 24, 2025
Copilot AI review requested due to automatic review settings October 24, 2025 07:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where reloading the settings page from a public link context was broken. The key change is passing contextRouteName: 'files-public-link' to the settings URL when accessed from a public link page.

  • Refactored UserMenu component from Options API to Composition API (script setup)
  • Added logic to conditionally include contextRouteName query parameter for public link contexts
  • Added test coverage for account settings route behavior

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
UserMenu.vue Refactored to Composition API, added conditional contextRouteName query param for public link contexts, and simplified user/quota checks
UserMenu.spec.ts Added new test suite for account settings route behavior and updated mock data to include auth state
UserMenu.spec.ts.snap Updated snapshot to reflect component prop changes from refactoring

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@JammingBen JammingBen force-pushed the fix/reloading-settings-on-public branch from b06651f to 4aaa36d Compare October 24, 2025 07:18
@JammingBen JammingBen force-pushed the fix/reloading-settings-on-public branch from 4aaa36d to ebab193 Compare October 24, 2025 07:37
@JammingBen JammingBen merged commit 99f725f into main Oct 27, 2025
28 checks passed
@JammingBen JammingBen deleted the fix/reloading-settings-on-public branch October 27, 2025 05:57
@openclouders openclouders mentioned this pull request Oct 27, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reloading settings on public links doesn't work

3 participants