Skip to content

fix(ui): show the cron expression column by default in the schedule list - #1686

Merged
liketed merged 3 commits into
mainfrom
fix/ui-schedule-list-cron-column
Sep 29, 2026
Merged

liketed merged 3 commits into
mainfrom
fix/ui-schedule-list-cron-column

Conversation

@liketed

@liketed liketed commented Sep 25, 2026

Copy link
Copy Markdown

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

The schedule list (Definitions → Scheduler, /scheduleDef) hid the Cron Expression column by default.

Schedules.tsx passes defaultShowColumns to DataTable, which hides any column whose id isn't in that list (DataTable.tsx:166-168). The list contained "cronTabExpression", but the column id is "cronExpression". The column was only visible if a user turned it on under Columns.

This PR changes the entry to "cronExpression". The column now shows by default, first in the table, with the schedule in plain English (for example "Every hour").

Users who have already customised their columns keep their saved layout, which is stored in local storage under schedulesTable, so they won't see the change.

Testing

I served the pre-fix and post-fix UI side by side against the same local server and loaded /scheduleDef in fresh browser contexts with no saved layout:

  • Before: Schedule Name, Next Run Time, Workflow/Agent, Created Time, Status, Workflow Executions, Scheduler Executions, Actions
  • After: Cron Expression, Schedule Name, Next Run Time, and the same columns as before

This change was split out of #1685 so each fix merges on its own.

Alternatives considered

None. This is a one-word fix to a mismatched column id.

🤖 Generated with Claude Code

defaultShowColumns listed "cronTabExpression", but the column id is
"cronExpression", so the column was hidden unless enabled manually.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

@najeebkp najeebkp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@liketed
liketed removed the request for review from AdrianWarman-Orkes September 28, 2026 10:47
@ajlai-orkes

Copy link
Copy Markdown
Contributor

can we add a test?

Extract defaultShowColumns into getDefaultShowColumns() and assert every
id it lists matches a real column, so a typo like "cronTabExpression"
can't silently hide a column again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@liketed
liketed merged commit 14eec8b into main Sep 29, 2026
14 checks passed
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.

3 participants