Skip to content

feat(sessions): unify sessions and runs behind one redesigned surface - #93

Merged
artempartos merged 4 commits into
developfrom
feat/sessions-runs-redesign
Aug 17, 2026
Merged

artempartos merged 4 commits into
developfrom
feat/sessions-runs-redesign

Conversation

@dvislov

@dvislov dvislov commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Implements the Sessions & Runs design handoff — palad-ai/palad-app#407 — against aixle-sessions-unified_1.html.

Why

Sessions and workflow runs were two pages with two controllers, two filter sets and two orderings. There was no way to see what a project ran yesterday in one place, and a run's sessions appeared as unrelated rows seven positions away from the run itself.

What changed

One list. /sessions now serves both. SessionsRunsFeed builds a UNION ALL spine over terminal_sessions and workflow_runs so ordering and pagination happen in SQL, then hydrates the page with the associations each kind needs. Workflow-step sessions are never top-level — they expand under their run. /workflow_runs redirects here with type=run; the sidebar collapses "Runs" + "Sessions" into "Sessions & Runs".

One detail header. DetailHeader — breadcrumb → title + status chip + id → description → [logo] Runtime · by User · Mode → four stat cards — is shared by run detail, session detail and both running views. Runs used to show a "Created" date and no runtime; sessions had neither breadcrumb nor stats.

One console frame. ConsoleFrame (38px bar with ●●● + repo·path + optional Live badge, body, read-only footer) replaces three per-view variants, two of which stacked their own header on top of the terminal's.

Session detail embeds the workspace inline. The transcript card and the completion card are gone: their numbers moved into the header stats and token line, the prompt/error/outputs into slim panels under the frame. A finished session renders the same frame, read-only.

Run detail is Sessions/Assets tabs over session cards. While a run is live, the card list sits beside the console of the session currently producing output; the Assets tab replaces the whole area so the console is hidden rather than ticking beside a file list. Terminology follows the handoff: units inside a run are Sessions, checklist items inside a session are Steps.

Create flows are matching drawers. New Session and Run Workflow are both 460px right drawers with the same order (Workflow →) Agent runtime → Execution mode → Configuration, the same runtime tiles and the same execution-mode tag-cards. Run Workflow gained a workflow selector, so it can be launched from the list without picking a workflow first; the workflow pages still pass theirs pre-selected.

Tokens come from the existing --app-* contract, whose dark scheme already is the handoff's terracotta palette — so light mode and the theme toggle work without a second set of values. running now reads amber rather than blue app-wide (StatusBadge), because the design reserves amber for in-flight and blue for waiting, and a running badge was indistinguishable from a pending one.

Element differences from today's pages

Confirmed with @dvislov before building:

  • Added: search-by-name, User filter, All/Workflow runs/Standalone toggle, contextual create buttons, expandable run rows. Search and User are wired through the controller (ransack-equivalent scopes on the feed), not decorative.
  • Removed: the per-page selector (the list is infinite-scroll only) and the Models column (models still appear on session detail).
  • Status options: the mockup lists Completed and Finished separately — that is our schema leaking (a session "finishes" where a run "completes"). One vocabulary is exposed instead: Running / Completed / Failed / Cancelled / Pending, mapped onto both state machines in SessionsRunsFeed::STATUS_FILTERS.

Notes

  • Drawer option lists (tools, skills, assets, workflows, cost hint) are an InertiaRails.optional prop, so a visit that never opens a drawer does not pay to serialize them.
  • WorkflowRunIndexResource and its generated type are removed with the page that used them.
  • The feed's spine is built with Arel rather than interpolated SQL, so Brakeman has nothing to flag and pagination stays AR's job.

Testing

docker compose exec -T web make check_all — green (backend 91.28%, frontend 78.24%).

  • New: SessionsRunsFeedTest (17 cases: interleaving, nesting, type/status/agent/user filters, wildcard escaping, union pagination), SessionsRunsPage.test.tsx, RunWorkflowDrawer.test.tsx.
  • Rewritten for the new UI: run detail, session detail, both session show pages, sidebar, and the two workflow-page drawer tests.
  • Integration tests updated for the new Inertia component and the /workflow_runs redirect, including the authorization matrix.

Not verified in a running browser — I have no credentials for the local app — so the dark/light rendering rests on the token mapping and the component tests rather than on my having looked at it.

🤖 Generated with Claude Code

@dvislov
dvislov marked this pull request as draft August 13, 2026 05:10
@artempartos

Copy link
Copy Markdown
Contributor

@dvislov please rebase and attach screenshots

@dvislov
dvislov force-pushed the feat/sessions-runs-redesign branch 2 times, most recently from c020648 to fb275d7 Compare August 16, 2026 20:34
@dvislov
dvislov marked this pull request as ready for review August 16, 2026 20:40
@dvislov
dvislov requested a review from artempartos August 16, 2026 20:59
@dvislov dvislov self-assigned this Aug 16, 2026
dvislov and others added 4 commits August 17, 2026 15:21
Implements the Sessions & Runs design handoff (palad-ai/palad-app#407).

Sessions and workflow runs were two pages with two controllers, two filter
sets and two orderings, and no way to see what a project ran yesterday in one
place. They are now one feed, and every screen downstream of it shares its
components:

- One list at /sessions, backed by SessionsRunsFeed — a UNION ALL spine over
  both tables so ordering and pagination happen in SQL. Workflow-step sessions
  fold under their run instead of competing with it for a top-level row.
  /workflow_runs redirects here; the sidebar has one entry.
- One detail header for runs and sessions: breadcrumb, title + status + id,
  description, runtime/user/mode meta line, four stat cards.
- One console frame for the running run, the running session and the finished
  session, replacing three per-view variants (two of which stacked their own
  header on the terminal's).
- Session detail embeds the workspace inline; the separate transcript card and
  completion card are gone, their content moved into the header and panels.
- Run detail is Sessions/Assets tabs over session cards; while a run is live
  the card list sits beside the console of the session producing output.
- New Session and Run Workflow are matching 460px right drawers with the same
  order and the same runtime tiles and execution-mode cards.

Filters gain search-by-name and a User dropdown, both wired through the
controller. Status collapses two state machines into one vocabulary. Per-page
and the Models column are dropped, per the design; models still appear on the
session detail.

Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
The unified SessionsRunsPage replaced the old SessionsPage/WorkflowRunsPage,
which had just picked up cable-based live updates and an infinite-scroll
filter-reset guard on develop. Port both onto the merged entry feed so
switching filters doesn't leak stale rows and run/session status stays live.

Signed-off-by: Dmitry Vislov <[email protected]>
…ow steps

Fixes from the code review of the sessions/runs redesign: clamp the
sessions feed page param to prevent a 500, patch nested run-session
cable updates in the unified feed, reset RunWorkflowDrawer state on
reopen, exclude non-viewable sessions from search matching, show a
workflow-step session's prompt regardless of terminal state, and make
the workflow run duration stat tick live.

Also fixes WorkflowRuns/ShowPage only surfacing a console and
action bar for the first active/failed step in a run — a run with
independently-running DAG branches now gets a console and its own
approve/skip/retry/finish actions for every concurrently active step,
addressed by step_run_id.

Signed-off-by: Dmitry Vislov <[email protected]>
Rebasing onto develop pulled in the Grok agent runtime, added there
after this branch forked. The redesign's new shared components
(AgentLogo, SelectableTiles' RuntimeTiles, the Sessions & Runs agent
filter) predate that and didn't know about it — Grok was invisible in
the runtime picker and filter dropdown, and had no display label.

Signed-off-by: Dmitry Vislov <[email protected]>
@dvislov
dvislov force-pushed the feat/sessions-runs-redesign branch from fb275d7 to 24d2528 Compare August 17, 2026 12:26
@artempartos
artempartos merged commit 6db9feb into develop Aug 17, 2026
7 checks passed
artempartos added a commit to Alexandra-Kozhukhar/flow that referenced this pull request Aug 19, 2026
The snapshot claimed the project sidebar has separate Runs and Sessions
items. It does not, and did not at this branch's base: AixleHQ#93 merged them
into a single "Sessions & Runs" entry backed by one list. The standalone
Sessions item is the company-level, admin-only cross-project view. Both
documents are corrected to describe one area and one chapter.

Other UI copy verified against develop and fixed: the trigger option
reads "Incoming webhook", the approval control reads "Approve &
continue", and Integrations covers GitHub, GitLab, Linear, Slack, and
Coder.

The outline gained the chapters its own taxonomy required but never
had — Overview, Triggers & gates (including CI gate states), and
Settings — plus the live step terminal, the Profile tabs, and personal
MCP access. The taxonomy gained an area → chapter map so the two cannot
drift apart silently.

CHANGELOG.md declared that entries carry a product area while every
entry in it carried none, and most describe repository-level work that
the taxonomy's own rules exclude from a product changelog. The rule now
says what the file actually does, and the one user-visible entry is
tagged.

docs/index.md picks up the operator documentation tree (docs/user-guide,
quickstart, reference), which the repo rule requires indexed and which
was missing.

Signed-off-by: Artem Petrov <[email protected]>
artempartos pushed a commit that referenced this pull request Aug 24, 2026
The Sessions & Runs redesign (#93) made each step a collapsible
SessionCard whose defaultOpen only accounted for live or failed steps,
so every step on a completed run mounted collapsed and its checklist
never appeared.

Signed-off-by: Dmitry Vislov <[email protected]>
artempartos added a commit that referenced this pull request Sep 4, 2026
…ts at /docs (#183)

* docs(portal): publish the product user guide at /docs

The portal shipped with one audience: people installing and running Flow.
A person who only uses the product had nowhere to read what a column
binding does, what a gate chip means, or why their run is waiting — the
existing pages answer those in terms of containers, DAGs and credentials.

Adds a "Using Flow" section of seventeen pages, written from the guide
outline in docs/product/: the loop and the three levels, getting started
through onboarding and Profile, then a chapter per surface — board,
workflows, triggers and gates, sessions and runs, assets, personas,
wrappers/skills/connectors, repositories and integrations, AI Builder,
team and access, secrets, analytics, the company workspace — closing with
two end-to-end stories. Screen names, control copy and states are taken
from the UI as it reads today, not from the domain model.

It comes first in the nav, since most readers arrive wanting to use Flow
rather than install it; the operator sections keep their slugs, and their
overview now points across.

A page is registered in four places that can silently disagree — nav,
page registry, search index, and the controller's allow-list — so a
frontend test asserts the three TypeScript sources cover each other and
the request test renders every published slug.

Signed-off-by: Artem Petrov <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>

* docs(product): add user guide outline and changelog product-area snapshot

Two product-level documentation deliverables:

- docs/product/user-guide-outline.md — outline of the end-user guide,
  following the product sidebar IA, with two end-to-end stories and
  terminology notes where UI names diverge (closes #550)
- docs/product/changelog-product-areas.md — frozen user-facing product
  map used as the changelog taxonomy going forward (closes #551)

Area names verified against the actual UI (sidebar labels, page titles,
board templates, roles, runtimes, trigger labels) rather than the issue
text where they diverged.

Signed-off-by: Alexandra Kozhukhar <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>

* docs(product): apply review fixes to guide outline and changelog snapshot

Fixes from the pre-push review: onboarding includes the Connect Agents
step (skipped for viewer-only users); Profile usage/settings covered;
Secrets & Variables capitalization; admin-only note on company Assets;
AI Builder vs Aixle Builder naming decided explicitly in both docs;
American spelling; wording nits in Story 1 and the Wrappers section.

Signed-off-by: Alexandra Kozhukhar <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>

* docs(product): correct Sessions & Runs and close guide/taxonomy gaps

The snapshot claimed the project sidebar has separate Runs and Sessions
items. It does not, and did not at this branch's base: #93 merged them
into a single "Sessions & Runs" entry backed by one list. The standalone
Sessions item is the company-level, admin-only cross-project view. Both
documents are corrected to describe one area and one chapter.

Other UI copy verified against develop and fixed: the trigger option
reads "Incoming webhook", the approval control reads "Approve &
continue", and Integrations covers GitHub, GitLab, Linear, Slack, and
Coder.

The outline gained the chapters its own taxonomy required but never
had — Overview, Triggers & gates (including CI gate states), and
Settings — plus the live step terminal, the Profile tabs, and personal
MCP access. The taxonomy gained an area → chapter map so the two cannot
drift apart silently.

CHANGELOG.md declared that entries carry a product area while every
entry in it carried none, and most describe repository-level work that
the taxonomy's own rules exclude from a product changelog. The rule now
says what the file actually does, and the one user-visible entry is
tagged.

docs/index.md picks up the operator documentation tree (docs/user-guide,
quickstart, reference), which the repo rule requires indexed and which
was missing.

Signed-off-by: Artem Petrov <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>

* docs(portal): publish the user guide outline and changelog snapshot at /docs

Wire docs/product/user-guide-outline.md and changelog-product-areas.md into
the in-app /docs portal as a new "Product" nav section, so both are reachable
by URL (/docs/user-guide-outline, /docs/changelog-product-areas). Cross-doc
and repo-relative links in the site copies are rewritten to /docs routes.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016RuG9aS4gaXxAxfxSTwy1K
Signed-off-by: Dmitry Vislov <[email protected]>

---------

Signed-off-by: Artem Petrov <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Signed-off-by: Alexandra Kozhukhar <[email protected]>
Co-authored-by: Artem Petrov <[email protected]>
Co-authored-by: Alexandra Kozhukhar <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
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