Level 3 · Interactive Web Applications Project 29 of 60 Runs in the browser
Project 29: Personal Productivity Dashboard
A dashboard made of reusable widget components: today's tasks, a water counter, a quote of the day and focus hours. Widgets can be shown, hidden and reordered, and everything is saved.
1 · The problem
A personal start page is a good test of component thinking: each widget is a function that returns an element, the dashboard draws whichever widgets are switched on in the chosen order, and settings must load safely even when old or broken data is in storage.
User stories
- As a user, I want to hide widgets I do not use.
- As a user, I want my most important widget first.
- As a user, I want the page to look the same tomorrow.
2 · Requirements
- A card(title, body) component returns a labelled <section class="widget">; every widget uses it.
- Widgets: Today's tasks (with a done summary and checkboxes), Water (0 to 12 glasses), Quote of the day, Focus hours (bars sized by percentage).
- Settings: a checkbox per widget to show or hide it, and Up/Down buttons to reorder.
- Save settings, order, water and tasks; on load keep only valid values and fall back to the defaults.
Acceptance criteria
- The dashboard starts with Tasks, Water and Quote; Focus hours is hidden.
- Ticking 'Draft the report' changes '2 of 5 done' to '3 of 5 done'.
- Moving Quote of the day up puts it second.
- Saved settings with wrong types are replaced by the defaults.
Architecture
| Layer | File | Responsibility |
|---|---|---|
| Page | index.html + style.css | Settings panel and the widget area. |
| State | dashboard.js | Widget data, settings, order, validation. Your work. |
| Components | app.js | card() and the widget functions, settings, events, storage. Your work. |
Flow: Event → state = { ...state, settings / order / water / tasks: new value } → saveState → renderSettings() + renderDashboard() (each visible widget built by its component function)
Expected result

Screenshots are captured automatically from the solution by the browser test suite.
Build it: guided stages
Pick a stage, load its starter files, follow the steps, then run the app and the tests. Every stage is preserved separately, so loading one never overwrites another.
- Stage 1: Widget components · Build a reusable card() component and four widgets from it.
- Stage 2: Settings and interaction · Show, hide and reorder widgets, and make the widgets interactive.
- Stage 3: Persistence you can trust · Save the dashboard and load only valid data.
Troubleshooting
- A widget's buttons stop working after a change.
- Every render builds new elements. Keep the listeners on #widgets and #settings, not on the buttons.
- Two widgets have the same heading id.
- Give each card a unique id, for example with a counter.
- Old saved data breaks the page.
- Merge saved settings with the defaults and check the order before using it.
Extension challenges
- Add a notes widget built with card().
- Let the user collapse a widget.
- Add a Reset dashboard button.
Downloads
- Starter files
- Stage 1: Widget components (starter, complete, tests)
- Stage 2: Settings and interaction (starter, complete, tests)
- Stage 3: Persistence you can trust (starter, complete, tests)
- Complete solution
- Whole project folder (README, requirements, architecture, checkpoints, tests, sample data, prompts)
Browser projects open directly from index.html. Node.js unit tests: run node --test in the project folder.
AI development prompts
Context: I am building the academy's Personal Productivity Dashboard. Task: explain how card() makes the widgets reusable. Constraints: explain the idea and point to the line that matters; do not write the whole solution. Expected behaviour: I can finish the stage myself. Testing: suggest two inputs that would show whether my code is right.
Context: My Personal Productivity Dashboard passes the visible tests. Task: check my loadState for saved data that could still break the page. Constraints: do not rewrite my code; list issues in order of importance. Expected behaviour: I understand each issue and can fix it. Testing: give one test case per issue.
Context: I finished the Personal Productivity Dashboard. Task: help me plan this extension: add a new widget with card(). Constraints: keep the logic file free of page code; existing tests must still pass. Expected behaviour: a short plan with the functions to add or change. Testing: describe the new tests I should write first.
Source
Repository folder: projects/project-29-personal-productivity-dashboard/ · view on GitHub