Commit graph

45 commits

Author SHA1 Message Date
fbc2ada08b fix: address code review issues in conditional logic
- Add explicit boolean handling for toggle equals/not_equals
- Fix toNum to return NaN instead of 0 for empty values
- Use NaN guards in greater_than/less_than comparisons
- Add cleanupStaleConditions after field reorder/delete
- Clean up empty conditions objects before save

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:46:56 +01:00
5efc6a557d feat: add styles for conditional logic editor and preview badges
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:42:48 +01:00
6e78497cbb feat: add conditions editor UI to form builder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:40:51 +01:00
bfe4dc6d5e feat: add reactive conditional visibility to form modal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:37:12 +01:00
c494a75242 feat: add condition evaluation engine with operator logic and visibility computation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:35:17 +01:00
e334ad7aab feat: add conditional logic types (ConditionOperator, ConditionRule, FieldConditions)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:33:54 +01:00
ad9a2cfbb0 docs: add conditional logic implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:18:48 +01:00
22eeccf022 docs: add conditional logic design document
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:16:32 +01:00
ae2285c229 chore: bump version to 1.0.0 for release
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:13:52 +01:00
e15c6ceba0 fix: bump esbuild to ^0.25.0 to resolve CVE (dev server request leak)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 19:59:24 +01:00
cb4d30ad05 docs: add README with badges and MIT license
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 19:54:30 +01:00
875caf0a39 feat: add styles for drag & drop, preview panel, and undo/redo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:51:24 +01:00
33be56dcb1 feat: add side-by-side live preview to form builder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:47:49 +01:00
8b9140ae6c feat: add drag & drop field reordering to form builder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:43:19 +01:00
03c471a60b feat: add snapshot-based undo/redo to form builder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:39:12 +01:00
1ed9845af3 docs: add Phase 2 implementation plan
5 tasks covering undo/redo, drag & drop, live preview, and styles.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:32:17 +01:00
b8f275e78d docs: add Phase 2 builder upgrade design document
Covers drag & drop, side-by-side preview, and snapshot-based undo/redo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:30:01 +01:00
bad48e5f5e feat: add form import/export buttons to settings tab
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:01:48 +01:00
b0d66c9660 feat: add form-io module for JSON export/import
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:01:44 +01:00
8e5116befc feat: add styles for slider and color picker fields
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:58:37 +01:00
ca3fd5c9b7 feat: add slider, color, time to form builder with slider settings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:56:19 +01:00
36c87e4ad6 feat: add slider range validation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:56:14 +01:00
0305f0be15 feat: add Ctrl+Enter and Enter keyboard navigation to form modal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:54:53 +01:00
ff6fecd39b feat: add keyboard accessibility to toggle and rating fields
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:54:49 +01:00
e2f5654277 feat: add slider, color, and time field renderers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:50:40 +01:00
3f42fa38e2 feat: add slider, color, time to FieldType and slider props to FormField
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:46:49 +01:00
de5ea170e1 docs: add Phase 1 implementation plan
12 tasks covering new field types, keyboard navigation, and form import/export.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:42:16 +01:00
d48bb1b052 docs: add Phase 1 quick wins design document
Covers new field types (slider, color, time), keyboard navigation,
and form import/export.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 14:40:24 +01:00
01802792f3 fix: set author to tolvitty
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:34:07 +01:00
b28fc38849 fix: add missing open-settings command
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:29:33 +01:00
d7bc99e0a8 feat: wire up main plugin with commands, sidebar, settings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:25:46 +01:00
c4cd228e87 feat: add Formfire styles with refined utilitarian design
Production-grade CSS covering all UI components: form fields with focus
states, tag chips with enter/exit animations, suggest list dropdowns,
gold star rating with hover preview, form modal layout, form builder
card-based field editor, and sidebar with mode badges. All colors via
Obsidian CSS variables for light/dark theme support. Smooth transitions
(0.15-0.25s ease) throughout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:22:26 +01:00
7ba7048b3e feat: add settings tab with visual form builder
FormBuilderModal for editing form definitions with general settings,
mode-specific options, and a field editor supporting add/reorder/delete
with per-field type, label, property key, required toggle, and
conditional options. FormfireSettingTab lists forms with Edit/Duplicate/
Delete actions and a New Form button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:22:18 +01:00
5eb79fbf08 feat: add sidebar view with form list
ItemView that displays all forms with mode badges (C/U), click to open,
settings gear button, and empty state. Uses SidebarPluginRef interface
to avoid circular dependency with main.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:22:11 +01:00
092c960a9c feat: add FormPickerModal for quick form selection
FuzzySuggestModal that lets users pick a form by name with fuzzy search.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:22:06 +01:00
f3207a8b64 feat: add FormModal for rendering and submitting forms
Modal that renders all form fields, validates on submit with error
display and shake animation, and processes via FormProcessor. Supports
create and update modes with file picker for prompted target files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:22:00 +01:00
404b33edac feat: add field renderers for all 10 field types
Implements renderField() with per-type renderers for text, textarea,
number, toggle, date, dropdown, tags, note-link, folder-picker, and
rating. Each renderer returns getValue/setValue/setError accessors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:21:54 +01:00
ec3f1bc404 feat: add FormProcessor for note creation and frontmatter updates
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:14:48 +01:00
1a5a7232bb feat: add FormStore for CRUD on form definitions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:12:52 +01:00
f7d1b01531 feat: add form field validators
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:12:47 +01:00
d87b60d98e feat: add template engine with {{variable}} substitution
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:12:43 +01:00
b6f7d0db64 feat: add type definitions (FormDefinition, FormField, settings)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:12:39 +01:00
e9e87d52b1 feat: scaffold Formfire plugin project
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:10:42 +01:00
5945a93ef3 Add Formfire implementation plan
14-task plan covering scaffolding, types, core logic, UI components,
and integration testing. Uses A+B hybrid architecture with FormStore,
FieldRenderers, and FormProcessor layers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:07:08 +01:00
4f02ba3d37 Add Formfire design document
Design for structured data input plugin completing the Fire-Suite
(Input -> Observe -> Output). Covers data model, architecture,
UI concept, and scope for V1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 12:58:52 +01:00