Level 3 · Interactive Web Applications Project 30 of 60 Runs in the browser
Project 30: Personal Workspace Application
The Level 3 capstone: a personal workspace with notes, tasks and links in accessible tabs, a small store with subscribe, search across everything, persistence, and JSON export and import.
1 · The problem
Notes, to-dos and bookmarks usually live in three different places. The workspace keeps them in one application with one state object, a store that redraws the page whenever the state changes, keyboard-friendly tabs, search across everything and a way to back up and restore your data.
User stories
- As a user, I want everything in one place.
- As a keyboard user, I want to switch tabs with the arrow keys.
- As a user, I want to back up my workspace and restore it.
2 · Requirements
- createStore(initial) returns getState, setState and subscribe (which returns an unsubscribe function); subscribers run only when the state really changes.
- Three tabs (Notes, Tasks, Links) follow the tabs pattern: aria-selected, tabindex, aria-controls, and arrow keys, Home and End.
- Add, delete and tick items; links must start with https://; show errors next to each form.
- A status line counts notes, open tasks and links.
- Search all items and jump to the right tab from a result.
- Save after every change; export to JSON and import it back, with clear errors for bad files.
Acceptance criteria
- The workspace starts with 2 notes, 1 open task and 1 link.
- ArrowRight on Tasks selects and focuses Links.
- 'example.com' as a link is refused with 'Links must start with https://'.
- Importing '{bad' shows 'That file is not valid JSON.' and changes nothing.
Architecture
| Layer | File | Responsibility |
|---|---|---|
| Page | index.html + style.css | Tabs, panels with forms, search, import/export. |
| State and store | workspace.js | createStore, tab logic, items, search, export/import. Your work. |
| View and events | app.js | Renders from the store and turns events into new states. Your work. |
Flow: Event → store.setState(addItem / removeItem / toggleTask / selectTab(state, …)) → subscribers: render() → renderTabs + renderPanels + renderResults + saveState
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: The store and accessible tabs · Create a store with subscribe and drive keyboard-friendly tabs from it.
- Stage 2: Notes, tasks and links · Add, tick and delete items in every tab with clear errors.
- Stage 3: Search across everything · Search every list and jump to the right tab.
- Stage 4: Persistence, export and import · Save the workspace and back it up as JSON.
Troubleshooting
- The page does not update after a change.
- Change the state only with store.setState and subscribe render to the store.
- Arrow keys scroll the page.
- Call event.preventDefault() in the tablist keydown listener.
- Tab moves focus to every tab button.
- Only the selected tab has tabindex 0; the others have -1, so Tab goes into the panel.
- Import works but new items get duplicate ids.
- Set nextId to the highest imported id + 1.
Extension challenges
- Edit an item in place.
- Download the export as a file with a Blob and an <a download> link.
- Add an undo button by keeping the previous states in the store.
Downloads
- Starter files
- Stage 1: The store and accessible tabs (starter, complete, tests)
- Stage 2: Notes, tasks and links (starter, complete, tests)
- Stage 3: Search across everything (starter, complete, tests)
- Stage 4: Persistence, export and import (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 Workspace Application. Task: explain how createStore keeps its state private with a closure. 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 Workspace Application passes the visible tests. Task: review my tabs against the ARIA tabs pattern. 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 Workspace Application. Task: help me plan this extension: add undo to the store. 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-30-personal-workspace-application/ · view on GitHub