Open
Conversation
added 4 commits
April 1, 2026 21:51
Add a reusable loading spinner component that displays rotating snarky messages about slow internet connections. - Accepts `visible` and optional `rotationSpeed` props - 10 unique snarky messages rotating at configurable intervals - Animated spinner with CSS animations (animate-spin, animate-pulse) - Accessibility: role='status', aria-live='polite', aria-label='Loading' - Proper interval cleanup on unmount and visibility changes - Message index resets to 0 when component becomes visible - Full test suite with 14 tests covering rendering, rotation, toggling, accessibility, and styling
Add complete test coverage for SnarkyLoader component with 14 tests spanning rendering, message rotation, visibility toggle, accessibility, and styling. Rendering: Verifies visibility prop, spinner structure, and initial message display. Message Rotation: Tests default 2500ms interval, custom rotationSpeed, full message cycling, and loop-back behavior. Visibility Toggle: Confirms prop-driven show/hide and interval cleanup when hidden. Accessibility: Validates aria-live, aria-label, and status role. Styling: Checks Tailwind classes and gradient element presence.
Add a hidden SnarkyLoader component that activates when the user clicks the title 5 times within 2 seconds. The loader displays rotating snarky messages about slow internet with a spinning animation. - useMultiClick hook for detecting rapid clicks with configurable threshold and time window - SnarkyLoader component with customizable rotation speed - Dismissal via ESC key, click outside, or overlay click - One-time dismissal guard to prevent re-triggering - Full ARIA accessibility support Tests: 45/45 passing across 4 test files
Add SnarkyLoader component displaying rotating snarky messages about slow internet with CSS-animated spinner. Add useMultiClick hook for detecting rapid consecutive clicks with configurable threshold and time window. Integrate as hidden easter egg on Home page, triggered by 5x-click on 'Welcome to ChaosCraft' heading with 2-second window. Dismissible via Escape key, outside click, or overlay. Includes comprehensive test coverage: - SnarkyLoader.test.tsx: 14 tests - useMultiClick.test.tsx: 10 tests - Home.easter-egg.test.tsx: 10 tests All 45 tests pass, typecheck clean, build successful.
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.
Add SnarkyLoader component displaying rotating snarky messages
about slow internet with CSS-animated spinner.
Add useMultiClick hook for detecting rapid consecutive clicks
with configurable threshold and time window.
Integrate as hidden easter egg on Home page, triggered by
5x-click on 'Welcome to ChaosCraft' heading with 2-second
window. Dismissible via Escape key, outside click, or overlay.
Includes comprehensive test coverage:
All 45 tests pass, typecheck clean, build successful.