Skip to content

feat(strm): one-click STRM generate button, progress dialog + task center#308

Open
okatu-loli wants to merge 6 commits into
AlistGo:mainfrom
okatu-loli:feat/strm-generate-button
Open

feat(strm): one-click STRM generate button, progress dialog + task center#308
okatu-loli wants to merge 6 commits into
AlistGo:mainfrom
okatu-loli:feat/strm-generate-button

Conversation

@okatu-loli

Copy link
Copy Markdown
Collaborator

What

Frontend for one-click STRM generation (companion to the alist backend PR adding POST /api/admin/strm/generate + the strm_generate task group).

Changes

  • Generate button (two entry points)
    • Storages management page: a "Generate Strm" button on each Strm storage row, aligned to the default row-button height.
    • File browser toolbar: an icon (RightIcon) β€” shown only to admins when the current storage provider is Strm β€” matching the other toolbar icons.
  • Shared progress dialog β€” both entry points share a render-prop core holding the progress modal + task polling, with stale-poll guards so late responses/ticks bail out.
  • Hideable progress window β€” hiding the dialog while a task is running keeps the backend task running and polling alive (success toast still fires); only terminal states fully reset.
  • Task center integration β€” registers strm_generate in the manage sidebar (admin) and adds a task page so generation is trackable/retriable like copy/upload tasks.
  • i18n β€” English strings only (global, home, manage, tasks); other languages via Crowdin.

Notes

  • All admin-gated. Requires the backend PR for the endpoint + task group.

- Toolbar generate button is now an icon (RightIcon) matching siblings;
  align storages-page button height with default-size row buttons.
- Refactor StrmGenerate into a render-prop core shared by the button and
  the toolbar icon.
- Register strm_generate in the task center (admin sidemenu + page) so
  generation is trackable like other tasks.
- Progress window is hideable: hiding keeps the backend task running and
  polling alive, so the success toast still fires.
@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

βœ… Deploy Preview for alist-web ready!

Name Link
πŸ”¨ Latest commit 730315f
πŸ” Latest deploy log https://app.netlify.com/projects/alist-web/deploys/6a28ea67db86a5000818373b
😎 Deploy Preview https://deploy-preview-308--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