Skip to content

Conversation

@AmanRajSinghMourya
Copy link
Contributor

Description

Replace showDialog with bottomsheets across Locker app and packages/accounts for better mobile UX consistency.
Fix color, spacing, padding and other theming parameters

@AmanRajSinghMourya AmanRajSinghMourya marked this pull request as ready for review January 13, 2026 07:41
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b7925a9fc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +56 to 59
final result = await showFileEditSheet(
context,
file: file,
collections: editableCollections,

Choose a reason for hiding this comment

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

P2 Badge Reinstate ownership guard before editing shared files

The edit flow now goes straight into showFileEditSheet without verifying that the current user owns the file. Since FilePopupMenuWidget always exposes the Edit action, a user can open the edit sheet for a shared file and attempt metadata/collection updates that were previously blocked. This conflicts with the rest of the UI (e.g., selection overlay still treats shared edits as unsupported) and can result in unauthorized edits or confusing failures. Consider restoring the ownership check in FileActions.editFile or hiding the menu action for non-owners.

Useful? React with 👍 / 👎.

Comment on lines 80 to 82
await showInputSheet(
context,
title: context.l10n.renameCollection,

Choose a reason for hiding this comment

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

P2 Badge Keep rename disabled for non-editable collections

CollectionActions.editCollection now unconditionally opens the rename sheet and applies the rename. The collection model defines favorites and uncategorized as canEdit == false, and callers like the collection selection overlay only filter by ownership. That means those system collections can now be renamed when selected, which is likely unsupported and was previously blocked. Reintroduce the canEdit guard here or ensure callers filter out non-editable types before invoking rename.

Useful? React with 👍 / 👎.

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