Active tasks: target titles, elapsed time, progress bar, current path#12
Merged
Conversation
… badge GET /api/v1/tasks now resolves bookTitle, seriesTitle, and libraryName via a column-projected LEFT JOIN against book_metadata, series_metadata, and libraries. Heavy columns (covers, descriptions) are excluded from the projection so the polling endpoint stays cheap; existing FK indexes cover all three joins. The new fields are additive and skipped from serialisation when null, so older clients see no payload change. The notification badge now renders each running task as "<TaskType> · <Target> · <elapsed>", with elapsed time updating once per second via an interval that only runs while at least one task is active. Long titles truncate with ellipsis and expose the full string on hover. SSE progress events do not carry titles; the hook preserves the most recent polled titles across event merges so labels stay stable during live updates. Tests added on both sides.
…sks badge The notification badge now shows a thin progress bar when a running task emits progress with total > 0, and renders the optional progress.message as a dimmed line below the row. Long file paths use RTL ellipsis so the trailing filename stays visible while leading directories truncate; the full path is exposed via the hover title. Discovery-phase progress (total = 0) intentionally hides the bar to avoid a meaningless 0% indicator while file enumeration is still running. The backend already emits TaskProgressEvent::progress from scan_library and other long-running handlers; this commit is the matching UI surface.
Deploying codex with
|
| Latest commit: |
57514a9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bce0eadb.codex-asm.pages.dev |
| Branch Preview URL: | https://task-details.codex-asm.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scan_library,refresh_library_metadata, bulk thumbnail fan-outs, etc.), the tooltip renders a thin Mantine progress bar plus a dimmed message line. Paths use RTL ellipsis so the trailing filename stays visible while leading directories truncate.GET /api/v1/tasksresolvesbookTitle,seriesTitle, andlibraryNamevia a column-projectedLEFT JOINoverbook_metadata,series_metadata, andlibraries. The new fields are additive andskip_serializing_if = Option::is_none, so older clients see no payload change.