Skip to content

feat(ui): sub-task steps in the task tree; upload page gets a map and citation metadata - #462

Merged
wmobley merged 2 commits into
developfrom
feat/ui-steps-tree-and-upload-metadata
Nov 20, 2026
Merged

wmobley merged 2 commits into
developfrom
feat/ui-steps-tree-and-upload-metadata

Conversation

@wmobley

@wmobley wmobley commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Two UI changes the user asked for after #461, in one PR so dev runs a single build.

1. A sub-task's steps sit in the task tree (problem statement page)

  • When a sub-task is open on /modeling/problem-statement/:id, its steps (Framing … Summary) are listed under it in the task tree, with the same status marks, summaries and locking. The separate "Sub-task steps" column is gone from that page.
  • The steps list uses the same collapsible accordion as the sub-task lists. Only the open sub-task shows its steps.
  • One source of state: MintThread still owns the step state through deriveStepStates. A new optional onStepNavChange prop publishes it to the embedding page, which renders SubTaskStepsTree.
  • WizardStepButton is shared by the rail and the tree.
  • The stand-alone thread page (/modeling/thread/:id) keeps WizardRail unchanged.

2. Upload a dataset: a map, and metadata a reader needs

  • Spatial coverage map:
    • Drawing a box on the reused DatasetSpatialMap replaces the four coordinate boxes, which remain as a collapsed "Edit coordinates" fallback kept in sync with the map.
    • Choosing a MINT region outlines it on the map.
    • The new map props (outline, fitToBox, and labels) are optional and default off, so the thread Datasets step is unchanged.
    • The map's buttons are now type="button", so they no longer submit a form they sit in.
  • Metadata, written to the portal's CKAN dataset schema fields:
    • Required: description (notes) and license (license_id, from license_list, defaulting to cc-by).
    • Optional: tags (tag_string), source or citation (url), version, author (prefilled with the username) and contact email (maintainer_email, never prefilled).
    • Per file: an optional description.
    • The chosen variable: its description and units are shown read-only.
  • "What others will see": a summary card before upload.
  • Fixes:
    • The thread-input "does not declare a file format" note no longer shows on this page.
    • Standard variables with no label showed only a UUID in the picker. They now read "…83d62379 (no label)", and the upload page leaves them out, because the label is what gets recorded.
  • Unchanged: thread uploads, since the new uploadFilesToCatalog params are optional.

Tests

  • UI: 1552 passed; tsc, eslint and prettier clean.
  • Not yet checked live: the map draw in a real browser, the CKAN schema accepting the new keys, and the hand-written units query. These are checked on dev after deploy.

🤖 Generated with Claude Code

On the problem statement page the open sub-task's steps now nest under its row
in the task tree (collapsible, same states, locking and summaries as before)
and the middle step-rail column is gone. MintThread derives the step state once
and publishes it through onStepNavChange; the stand-alone thread page keeps the
rail.
…ummary card

The upload page now draws the bounding box on the shared spatial map (a
chosen region is outlined on it) with the four coordinate boxes kept under
Edit coordinates. It asks for a description and license, and takes tags,
source link, version, author, contact email and a line per file, all written
to the portal's schema fields. A summary card shows the dataset as others
will see it, the chosen variable shows its description and units, and the
no-format note from the thread-input check is not shown here. Unlabeled
standard variables read as a name instead of a bare id.
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
monorepo Ready Ready Preview Nov 20, 2026 2:14pm UTC

@wmobley
wmobley merged commit e62265f into develop Nov 20, 2026
42 of 43 checks passed

This branch was successfully deployed

1 active deployment
Preview — 91d5c628 Deployed Nov 20, 2026 by vercel[bot]
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.

1 participant