Skip to content

feat(company-sessions): align company list with project Sessions & Runs - #219

Merged
artempartos merged 1 commit into
developfrom
feat/company-sessions-and-runs-610
Sep 8, 2026
Merged

artempartos merged 1 commit into
developfrom
feat/company-sessions-and-runs-610

Conversation

@dvislov

@dvislov dvislov commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Closes #610

Problem

/company/sessions was the odd one out. Company operators use it to scan agent
activity across every project, but it still rendered the old dense admin table —
ID-first rows, colored Agent/Models badges, Mantine striped rows — and was still
labeled Sessions. Inside a project, the same data already lives on the
current Sessions & Runs system: name-first rows, StatusTag, agent logo,
search, type tabs. Status, agent, cost and identity were all harder to scan on
the company page, and it had no search or user filter.

What changed

This is visual + copy alignment. It does not turn the company page into a
grouped runs feed — rows stay session-level (a workflow step is its own row).

Rename

  • Company Monitoring nav item, page heading, and document title now read
    Sessions & Runs; subtitle is "Every agent session and workflow run across
    the company, in one place."
  • The session show page back-link matches (Sessions & Runs).

List

  • Rebuilt on the shared Sessions & Runs pieces (StatusTag, AgentLogo,
    ModeTag, sessionFormat, the CSS grid patterns) instead of restyling the
    Mantine Table.
  • Columns: Status | Name | Agent | User | Project | Tokens | Cost | Duration |
    Started
    . Name shows the first line of the prompt (fallback
    Interactive session) with a #id · type sub-line. Dropped: standalone ID
    column, Type column, Models chips, colored agent badge. costColor emphasis;
    external-link icon on the Started cell.
  • Company-only Project column kept on every row.
  • Responsive column-priority collapse (tokens first, then user), per the project
    page. Light/dark via design tokens.

Type tabs & filters

  • Segmented control: All / Workflow runs / Standalone. On this page
    Workflow runs filters to workflow_step sessions; steps are not grouped
    under a parent run.
  • Filter bar: Search by name…, Agent, Status, User.
  • Status exposes only the shared vocabulary — Running / Completed / Failed /
    Pending — mapped onto internal states via
    SessionsRunsFeed::STATUS_FILTERS; Starting / Finishing / Queued are not
    offered as filter values.
  • Prompt search is visibility-scoped (own sessions + workflow steps + sessions
    whose owner shares that lifecycle phase), so a private session whose hidden
    prompt matches a term does not surface — same guarantee as the project feed.
  • {N} entries count replaces the rows-per-page selector; infinite scroll kept.

Kept

  • Live cable updates (in-place row patching across loaded pages), infinite
    scroll, privacy lock (private rows show a lock, are not openable, still report
    cost/tokens), pending-artifacts hint on finished/unreviewed sessions.
  • Clickable rows still open the existing company session show page. No create
    actions on this page.

Element inventory delta (per the task guidance to flag changes)

  • Removed: rows-per-page selector, standalone ID column, Type column, Models
    chips, colored agent badge — all called out in the issue's "Drop from the
    list".
  • Added: type tabs, Search filter, User filter, entry count, agent logo,
    ModeTag — all called out in "Proposed UX".

No other elements added or removed.

Tests

  • Rewrote Company/Sessions/Index.test.tsx for the new copy, tabs, filter bar,
    row structure, privacy lock, empty states, poll survival, and cable patching.
  • Updated Company/Sessions/Show.test.tsx and AppSidebar expectations for the
    rename.
  • Added Web::Company::SessionsControllerTest coverage: type=run/type=solo
    scoping, status-vocabulary mapping, total/userOptions props, and the
    visibility-scoped prompt search not leaking a private session.

docker compose exec -T web make check_all: all suites touched by this change
are green (rails-test, rubocop, brakeman, eslint, fsd, vitest). Two unrelated
checks fail on develop already and are untouched here — typescript
(AssetsContent.tsx Uppy generateObjectKey typing) and system-test
(AssetUploadTest, same Uppy upload form).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MGoEtFbxUDGfHvVwZB3FMN

Restyle /company/sessions onto the same visual system as the project
Sessions & Runs list and rename the surface to "Sessions & Runs":

- Nav item, page heading, and document title now read "Sessions & Runs",
  with a company-scoped subtitle; the session show back-link matches.
- Name-first rows using the shared StatusTag / AgentLogo / ModeTag /
  sessionFormat pieces, plus a company-only Project column. Drops the
  ID, Type, and Models columns and the colored agent badge.
- Type tabs (All / Workflow runs / Standalone); "Workflow runs" filters
  to workflow_step sessions, rows stay session-level (no run grouping).
- Filter bar: search, Agent, Status, User. Status exposes only the shared
  Running / Completed / Failed / Pending vocabulary, mapped onto internal
  states via SessionsRunsFeed::STATUS_FILTERS. Prompt search is
  visibility-scoped so a private prompt cannot leak via a match.
- Entry count replaces the rows-per-page selector; infinite scroll and
  live cable updates are kept, as is the privacy lock and the
  pending-artifacts hint on finished sessions.
- Responsive column-priority collapse (tokens, then user); light/dark via
  design tokens.

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

dvislov commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author
image image

@dvislov
dvislov requested a review from artempartos September 8, 2026 10:55
@dvislov dvislov self-assigned this Sep 8, 2026
@artempartos
artempartos merged commit 19550ef into develop Sep 8, 2026
7 checks passed
aixle-com Bot pushed a commit that referenced this pull request Nov 23, 2026
…ed merges (#219) (#841)

* Decide Kiro refresh rotation per login family and log refused merges

Signed-off-by: Alex <[email protected]>

* Fix Kiro rotation test fixture: one credential per user

Signed-off-by: Alex <[email protected]>

* Address review: general terms in the design doc, required credential_id, public-repo rule

Signed-off-by: Alex <[email protected]>

---------

Signed-off-by: Alex <[email protected]>
Co-authored-by: Alex <[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