feat(command-center): add Brainrot mode for empty cells#2967
Open
richardsolomou wants to merge 2 commits into
Open
feat(command-center): add Brainrot mode for empty cells#2967richardsolomou wants to merge 2 commits into
richardsolomou wants to merge 2 commits into
Conversation
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
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
|
Reviews (1): Last reviewed commit: "feat(command-center): add Brainrot mode ..." | Re-trigger Greptile |
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
BRAINROT_CELL) so a slot can hold a video instead of a task id;buildCommandCenterCellssurfaces it asisBrainrotand the panel renders aBrainrotCell.setBrainrotCellstore action — no dedupe, so multiple cells can run it.ResizeObserverhook 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).layoutand 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?
isBrainrotCell,buildCommandCenterCells(parameterised), andsetBrainrotCell. All passing.pnpm typecheckvia the pre-commit hook, both clean.Automatic notifications
Created with PostHog Code