Skip to content

feat(storages): hide driver fields by show_when and link URLs in tips - #313

Open
okatu-loli wants to merge 1 commit into
AlistGo:mainfrom
okatu-loli:feat/123-open-auth-mode-fields
Open

feat(storages): hide driver fields by show_when and link URLs in tips#313
okatu-loli wants to merge 1 commit into
AlistGo:mainfrom
okatu-loli:feat/123-open-auth-mode-fields

Conversation

@okatu-loli

Copy link
Copy Markdown
Collaborator

Summary

  • DriverItem gains show_when ("field=a|b"). The add/edit storage form only renders an additional item while the referenced field equals one of the listed values; unset fields fall back to that item's default.
  • Help text: bare URLs are rendered as clickable links (opens in a new tab).
  • 123 Open tips updated for the token-first auth mode, linking to https://alistgo.com/zh/tool/123pan/request.html

Backend counterpart: AlistGo/alist#9647 (adds the show_when tag and the 123 Open changes).

Test plan

  • Prettier and tsc --noEmit (no new errors)
  • Manually verified against the backend PR: default Token shows only access/refresh token; switching to Client credentials shows only clientID/clientSecret; editing an existing storage respects the stored mode; links render and open.

Driver items may now carry `show_when` ("field=a|b"); the storage form
renders such an item only while the referenced field holds one of the
listed values, falling back to that field's default when unset.

Bare URLs in help text are rendered as links. Update the 123 Open tips
for the token-first auth mode.
@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

βœ… Deploy Preview for alist-web ready!

Name Link
πŸ”¨ Latest commit fcfef04
πŸ” Latest deploy log https://app.netlify.com/projects/alist-web/deploys/6aa38ba0e574e400099d7616
😎 Deploy Preview https://deploy-preview-313--alist-web.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
πŸ€– Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant