How programminghero1/b13-a7-keen-keeper works
This repository is mostly a project specification + design source repo, not an application codebase yet. The architecture is implied by the README requirements and the included UI design files rather than by implemented source code.
1. Top-level repository shape
- README.md is the primary source of truth for behavior, pages, and grading requirements.
- ui/ contains the design assets: KinKeeper.fig and KinKeeper.penpot.
- assets/ is present for static media, but no implementation files are shown in the tree.
2. Primary product boundary
- The intended product is a friendship-tracking app called KeenKeeper.
- The app is centered around one core domain: friends and their interaction history.
- There is no evidence of a backend service in this repo; the design implies a mostly front-end application with local/static data and client-managed state.
3. Design source of truth
- The Figma/Penpot files in ui/ define the visual structure for the app.
- These are likely the authoritative layout references for the navbar, banner, friend cards, detail page, timeline, stats page, and footer.
- For an architecture diagram, treat ui/ as the design input feeding the implementation layer.
4. Content/data layer implied by the README
- The app expects a friends.json data source containing 6–10 friend profiles.
- Each friend record includes identity, contact metadata, status, tags, bio, contact goal, and next due date.
- This static dataset is the foundation for the Home page and Friend Detail page.
5. Core page structure
- The app is organized around five functional views:
- Home: banner, summary cards, friends grid
- Friend Detail: profile info, stats, goal, check-in actions
- Timeline: interaction history
- Stats: analytics with a pie chart
- 404: invalid route fallback
- These are the main navigation nodes in the UI architecture.
6. Home page data flow
- The Home page fetches or loads friend data, shows a loading state, then renders cards in a responsive grid.
- Each friend card is a navigation entry point into the detail view.
- The banner and summary cards are page-level UI elements; the friend cards are the primary data-driven repeating component.
7. Friend detail interaction flow
- The detail page is a two-column layout:
- Left: identity/profile card and action buttons
- Right: stats cards, contact goal, and quick check-in controls
- The quick check-in buttons (Call, Text, Video) are the key write actions in the app.
- Clicking one of these actions creates a new timeline entry and shows a toast notification.
8. Timeline as shared interaction log
- Timeline entries are the central mutable data output of the app.
- Each entry records date, interaction type, and title, and is rendered on the Timeline page.
- The README also requires filtering by interaction type, and optionally sorting/searching, which makes timeline a view over an interaction log rather than a simple static list.
9. Stats/analytics boundary
- The Stats page summarizes interaction types using a Recharts pie chart.
- This page depends on the same timeline data used by the Timeline page, but presents it as aggregated analytics.
- In architecture terms, it is a read-only consumer of interaction history.
10. Navigation and routing
- The app is expected to use client-side routing, either with React Router DOM or a Next.js router.
- The route map must support direct navigation and page refresh without errors, which means route handling is a significant architectural concern.
- A dedicated 404 page is required for unknown routes.
11. State boundaries
- The app likely has two main state domains:
- Friend data state: loaded from JSON and used for list/detail views
- Timeline state: updated when check-in buttons are clicked and consumed by Timeline/Stats
- Toast notifications are a transient UI state layered on top of interaction handling.
12. Responsiveness and layout
- The README emphasizes mobile, tablet, and desktop support.
- That means the implementation must be component-driven and layout-adaptive across all major pages.
- The grid on Home and the two-column detail view are the most important responsive layout boundaries.
13. Technology layer implied by the requirements
- The target stack is a React-based front end, possibly Next.js.
- Tailwind CSS and a component library are expected for responsive UI construction.
- Recharts is specifically required for analytics visualization.
- A toast library is implied by the notification requirement.
14. Practical architecture takeaway
- If you are drawing the architecture from this repo, the safest interpretation is:
- Design assets in ui/
- Static/data inputs in friends.json and related assets
- Client-side app shell with navigation
- Friend domain views for list/detail/timeline/stats
- Shared interaction state feeding timeline and analytics
- There is no sign of a backend, authentication layer, or external API integration in the repository contents provided.
Main entry points: README.md README · KinKeeper.fig Figma file · KinKeeper.penpot Penpot file
Components 17
Spec & docs
Repository requirements and source-of-truth documentation
- README · Primary requirements, grading rules, and feature contract
README.md
Design assets
UI design files that define the intended interface
- Figma file · Visual source for the intended product UI
ui/KinKeeper.fig - Penpot file · Alternative design source for the same UI system
ui/KinKeeper.penpot
Client app
Intended front-end experience and navigation
- App shell · Client-side navigation and route handling
- Home · Banner, summary cards, and friends grid
- Friend detail · Profile, stats, goal, and quick check-ins
- Timeline · Interaction history view with filtering
- Stats · Analytics view built from interaction data
- 404 · Fallback for unknown routes
- Responsive layout · Mobile, tablet, and desktop layout behavior
- Friend cards · Repeating cards that link into detail views
- Profile panel · Identity and contact metadata for a friend
- Check-ins · Call, text, and video interaction triggers
- Toasts · Transient confirmation after check-in actions
- Pie chart · Aggregated interaction breakdown for stats
Data & state
Static friend data and mutable interaction history
- Friends data · Static friend profiles loaded from JSON
- Interaction log · Mutable timeline entries shared across views
Connections 24
- README → App shell: defines · Requirements establish routing, pages, and behavior
- README → Friends data: specifies · The friend dataset structure and fields are required
- README → Timeline: requires · Timeline filtering and interaction history behavior
- README → Stats: requires · Analytics and charting expectations
- Figma file → App shell: informs · Design system and page structure guide implementation
- Penpot file → App shell: informs · Alternative design source for the same UI
- App shell → Home: routes to · Default landing page
- App shell → Friend detail: routes to · Friend-specific detail page
- App shell → Timeline: routes to · Interaction history page
- App shell → Stats: routes to · Analytics page
- App shell → 404: falls back to · Unknown-route handling
- Home → Responsive layout: uses · Responsive banner, cards, and grid layout
- Friend detail → Responsive layout: uses · Two-column responsive detail layout
- Friends data → Home: feeds · Cards are built from friend profiles
- Friends data → Friend detail: feeds · Selected friend data populates the profile view
- Home → Friend cards: renders · Primary repeating UI on the home page
- Friend cards → Friend detail: navigates to · Each card is an entry point into details
- Friend detail → Profile panel: contains · Identity and contact metadata section
- Friend detail → Check-ins: contains · Quick interaction controls
- Check-ins → Interaction log: writes · New interaction entries are appended
- Check-ins → Toasts: triggers · User feedback after a successful check-in
- Interaction log → Timeline: feeds · Timeline page reads the shared interaction history
- Interaction log → Stats: feeds · Stats aggregates the same history
- Stats → Pie chart: visualizes · Pie chart summarizes interaction types