23: Demo pages + integration tests + existing code migration #24

Open
opened 2026-07-05 00:37:58 -06:00 by ppreeper · 0 comments
Owner

Description

Polish, docs, and migration phase.

Tasks

Demo pages

  • One page per widget showing all states: readonly, disabled, edit, error
  • Grouped by category (inputs, selections, displays, files, dates)
  • Accessible from app navigation

Integration tests

  • Render each widget, assert HTML structure matches spec
  • Test all states (readonly, disabled, error)
  • Test all variants (colors, sizes)
  • Snapshot test key widgets

Existing code migration

  • Refactor ui/buttons/ to use new Button primitive
  • Update ui/pages/odooedit.templ to use new widgets
  • Remove duplicated CSS classes from old components

Documentation

  • Component API docs generated from Go types
  • Usage examples in templ

References

docs/prd/TODO.md Phase 4

## Description Polish, docs, and migration phase. ## Tasks ### Demo pages - One page per widget showing all states: readonly, disabled, edit, error - Grouped by category (inputs, selections, displays, files, dates) - Accessible from app navigation ### Integration tests - Render each widget, assert HTML structure matches spec - Test all states (readonly, disabled, error) - Test all variants (colors, sizes) - Snapshot test key widgets ### Existing code migration - Refactor `ui/buttons/` to use new Button primitive - Update `ui/pages/odooedit.templ` to use new widgets - Remove duplicated CSS classes from old components ### Documentation - Component API docs generated from Go types - Usage examples in templ ## References docs/prd/TODO.md Phase 4
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ppreeper/webtemplate#24
No description provided.