Skip to content

UI: Resources page — nav entry, type filter, search + Create, JSON edit modal (save/delete/history/diff), recent queries #282

Description

@smunini

Summary

Add a new Resources item to the left navigation and build out the Resource Search page behind it. This is the primary read/write workspace for browsing, searching, creating, and editing FHIR resources in the hfs web UI (crates/ui).

Today the left nav (crates/ui/templates/layouts/base.html) carries nav-item--soon stubs for Search / Resource Editor / History & Versions. This issue promotes that surface into a working Resources page and wires the pieces that already exist elsewhere into it.

Scope

1. Left nav entry — "Resources"

  • Add a new left-menu item with icon + label "Resources" under the Work section (i18n key, matching the existing nav-item pattern; pick/add an appropriate icon under templates/icons/).
  • Clicking it navigates to the Resource Search page.

2. Resource Types filter menu

3. Resource Search page

  • New page with a search area and results list.
  • "Create new" button to create a new resource of the selected type.
  • Natural Language search should work — wire up the AI-assisted / NL search from Natural Language / AI-assisted search: enable on back end and front end #255 (back end + front end).
  • Visual Builder for search — NOT in this issue. Leave it as a clearly-marked TODO / future item (placeholder is fine). Only NL search is expected to function now.

4. Edit Resource popup / shadowbox

5. Recent queries

Explicitly NOT in this issue (future TODOs)

Related

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions