feat(task-tray): show target name in background-task progress headings [OS-460]#2668
feat(task-tray): show target name in background-task progress headings [OS-460]#2668elibosley wants to merge 1 commit into
Conversation
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
|
Warning Review limit reached
More reviews will be available in 53 minutes and 10 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughProgress dialog and heading strings are updated across four files. Docker update dialogs now include the container name or container count. Plugin install functions in Apps.page, Tailscale.page, and Language.page now derive sanitized display names from file paths before embedding them in the ChangesDialog Title and Heading Improvements
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Generic progress headings ("Updating the container", "Install Plugin")
don't say what is being acted on, which is ambiguous when several
operations run at once. The target is already in scope at each call
site, so fold it into the title that openDocker/openPlugin render:
- docker update: "Update container: <name>"
- docker update all: "Updating all Containers (N)"
- plugin install: "Install Plugin: <plugin>" (Apps, Tailscale)
- language install: "Install Language: <pack>"
Names that aren't charset-constrained (plugin/language files) are reduced
to a sanitized basename slug before display, since the swal heading is
rendered with html:true. Container names rely on Docker's naming charset;
counts are numeric. Stays out of HeadInlineJS so it does not conflict with
the backend task-queue work in #2665.
OS-460
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6ade786 to
339777d
Compare
🧹 PR Test Plugin Cleaned UpThe test plugin and associated files for this PR have been removed from the preview environment. 🤖 This comment is automatically generated when a PR is closed without merging. |
Summary
Background-operation progress headings use generic labels that don't say what is being acted on — ambiguous when several operations run at once (and especially in the multi-task tray landing in #2665). The specific target is already in scope at each call site; this folds it into the title that
openDocker/openPluginrender.docker.jsupdateContainer()<name>docker.jsupdateAll()N)Apps.page/Tailscale.pageinstallPlugin()<plugin>Language.pageinstallXML()<pack>This improves the existing swal "In Progress" modal heading today, and the multi-task tray tiles once #2665 merges (titles flow through unchanged).
Safety
The legacy
openPlugin/openDockerswal heading is rendered withhtml:trueand is not escaped, so injected names must be HTML-safe:[a-zA-Z0-9][a-zA-Z0-9_.-]+) — safe.[^\w.\- ]stripped, trailing extension removed) before display.Scope / conflicts
docker.js,Apps.page,Tailscale.page,Language.page.HeadInlineJS.php, so no conflict with feat(webgui): backend-tracked task queue with multi-task tray + foreground recall #2665 (verified: feat(webgui): backend-tracked task queue with multi-task tray + foreground recall #2665 does not modify these files).Validation
node --checkpasses ondocker.js._()) and append the in-scope name; the ellipsis/min-width:0handling already covers longer headings.Follow-ups (not here)
Plugins.page), Install Key naming.detailfield on the task record.Closes OS-460
🤖 Generated with Claude Code
Summary by CodeRabbit