~/talk

Simplifying Complex Forms in Vue

Talkat Vueconf.US 2020 · 2020-03-02..03-04· [frontend-architecture, vue]
slides:none on file

Four concrete patterns simplify a real event-management form that supports many event types and they work: create and edit in the same form to reuse code and endpoints, Object.assign to populate data for one-line robust hydration, a form config object to drive field visibility and defaults without sprawling if/else logic, and JSON test fixtures to assert load/save behavior. The claim is four practical, implementable patterns that reduce bugs and maintenance.

AI-written summary · about

  1. 0:00Simplifying Complex Forms in Vue
  2. 0:29Example Use Case
  3. 1:09Challenges
  4. 1:34Form Simplification Patterns
  5. 2:09Pattern 1: Create and Edit in the Same Form
  6. 3:15Pattern 2: Populate Edit Form $data with Object.assign
  7. 4:40Pattern 3: Form Config Object
  8. 8:23Pattern 4: Load/Save Integration Test Fixtures
  9. 9:19Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.