← Back to PRs

#6408: feat(ui): add job filtering and improve run history display

by Cassius0924 open 2026-02-01 16:48 View on GitHub →
app: web-ui
## Changes - Add status filter (all/enabled/disabled) for jobs - Add session filter (all/main/isolated) for jobs - Display job name in run history section - Use a more friendly duration format for cron job run history <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR extends the Cron UI to make the jobs list more usable: it adds job status (all/enabled/disabled) and session (all/main/isolated) filters, threads that state through the `OpenClawApp`/`AppViewState` into the cron view, and improves the run history section by showing the selected job’s name and formatting durations with a friendlier unit. Changes are localized to the UI layer (`ui/src/ui/*`): new state fields in `app.ts`/`app-view-state.ts`, wiring in `app-render.ts`, and rendering logic in `views/cron.ts`, plus a small formatting helper and updated view tests. <h3>Confidence Score: 4/5</h3> - This PR is likely safe to merge; issues are mostly UI correctness/formatting edge cases. - Core changes are straightforward state plumbing and view filtering, and tests were adjusted. Main concerns are (1) introduced tab characters that may break formatting/lint expectations, and (2) treating missing duration as 0ms can misrepresent run data in some API responses. - ui/src/ui/views/cron.ts <!-- greptile_other_comments_section --> <sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub> **Context used:** - Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8)) - Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13)) <!-- /greptile_comment -->

Most Similar PRs