Skip to content

feat(web): team dashboard tools: range select, page size, space order, Up next, archive, Loom status - #4306

Open
richiemcilroy wants to merge 17 commits into
mainfrom
feat/dashboard-bulk
Open

richiemcilroy wants to merge 17 commits into
mainfrom
feat/dashboard-bulk

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Team dashboard tools: shift-click range select, Cmd/Ctrl+A and a visible select-all in My Caps, Spaces and folders, "Select all N" past the current page, a remembered page size (15/30/60/100), a custom order for Spaces with drag to reorder, Up next autoplay when a video is opened from a Space, archive, and a Loom import status view for org admins.

Range select Select all
Page size Archived
Reorder Up next
Loom status Dark

Behaviour worth knowing:

  • Archive hides a Cap from its owner's My Caps and folders only. The link, comments and any space it's shared to keep working, nothing is deleted, and the toast has Undo.
  • Space order is set by space managers for everyone. Caps added later show first until they're placed. Members can't reorder.
  • Up next only appears when the share page was opened from a Space (?space=) by someone the space lets in. It doesn't count down while a call-to-action end screen is showing. Plain share links are unchanged.
  • Page size is saved to the account. Old ?limit= links still work, capped at 100. Folders already list every Cap, so they get selection but no page size.

Proof (Mac mini, scratch MySQL 8 + MinIO, synthetic org with 5,300 videos):

  • Playwright: range select picks 6, Cmd+A selects the page, Select all 3,055 selects every id, page size survives reload, drag reorder persists after reload and a member sees the same order with no controls, Up next counts down, Cancel stops it, Play now opens the next video with ?space= and it starts playing, a plain link shows no Up next, members don't see the Loom view.
  • Tests: new unit tests for range selection, ordering, page size and Loom states, and a real-MySQL suite (added to the Infra Database job) for permissions, order persistence, archive filtering and JSON-null preferences. 31 affected test files pass (319 tests). Migration 0062 applied twice with migrateDb() on an empty database, the second run is a no-op.
  • Query time, median of 25 on the fixture (before → after): My Caps count 2.07 → 1.05 ms (now index-only), My Caps page 0.33 → 0.32 ms, last page 2.14 → 2.25 ms, Space with 2,000 videos 2.57 → 2.54 ms, custom order 2.86 ms. No extra queries on the My Caps or Space pages; the share page adds one lookup only when ?space= is present.
  • Server render in next dev on the shared mini, median of 5, main → branch: My Caps 0.17 → 0.18 s, 100 per page 0.87 → 0.72 s, 2,000-video Space 0.32 → 0.26 s (dev-mode noise is wider than these gaps). Production bundle size not measured: next build does not finish locally. The Up next card is a lazy chunk that only loads when a Space link is opened.
  • Select all is capped at 5,000 and says so ("Select the first 5,000"). The Delete key only acts on Caps on the current page; larger selections go through the confirmed Delete button. Concurrent reorders are serialised with a row lock (covered by the MySQL test).

Needs a PlanetScale deploy request for migration 0062 before merge.

RetriggerView in GreptileConfidence Score: 5/5

The latest change appears safe to merge.

Summary

Adds dashboard selection tools, saved page sizes, shared Space ordering, Up next playback, archive controls, and team Loom import status.

  • People can select Cap ranges and work with large lists across pages.
  • My Caps and Space lists remember how many Caps to show per page.
  • Owners can archive Caps without deleting their shared links or content.
  • Space managers can set the order of videos everyone sees in a Space.
  • Space visitors see and can play the next video when a Cap ends.
  • Organization admins can see Loom import progress by member.

Reviews (4) · Last reviewed commit: "test(web): drop the narrating header fro..." · Reviewed by Greptile

@sandchest-com

sandchest-com Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest found 1 issue in 0b28f1d (1 high).

This repository is public, so the details stay private: view them in the Sandchest dashboard →

Only people who can push to this repository can see them. Reviewed · 15 credits.

Comment thread apps/web/actions/spaces/video-order.ts Resolved

@capy-ai capy-ai 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.

Capy found 5 potential issues (5 medium).

View 2 other findings in Capy.

Open in Capy

Comment thread apps/web/actions/caps/list-view-ids.ts Resolved
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 17, 2026 01:16 Inactive
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 17, 2026 1:27am UTC

@capy-ai capy-ai 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.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 17, 2026 01:24 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 17, 2026 01:27 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai 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.

Capy found no issues.

View 5 other findings in Capy.

Open in Capy

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cap-web — 0b28f1d0 Deployed Nov 17, 2026 by vercel[bot]
Preview – cap-status — 0b28f1d0 Deployed Nov 17, 2026 by vercel[bot]
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.

1 participant