Skip to content

Herdr panel: Crons last run stays on one line, summary counts every job - #315

Merged
yourconscience merged 2 commits into
mainfrom
herdr-crons-fixes
Nov 21, 2026
Merged

yourconscience merged 2 commits into
mainfrom
herdr-crons-fixes

Conversation

@yourconscience

@yourconscience yourconscience commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

What and why

Two defects in the Crons tab, seen in a real Herdr at the default panel width:

  • The line under the headline left out a job whose last run failed. "2 of 18 jobs failing" was followed by "12 healthy, 2 paused, 1 not run yet", which adds up to 17. The line now starts with that count: "1 last run failed, 12 healthy, 2 paused, 1 not run yet". The web view had the same omission in its own restCounts and gets the same fix, so both still say the same sentence.
  • In the per-machine list, a last run such as "16 min ago" wrapped onto a second line and made its row taller. The cell is now 80px wide and does not wrap. The longest string ago() produces is "59 min ago".

RECIPE.md and the "To 3.0.1" notes are updated. The Overview tab's "Everything else" line is unchanged: it only gets jobs that are paused or not run yet.

How I checked it

  • Copied the mod into Herdr and opened the Crons tab with real data: the summary reads "On This Mac and m1: 1 last run failed, 12 healthy, 2 paused, 1 not run yet." under "2 of 18 jobs failing", and "27 min ago" sits on one line with the columns aligned. The name column is 16px narrower, so one long job name is now cut with an ellipsis.

  • herdr-app check herdr/tackroom/mods/tackroom passes.

  • Ran the panel's and the web view's restCounts in node on the same job mixes: identical strings.

  • Not rendered: the web view with a job whose last run failed.

  • go test ./... and go vet ./... pass

  • I can explain this change without an AI tool

Summary by Sourcery

Correct Crons summaries and per-machine last-run layout so all non-failing jobs are counted and timestamps remain aligned.

Bug Fixes:

  • Include jobs whose last run failed in Crons summary counts for both the Herdr panel and web view, keeping the displayed totals consistent.
  • Keep per-machine last-run values on a single line in the Herdr panel by widening the column and preventing wrapping.

Documentation:

  • Document the corrected Crons summary counts and single-line last-run display, including the need to refresh Herdr panel mods.

Summary by CodeRabbit

  • Bug Fixes

    • Cron summaries now include jobs whose most recent run failed.
    • Adjusted the last-run column so elapsed-time text stays on one line.
  • Documentation

    • Updated the upgrade notes with instructions for Herdr panel users to recopy the mods.

@sourcery-ai

sourcery-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Update both Crons views’ restCounts helpers to include jobs whose last run failed, keeping the summary consistent across panel and web.

  • herdr/tackroom/mods/tackroom/main.js L112-115
  • internal/app/web/app.js L568-571

Widen the panel’s last-run column and prevent wrapping so elapsed-time labels remain on one line.

  • herdr/tackroom/mods/tackroom/main.js L958

UI

Revise the panel recipe to describe the added last-run-failed summary count and the wider, non-wrapping last-run column.

  • herdr/tackroom/RECIPE.md L20

Documentation

Add upgrade notes for the Crons summary and panel last-run display fixes, including the instruction for panel users to recopy the mods.

  • docs/upgrading.md L11

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The web and tackroom Crons summaries now include jobs whose last run failed. The tackroom panel widens the last-run column and removes right alignment. The recipe and upgrade notes describe these changes.

Changes: Crons updates

Layer / File(s) Summary
Failed-run counts and last-run display
herdr/tackroom/mods/tackroom/main.js, internal/app/web/app.js, herdr/tackroom/RECIPE.md, docs/upgrading.md
Both Crons summaries count warned jobs as jobs whose last run failed. The tackroom panel widens the last-run column and removes right alignment. The recipe and upgrade notes describe the updates.

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: Minimal · up to af672

The Crons summary now includes jobs whose last run failed, and the Herdr panel keeps each last-run time on one line. The change is small and display-only. No actionable merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two changes in the PR: the Crons last-run column stays on one line, and the summary counts every job. It is specific to the Herdr panel Crons tab and matches the objectives and the…
Description check Passed The description follows the template. It has the 'What and why' section with a clear explanation of both defects, and the 'How I checked it' section lists the commands run and what was observed. The c…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two changes in the PR: the Crons last-run column stays on one line, and the summary counts every job. It is specific to the Herdr panel Crons tab and matches the objectives and the raw summary. It is a little long at 71 characters, but it is clear.

Full details: Description check

Explanation

The description follows the template. It has the 'What and why' section with a clear explanation of both defects, and the 'How I checked it' section lists the commands run and what was observed. The checklist items are ticked. The 'Fixes #' issue line is absent, but the template marks it as optional ('delete if there is no issue'). The description notes that the web view was not rendered with a failed-run job, which is a useful disclosure.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

CI annotation context is incomplete: annotation collection unavailable or limited

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd7ce123-7708-4ff5-8ba4-42fc6d57dd99
Commits

Reviewing files that changed from the base of the PR and between fe266ec and af672dd.

Files selected for processing: 1

  • docs/upgrading.md
Files skipped from review as they are similar to previous changes: 1

  • docs/upgrading.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@yourconscience
yourconscience merged commit fc2b612 into main Nov 21, 2026
11 checks passed
@yourconscience yourconscience mentioned this pull request Nov 21, 2026
2 tasks done
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