Skip to content

[BHP1-1480] Note Categories Editor#214

Merged
rjsheperd merged 6 commits intomainfrom
rj-BHP1-1480-note-categories-editor
Apr 28, 2026
Merged

[BHP1-1480] Note Categories Editor#214
rjsheperd merged 6 commits intomainfrom
rj-BHP1-1480-note-categories-editor

Conversation

@rjsheperd
Copy link
Copy Markdown
Contributor

@rjsheperd rjsheperd commented Apr 21, 2026

Purpose

Adds Notes Categories Editor to VMS, updates Notes to use Categories

Related Issues

Closes BHP1-1480

Submission Checklist

  • Included Jira issue in the PR title (e.g. BHP1-### <title>)
  • Code passes linter rules (clj-kondo --lint components/**/src bases/**/src projects/**/src)
  • Feature(s) work when compiled (clojure -M:compile-cljs)

Testing

  1. Run migration migrations.2026-04-21-add-note-categories, sync
  2. Run a new Surface worksheet
  3. Verify that you can open the notes, new Note Categories are shown, notes can be saved, edited, deleted
  4. Run a new Surface & Crown worksheet
  5. Verify that "Canopy Fuels" is listed as a category in the Notes categories
  6. Verify that the CMS shows under the Behave app a new "Application Note Categories" that can be edited

CMS:
- Add :note-category/order, :modules, :translation-key to schema
- Add :application/note-categories sub and table-entity-form editor
- entity-form: resolve :db/id on ref-cardinality-many retractions so
  editing an existing note-category's module set doesn't ghost old refs

App wiring:
- :vms/note-categories now returns the shaped pull; new
  :wizard/note-categories filters by worksheet module set
- Standard wizard page: swap :vms/note-categories for the filtered
  sub and pass modules to wizard-notes
- c/note: use shared dropdown component, add Cancel with dirty-check
  discard-confirm, require a selected category before Save
- Wizard note list: confirm before Delete, move Edit/Delete onto the
  note-title row
- Translated Cancel / discard / delete-confirm strings

Migration:
- development/migrations/2026_04_21_add_note_categories.clj seeds
  Fuel Model / Fuel Moisture / Weather / Topography / Fire Behavior
  (all-module), Canopy Fuel (SURFACE+CROWN), Resources (SURFACE+CONTAIN),
  Mortality (SURFACE+MORTALITY), plus English translations for the new
  category names and UI confirm strings

Styling:
- .note__category-select: horizontal flex, 14px medium labels on one
  line, Category label inline-left of the dropdown
- .note__footer: Cancel and Save grouped adjacent on the right
- .wizard-note__header: title + Edit/Delete share one row
@Kcheung42
Copy link
Copy Markdown
Collaborator

Looks Good!

@Kcheung42 Kcheung42 self-requested a review April 28, 2026 21:02
Copy link
Copy Markdown
Collaborator

@Kcheung42 Kcheung42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@rjsheperd rjsheperd merged commit 5da5adc into main Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants