Skip to content

temp3 matrix implementation#4635

Draft
vivekavuthu wants to merge 2 commits into
masterfrom
templates_dicttree_newRoute
Draft

temp3 matrix implementation#4635
vivekavuthu wants to merge 2 commits into
masterfrom
templates_dicttree_newRoute

Conversation

@vivekavuthu

Copy link
Copy Markdown
Contributor

This pull request introduces a new "Templates 3" chart picker for profile forms, providing a data-driven, module/domain matrix/list UI for selecting chart types. It ensures chart-type options are always in sync with the underlying data by deriving available chart types directly from the database, rather than static config. The update also includes unit tests for the new logic.

Templates 3 chart picker implementation:

  • Added a new "Templates 3" chart type to the chart type list in mass/charts.js, which launches a matrix/list menu for selecting profile forms charts.
  • Implemented profile/forms3.ts, which:
    • Groups template-bearing domains by module, displaying available chart types as buttons (all derived from DB child term subtypes).
    • Supports cross-domain charts, displaying them under each domain they span.
    • Includes a search/filter UI and module accent colors.
    • Ensures the picker is always in sync with the data structure.

Database-driven chart type derivation:

  • Added profile/formsChartTypes.ts, providing functions to:
    • Map child term subtypes to chart-type display names in canonical order.
    • Query the database for each domain’s available chart types, ensuring the picker stays up-to-date as data changes.

Integration and testing:

  • Updated plots/importPlot.js to support dynamic import of the new profile/forms3.ts chart type.
  • Added unit tests in test/forms3.unit.spec.ts to validate the grouping, mapping, and cross-domain logic of the new picker.# Description

Checklist

Check each task that has been performed or verified to be not applicable.

  • Tests: Added and/or passed unit and integration tests, or N/A
  • Todos: Commented or documented, or N/A
  • Notable Changes: updated release.txt, prefixed a commit message with "fix:" or "feat:", added to an internal tracking document, or N/A
  • Rust: Checked to see whether Rust needs to be re-compiled because of this PR, or N/A

@vivekavuthu vivekavuthu force-pushed the templates_dicttree_newRoute branch from 254830d to 8156d3d Compare June 24, 2026 16:04
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