Skip to content

Enhance scheduling features in trueforge-ui - #533

Merged
govindavashishtha merged 14 commits into
mainfrom
feat/gv/schedules
Sep 2, 2026
Merged

Enhance scheduling features in trueforge-ui#533
govindavashishtha merged 14 commits into
mainfrom
feat/gv/schedules

Conversation

@govindavashishtha

@govindavashishtha govindavashishtha commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

Medium Risk
New schedule CRUD and on-demand runs touch agent execution and MCP auth flows; routing/shell overlay changes affect navigation across layouts but are mostly additive behind optional schedules server support.

Overview
Adds scheduled agent runs end-to-end in @truefoundry/trueforge-ui: a Scheduled Agents surface at /schedules (routing + shell overlay), sidebar Schedules nav, SDK-backed ScheduleServer adapter, and public exports for schedule UI pieces.

The schedules experience includes token-paginated listing, popover filters (agent, status, name search with URL share params), create/edit in a responsive side drawer, and row actions (Run now, pause/resume, delete). New schedules are saved paused, then a Test Schedule step shows cadence/MCP connect status, Run Test, and Activate Anyway. The table shows last five run status chips (manual/cron) loaded per visible page.

Agents Library is reworked as a table with optional Schedules column (batched counts, amber warning when any are paused); clicking opens schedules filtered for that agent. Shared Table, PopoverSelect, and SideDrawer primitives support this and session filters; DropdownMenu now portals via shared themePortalRoot so menus aren’t clipped in overflow tables.

Also bumps @truefoundry/assistant-ui-runtime to 0.1.25, sets Google Sans as the default trueforge theme font (loaded when styles inject), refreshes nav icons, and allows vendor/*.tgz in .gitignore.

Reviewed by Cursor Bugbot for commit d37edd2. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d37edd2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@truefoundry/trueforge-ui Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…ort. Update Agents Library to display schedules count with a badge and integrate schedule management features. Introduce reusable TableTokenPagination component for improved pagination handling. Refactor URL handling for schedule filters and implement tests for new functionalities.
…schedule management

- Bump @truefoundry/assistant-ui-runtime to version 0.1.24 across multiple packages.
- Introduce new components for displaying the last five schedule run statuses.
- Implement functionality to trigger manual schedule runs and display their statuses.
- Update OpenAPI documentation and TypeScript SDK to reflect changes in the schedule run API.
- Add tests for new schedule run features and ensure compatibility with existing components.
Comment thread packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx
Comment thread packages/trueforge-ui/src/atoms/schedules/ScheduleFormDrawer.tsx
Comment thread packages/trueforge-ui/src/atoms/primitives/DropdownMenu.tsx
Comment thread packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx
Comment thread packages/trueforge-ui/src/atoms/schedules/ScheduleRunChip.tsx
Comment thread packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx Outdated
Comment thread packages/trueforge-ui/src/atoms/schedules/cadence.ts
Comment thread packages/trueforge-ui/src/atoms/AgentsLibrary.tsx Outdated
Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx
Comment thread packages/trueforge-ui/src/layouts/DrawerLayout.tsx
govindavashishtha and others added 3 commits September 2, 2026 12:44
Published runtime now exports schedule-run DTOs and paginated listSchedules
so trueforge-ui typecheck/build can succeed.

Co-authored-by: Cursor <cursoragent@cursor.com>
Close the drawer on schedules open, focus the dropdown once per open,
toast pause/delete failures, ignore stale list responses, drain agent
pages for filters/forms, and keep pagination when client filters empty.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread packages/trueforge-ui/src/atoms/schedules/cadence.ts
Comment thread packages/trueforge-ui/src/atoms/primitives/DropdownMenu.tsx Outdated
Comment thread packages/trueforge-ui/src/atoms/AgentsLibrary.tsx Outdated
Comment thread packages/trueforge-ui/src/layouts/StackChatPanel.tsx
Comment thread packages/trueforge-ui/src/atoms/primitives/Table.tsx
govindavashishtha and others added 2 commits September 2, 2026 16:01
Preserve custom cron semantics, prevent stale schedule metadata from rendering, and centralize repeated UI helpers found during review.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restore an in-UI path back to chat for compact layouts and let narrow tables size to their content.

Co-authored-by: Cursor <cursoragent@cursor.com>
@govindavashishtha
govindavashishtha enabled auto-merge (squash) September 2, 2026 10:35

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d37edd2. Configure here.

Comment thread packages/trueforge-ui/src/atoms/AgentsLibrary.tsx
@govindavashishtha
govindavashishtha merged commit 0cc59f8 into main Sep 2, 2026
10 checks passed
@govindavashishtha
govindavashishtha deleted the feat/gv/schedules branch September 2, 2026 10:39
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.

2 participants