Agents Builders

Deployments rank and filter

Archived
deployments-rank-and-filter

Created

Jun 24, 05:22

Started

Jun 24, 05:23

Completed

Jun 24, 13:45

DevOps handoff

Type

Feature

Shape

ui+db

Worktree Slug

deployments-rank-and-filter

Repositories

mcritchie-studio

Release Train

Branch

feat/deployments-rank-and-filter

QA URL

Production URL

board ordering

Acceptance Criteria

  • New or moved task floats to column top
  • Rank uses 100-spacing on both boards
  • Drag reorder persists with 100-spaced positions
  • App chips above stage headers toggle-hide tasks
  • Clicking app chip again restores its tasks

Expected Test Plan

  • [unit] Task rank: create/move floats top, 100-spaced, ordered DESC
  • [unit] reorder writes (length-index)*100
  • [unit] tasks:respace_ranks re-spaces by 100s newest-on-top, idempotent
  • [component] app-filter chip renders per present app, wired to toggleApp
  • [integration] /deployments and /tasks order newest-in-stage first
  • [e2e] click app chip hides/restores cards on /deployments (happy path)

Checks Run

  • [unit] task_test rank: create/move floats to top, 100-spaced, ordered DESC (89 green)
  • [unit] tasks_controller reorder writes (len-index)*100 (green)
  • [unit] tasks:respace_ranks re-spaces by 100s newest-on-top + guarded no-op (green)
  • [component] board_app_filter: chip per present app wired to toggleApp + card data-apps/x-show (green)
  • [integration] board_task_rank: /deployments and /tasks order newest-in-stage first (green)
  • [e2e] system board_app_filter: headless-chrome chip hides then restores cards (1 green)
  • [post-deploy] bin/rails tasks:respace_ranks on mcritchie-studio-qa → ok (2026-06-24T07:37:47Z)
  • [post-deploy] bin/rails tasks:respace_ranks on mcritchie-studio → ok (2026-06-24T13:44:47Z)

Agent Context

Port the proven News/Content rank-by-100s scheme onto Task (reuse the existing position column as the rank; no schema migration). FEATURE 1 (both boards, bump on stage-move + creation): app/models/task.rb:99 ordered scope ASC->DESC; set_initial_position (task.rb:592) and set_stage_timestamp bump (task.rb:559) +1 -> +100; tasks_controller#reorder (l.7) position:index -> (slugs.length-index)*100. One-time idempotent rake tasks:respace_ranks re-spaces existing tasks per stage by created_at ASC -> (idx+1)*100, guarded so it won't clobber post-cutover manual reorders; wired via --post-deploy-cmd. FEATURE 2 (client-side, app/views/tasks/_board.html.erb): add hiddenApps[]/toggleApp/appHidden/appVisible to Alpine kanbanBoard(), mirroring agentFilter/matchesFilter; chip bar above the board grid (~line 257) built from distinct task.devops_repositories present, using app_emoji helper; card x-show combines matchesFilter && appVisible(reposCsv); multi-repo task hides if ANY of its apps toggled off. Counts stay unfiltered totals (agent-filter parity). Plan: /Users/alex/.claude/plans/logical-juggling-pinwheel.md

Stage Timeline

Who handled each stage, the time it took (measured), and the model / tokens / cost reported (best-effort) — plus who's on it right now. means the agent didn't report that metric.

  1. Created Designed
    D Dragonite
    Dragonite
    Model
    Duration
    Tokens
    Cost
    Completed Jun 24, 05:22 · 3 days ago
    api
  2. Designed Building
    D Dragonite
    Dragonite
    Model
    claude-opus-4-8
    Duration
    under a minute
    Tokens
    Cost
    Started Jun 24, 05:22
    Completed Jun 24, 05:23 · 3 days ago
    cli
  3. Building Submitted
    D Dragonite
    Dragonite
    Model
    claude-opus-4-8
    Duration
    18 minutes
    Tokens
    30,591,033
    Cost
    ~$22.84
    Started Jun 24, 05:23
    Completed Jun 24, 05:41 · 3 days ago
    cli
  4. Submitted Reviewed
    S Shannon
    Shannon primary
    C Carl
    Carl light
    Model
    claude-opus-4-8
    Duration
    about 1 hour
    Tokens
    Cost
    Started Jun 24, 05:41
    Completed Jun 24, 06:55 · 3 days ago
    cli
  5. Reviewed Assembled
    S Steffon
    Steffon
    Model
    Duration
    2 minutes
    Tokens
    Cost
    Started Jun 24, 06:55
    Completed Jun 24, 06:57 · 3 days ago
  6. Assembled Shipped
    A Avi
    Avi
    Model
    Duration
    about 7 hours
    Tokens
    Cost
    Started Jun 24, 06:57
    Completed Jun 24, 13:45 · 3 days ago
  7. Shipped Archived
    1
    159aaa24-5db3-4c44-aa05-25c79d2902cd
    Model
    claude-opus-4-8
    Duration
    about 4 hours
    Tokens
    69,470,129
    Cost
    ~$58.25
    Started Jun 24, 13:45
    Completed Jun 24, 17:38 · 3 days ago
    cli

Conversation

QA review feedback, agent handoffs, and follow-up notes for this task.

Comment avi 3 days ago

Review cascade: shannon[heavy] APPROVE (ranking deterministic, filter correct, no N+1, no traps, ui+db coverage complete) + carl[light] APPROVE. Non-blocking nits deferred (id-tiebreak, board_apps scoping). CI green.

Sealed-bid sizing

Edit →

Alex (PM)

Avi (PO)

Dev

Actual