Skip to content

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

Merged
richardsolomou merged 6 commits into
mainfrom
posthog-code/command-center-brainrot-mode
Jul 1, 2026
Merged

feat(command-center): add Brainrot mode for empty cells#2967
richardsolomou merged 6 commits into
mainfrom
posthog-code/command-center-brainrot-mode

Conversation

@richardsolomou

@richardsolomou richardsolomou commented Jun 28, 2026

Copy link
Copy Markdown
Member

Problem

Having fewer tasks than the grid holds (e.g. three in a 2×2) leaves dead empty cells you can't do anything with.

Changes

  • Opt-in "Brainrot mode" (Settings → Fun, off by default) fills an empty cell with a looping video instead of an agent task.
  • Streams landscape/portrait clips from Cloudinary, picking the one matching the cell's orientation, with a spinner while it buffers.
  • Fires a "Brainrot activated" event (grid layout + cells already filled).

How did you test this?

  • Unit tests for the cell builder, store action, and grid sentinel, all passing.
  • Biome + pnpm typecheck clean via pre-commit; both Cloudinary URLs return 200. Not yet run in-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 b19c431.

@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
@richardsolomou richardsolomou requested a review from a team June 29, 2026 00:16
Brainrot mode is now opt-in via a toggle in Settings → Fun, alongside
hedgehog and slot machine modes. The Brainrot option only appears in
empty command center cells when the setting is enabled.

Generated-By: PostHog Code
Task-Id: 1b9f6d57-81f9-4a41-8058-18cb5460c2a8
Replace the bundled landscape/portrait clips with hosted Cloudinary URLs,
dropping ~14 MB of binaries from the repo and app bundle.

Generated-By: PostHog Code
Task-Id: 1b9f6d57-81f9-4a41-8058-18cb5460c2a8
The clips stream from Cloudinary, so show a centered spinner over the
black cell until the video can play, including on orientation switches.

Generated-By: PostHog Code
Task-Id: 1b9f6d57-81f9-4a41-8058-18cb5460c2a8
@richardsolomou richardsolomou removed the request for review from a team July 1, 2026 11:31
@richardsolomou richardsolomou requested a review from a team July 1, 2026 11:33
@richardsolomou richardsolomou enabled auto-merge (squash) July 1, 2026 11:36
@richardsolomou richardsolomou merged commit fba5272 into main Jul 1, 2026
23 checks passed
@richardsolomou richardsolomou deleted the posthog-code/command-center-brainrot-mode branch July 1, 2026 11:39
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