feat(streak): build streak screen, calendar component, and exclude sidenav from full-screen pages#369
Merged
A6dulmalik merged 1 commit intoMindBlockLabs:mainfrom Mar 26, 2026
Conversation
|
@simplicityf Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
3 tasks
A6dulmalik
approved these changes
Mar 26, 2026
OthmanImam
added a commit
to OthmanImam/mindBlock_Backend
that referenced
this pull request
Mar 28, 2026
- Implement automated benchmarking system to measure latency overhead of each middleware individually - Create benchmark.ts script with load testing client for realistic performance measurement - Support benchmarking of JWT Auth, RBAC, Security Headers, Timeout, Circuit Breaker, and Correlation ID middleware - Add npm scripts: 'benchmark' and 'benchmark:ci' for running performance tests - Update PERFORMANCE.md with comprehensive benchmarking documentation and usage guide - Add benchmark integration tests to verify middleware initialization - Update package.json with autocannon (load testing) and ts-node dependencies - Update README.md with performance benchmarking section - Update tsconfig.json to include scripts directory - Export security middleware components for benchmarking All implementation confined to middleware repository as required.
This was referenced Mar 28, 2026
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.
Summary
Built and assembled the full Streak feature screen for Mind Block, including all UI components,
page assembly, and layout exclusion for the sidenav.
Changes
1. Streak Page (
frontend/app/streak/page.tsx)Assembled the full Streak screen using all previously created components.
Structure:
StreakNavbar— top navbar with logo, streak count, points badge, and profile avatarStreakSummaryCard— displays streak count badge + "day streak!" label + flame icon;goes greyscale when
streakCount === 0StreakCalendar— full month calendar with navigation and streak day indicators/dashboardShareStreakModal— bottom sheet triggered by the share icon, includes share cardpreview and 6 share options (Contacts, Telegram, Twitter, WhatsApp, E-mail, More)
2. StreakCalendar (
frontend/components/StreakCalendar.tsx)Monthly calendar component that visualises streak history.
Features:
onMonthChangecallbackStreakDayIndicatordots with 4 states:empty— no activitycompleted— activity done, not part of a streak runstreak— part of a consecutive streak run (fire icon + glow + horizontal highlight bar)missed— day was missedStreakDatamap keyed byYYYY-MM-DD3. ClientLayout (
frontend/components/ClientLayout.tsx)Updated layout to hide the sidenav on pages that render full-screen without the sidebar.
Changes:
usePathname()to detect the current routeROUTES_WITHOUT_SIDENAVconstant for easy future maintenance<SideNav>and the mobile<Menu>hamburger button in a singleconditional block so both are hidden together
Excluded routes:
//streakTesting
Related Issue
Closes #276
Screenrecord
default.0.mp4