Commit graph

15 commits

Author SHA1 Message Date
7cdeb98161 feat(guides): integrate GuideContext and persist new guides to IndexedDB
- Wrap application root with IDBProvider and GuideProvider
    - Replace mock data in App component with real guides from useGuides hook
    - Update useNewGuide hook to save compiled guides to IndexedDB and update global state
2026-06-17 11:12:25 +02:00
f44b5a9133 style(guides): restructure Frame layout and add CSS for Frame and Step 2026-06-15 20:10:08 +02:00
f214b0ac4d feat: add frame reordering and improve file upload accessibility
- Add Up/Down reorder controls to Frame component
- Add handleReOrderFrames hook using splice swap
- Improve FileUpload: keyboard support, aria attributes, fix accept=image/* typo
- Extract component-level CSS for Frame, Step, FileUpload
- Update focus-visible styles; scope border style to .file-upload
2026-06-15 19:49:00 +02:00
b95d687904 feat: connect title and description inputs to state
- Add updateTitle prop to Frame component
- Add handleUpdateFrameTitle to useNewGuide hook
- Wire onChange handlers for guide title, description, and frame title inputs
2026-06-15 11:18:34 +02:00
0f70457d29 Fix: Form submission refresh bug and resolve TypeScript type errors
- Add explicit type=button to frame and step buttons to prevent unwanted form submission
- Move e.preventDefault() form submission logic into useNewGuide hook
- Fix TypeScript assignment error by adding 'title' to initial frame objects
- Export CompiledGuideType and update schema type references
2026-06-14 20:14:08 +02:00
1bb6ddf403 refactor(guides): colocate steps within frames state
- Remove standalone steps state; steps now live inside each Frame object
- Initialize each frame with one default empty step on file upload
- Update handleAddSteps, handleUpdateStep, handleRemoveStep to operate
  on frames array via nested map/filter
- Rename handleUpdateStepText -> handleUpdateStep
- Rename schema types to StepType, FrameType, GuideType
- Add steps and title fields to FrameSchema
- Wire FileUpload onChange and render Frame components in NewGuide
- Add NewGuide.css and basic input/textarea border styles
2026-06-12 11:10:02 +02:00
d1df5b16ed feat(guides): add handleSaveGuide to useNewGuide hook 2026-06-10 20:50:51 +02:00
8a8d495432 feat(guides): scaffold new guide form, hook, and update schemas
- Add useNewGuide hook with state and handlers for guide, frames, and steps
- Add title, description, and file upload inputs to NewGuide
- Add FileUpload component and supporting hooks
- Add guideId to FrameSchema, remove steps and order
- Remove content field and frames array from GuideSchema
- Remove order field from StepsSchema
2026-06-10 20:46:06 +02:00
fc63290806 refactor: remove comments in App.css 2026-06-10 20:22:48 +02:00
e133c03409 refactor: reorganizing the App.css styles 2026-06-10 19:56:05 +02:00
064a89ccda styling: add basic styles to App.css 2026-06-10 19:48:30 +02:00
0176a59865 refactor: refactor data schemas 2026-06-10 19:37:22 +02:00
efa9789a2a refactor: bootstrap app shell with routing and layout 2026-06-09 21:08:12 +02:00
6478a8ede8 feat: add Guide, Frame, and Image Zod schemas and type infer 2026-06-09 20:40:43 +02:00
38c12ae843 initial commit 2026-06-09 20:16:16 +02:00