paperclip/ui/src
Nicky Leach c9881223e4
fix(routines): show routines grouped by folder name (#10201)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - The Routines page is part of the operator UI for scheduled routine
management
> - The grouped-by-folder view was not presenting folder sections inline
in the main pane
> - That made the folder grouping mode harder to scan and hid the
separation between custom folders, Unfiled routines, and built-in
routines
> - This pull request updates the Routines page rendering so folder
groups appear as inline sections and built-in routines still split into
their own section afterward
> - The benefit is that grouped routines stay readable and the page
matches the intended folder organization

## Linked Issues or Issue Description

No corresponding public GitHub issue exists, so the problem is described
directly below following the bug template.

### What happened

On the Routines page, selecting Group → Folder flattened the grouped
list into a single "All routines" section with only the separate
built-in routines section below it.

### Expected behavior

Group → Folder should render one inline section per folder, keep
routines with no folder in an Unfiled section, and preserve the separate
built-in routines section after the custom folder groups.

### Steps to reproduce

1. Open the Routines page.
2. Change grouping to Folder.
3. Observe the main pane.
4. The routine list is flattened instead of grouped into folder-labeled
inline sections.

### Paperclip version / commit

Current PR head: `a8e384c838e362de3437c7a88bc7aa38b10fd9c0` on
`fix/routine-folder-grouping`.

### Deployment mode

Local development workspace for the Paperclip app UI.

## What Changed

- Updated the Routines page rendering so grouped folders render as
inline sections instead of flattening into a single list.
- Kept routines without a folder grouped under Unfiled.
- Preserved the built-in routines section after custom folder groups.
- Added and updated tests for the folder-grouped rendering behavior.

## Verification

- `pnpm --filter @paperclipai/ui exec vitest run
src/pages/Routines.test.tsx`
- `pnpm --filter @paperclipai/ui typecheck`
- `pnpm check:token-gates`

## Risks

- Low risk: the change is localized to the Routines page rendering and
its test coverage.
- The main behavioral risk is accidental grouping regressions if future
routine-grouping logic changes without updating the tests.

## Model Used

OpenAI Codex, GPT-5, tool-use enabled, 256k-context class model.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [ ] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Harold Kim <harold@paperclip.ing>
Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-07-24 12:20:35 -07:00
..
adapters feat(mcp) [split 6/8]: add Tools and Profiles UI foundation (#9561) 2026-07-14 15:31:12 -05:00
api feat(status-cards): add experimental status card update view (#10101) 2026-07-24 12:26:43 -05:00
components feat(status-cards): add experimental status card update view (#10101) 2026-07-24 12:26:43 -05:00
context Exclude archived projects from the default project list route (#10146) 2026-07-24 07:19:58 -07:00
fixtures feat(mcp) [split 6/8]: add Tools and Profiles UI foundation (#9561) 2026-07-14 15:31:12 -05:00
hooks fix(inbox): stop archived items from resurfacing (#9931) 2026-07-21 08:13:14 -05:00
i18n [codex] Add full locale catalog (#6070) 2026-05-16 08:24:31 -05:00
lib feat(status-cards): add experimental status card update view (#10101) 2026-07-24 12:26:43 -05:00
pages fix(routines): show routines grouped by folder name (#10201) 2026-07-24 12:20:35 -07:00
plugins Exclude archived projects from the default project list route (#10146) 2026-07-24 07:19:58 -07:00
App.cases-routing.test.tsx Cases: experimental first-class case object (#9198) 2026-07-09 22:11:03 -05:00
App.test.tsx Skill Studio: three-pane skill IDE with sandboxed test runs (#9241) 2026-07-09 13:08:56 -05:00
App.tsx feat(status-cards): add experimental status card update view (#10101) 2026-07-24 12:26:43 -05:00
bootstrapSetup.ts [codex] Add private browser first-admin claim flow (#6755) 2026-05-27 21:15:01 -10:00
index.css feat(secrets): add run-bound agent secret access (#9921) 2026-07-22 08:04:39 -05:00
main.tsx fix(ui): reap React 19.2 performance-track measures (memory leak) (#9827) 2026-07-18 14:05:25 -05:00
vite-env.d.ts Add feedback voting and thumbs capture flow 2026-04-02 09:11:49 -05:00