Skip to content

feat(sharing): add custom share ID input and permission#472

Merged
j2rong4cn merged 2 commits into
OpenListTeam:mainfrom
MuelNova:main
May 3, 2026
Merged

feat(sharing): add custom share ID input and permission#472
j2rong4cn merged 2 commits into
OpenListTeam:mainfrom
MuelNova:main

Conversation

@MuelNova
Copy link
Copy Markdown
Contributor

Description / 描述

Frontend changes for custom share ID support (backend PR:
OpenListTeam/OpenList#XXXX).

  • Add ID input field in manage share create/edit form (AddOrEdit.tsx)
  • Add ID input in quick share dialog (Share.tsx) with maxLength=64
  • Add new_id field to ShareUpdate type for renaming share IDs
  • Add optional id field to Share type for custom ID on creation
  • Add customize_share_id permission (bit 15) to UserPermissions
  • Add i18n strings for ID placeholder and permission label

Motivation and Context / 背景

Random share IDs are hard to remember. This enables users with the
customize_share_id permission to set memorable custom IDs (e.g. my-photos) when
creating or editing shares.

Relates to OpenListTeam/OpenList#1806

How Has This Been Tested? / 测试

  • Verified ID input renders in both manage share form and quick share dialog
  • Verified customize_share_id permission checkbox renders in user management page

Checklist / 检查清单

  • I have read the
    CONTRIBUTING
    document.
  • I have formatted my code with go fmt or prettier.
  • I have added appropriate labels to this PR (or mentioned needed labels in the
    description if lacking permissions).
    Labels needed: enhancement
  • I have requested review from relevant code authors using the "Request review"
    feature when applicable.
  • I have updated the repository accordingly (If it's needed).

   - Add ID input field in create/edit share forms
   - Add ID input in quick share dialog with maxLength=64
   - Add new_id field to ShareUpdate type for renaming
   - Add customize_share_id permission (bit 15)
   - Add i18n strings for ID placeholder and permission label
@j2rong4cn j2rong4cn merged commit 9e79b42 into OpenListTeam:main May 3, 2026
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.

3 participants