# Craftmode

React / TypeScript interaction preview, 12 October 2026.

## Preview

Open `/craftmode/` in the Krafthub Frontend Previews site. The page uses ES Allianz, black, white, warm cream, lime `#ceff1a`, and purple reference links from the existing design manual.

## Implemented

- Compact project header with size, reading language and display settings.
- Seven-section navigation with explicit section completion.
- Size-aware sample instructions and a remembered reading marker per section.
- Separate row and repeat counters per section, nonnegative values, and an undo history for the current session.
- Editable section notes, all-notes view and an action to insert current counts.
- Chart viewer with a movable row guide, zoom and expanded view. Chart position does not alter the row counter.
- Text references for knitting terms and an original-English sample view.
- Text scaling, dark mode and desktop focus mode.
- Mobile tool drawers, a persistent counter and safe-area spacing.
- Local-device persistence for section, size, language, notes, markers, counters, chart row, display preferences and reading scroll position on navigation / page exit. Failure to save displays an honest status.
- Keyboard-operable controls, modal focus containment, Escape dismissal and focus restoration.

## Content and integration boundary

Materials and gauge are transcribed from the user-supplied screenshot. Back instructions, size mappings and chart are illustrative fixtures. The other construction sections deliberately state that the complete instructions were not supplied. Do not distribute this fixture as the Golden Hour Cardigan knitting pattern.

This is one demonstration project. Local storage uses a demonstration-specific key. Production must use the authenticated owner and a unique project ID, so two projects made from the same pattern retain separate state. Do not adopt the demonstration's preselected progress or starting row count as a production default.

Connect production pattern sections, stable instruction IDs, validated per-size annotations, source documents, translations and authored resource IDs. Preserve simultaneous-shaping conditions and the designer's original wording. The chart shown here is an illustrative grid, not an extracted original chart.

Cloud sync, accounts, payments, AI responses, linked technique videos and offline pattern downloads are not connected. AI help is clearly labelled as unavailable in this preview. The resource-video drawer and shared Upload-video player integration require the actual production components and accessible media; this preview does not claim that integration.

## Build

Node.js 20 or newer. Install the dependencies in `package.json`, then run `npm run build`. The script type-checks the source and produces `index.html` and `app.js`. Serve this directory over HTTP. Assets and styles use relative paths.

User-provided trial fonts are retained from the existing design system; confirm the production font licence during integration.

## Verification

TypeScript passed. Browser review covered desktop, 390 × 844 and 320 × 740 layouts; 320px page width matched the viewport with no horizontal overflow. Tested sequential note typing, section isolation, reload persistence, size-dependent stitch counts, reading markers, counter undo, chart row controls, chart expansion and dark mode. No browser console errors were reported during the reviewed interactions.

This is frontend verification. It does not establish backend integration, cloud persistence or production pattern accuracy.
