Skip to content

feat(command-center): add Brainrot mode for empty cells#2967

Open
richardsolomou wants to merge 2 commits into
mainfrom
posthog-code/command-center-brainrot-mode
Open

feat(command-center): add Brainrot mode for empty cells#2967
richardsolomou wants to merge 2 commits into
mainfrom
posthog-code/command-center-brainrot-mode

Conversation

@richardsolomou

@richardsolomou richardsolomou commented Jun 28, 2026

Copy link
Copy Markdown
Member

Problem

When you have fewer tasks than the grid holds (e.g. three tasks in a 2×2), you're left with an empty cell you can't do anything useful with.

Changes

Add a "Brainrot" option to the empty-cell add-task popover. Instead of an agent task, it fills the slot with a looping background video — a deliberately silly way to occupy the leftover cell.

  • New reserved cell sentinel (BRAINROT_CELL) so a slot can hold a video instead of a task id; buildCommandCenterCells surfaces it as isBrainrot and the panel renders a BrainrotCell.
  • setBrainrotCell store action — no dedupe, so multiple cells can run it.
  • Two clips bundled locally (landscape + portrait, 720p, muted, ~7 MB each). A ResizeObserver hook picks the one matching the cell's orientation, so it fills the space with minimal letterboxing and no zoom. Local hosting means it plays instantly and works offline (no YouTube embed / quality ramp).
  • Fires a "Brainrot activated" analytics event with the grid layout and how many cells already held a task, to see whether it's used to fill the leftover slot or on purpose.

How did you test this?

  • Unit tests for the pure logic and store action: isBrainrotCell, buildCommandCenterCells (parameterised), and setBrainrotCell. All passing.
  • Biome lint + full pnpm typecheck via the pre-commit hook, both clean.
  • Have not yet driven it in the running app.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Empty cells can now be filled with a looping background video instead
of an agent task, via a "Brainrot" option in the add-task popover. Fills
the awkward leftover slot when you have fewer tasks than the grid holds.

Picks a landscape or portrait clip to match the cell's orientation
(ResizeObserver), bundled locally so it plays instantly and offline.

Generated-By: PostHog Code
Task-Id: 1b9f6d57-81f9-4a41-8058-18cb5460c2a8
@github-actions

github-actions Bot commented Jun 28, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit b609108.

@greptile-apps

greptile-apps Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(command-center): add Brainrot mode ..." | Re-trigger Greptile

Comment thread packages/ui/src/features/command-center/commandCenterStore.test.ts Outdated
Comment thread packages/core/src/command-center/cells.test.ts
Comment thread packages/ui/src/features/command-center/components/TaskSelector.tsx Outdated
- Capture "Brainrot activated" with layout and filled-cell count
- Rename onFocusMode -> onBrainrot for naming consistency
- Add aria-label to the Brainrot video
- Use BRAINROT_CELL constant in store test; parameterise cells test
- Tighten useElementOrientation comment

Generated-By: PostHog Code
Task-Id: 1b9f6d57-81f9-4a41-8058-18cb5460c2a8
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