Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize frontend design system/components structure #316

Open
katyasoup opened this issue Jan 23, 2025 — with Linear · 1 comment
Open

Reorganize frontend design system/components structure #316

katyasoup opened this issue Jan 23, 2025 — with Linear · 1 comment
Assignees

Comments

Copy link
Collaborator

Description:

Many shared components like our checkboxes, header/footer, search input, etc are housed within the /query directory, even though they are used elsewhere throughout the app. We should reorganize our file structure and store like with like, so that these shared components are accessible from one level, and page-specific components (like patient result view, or the concept code selection form) live at the same level as their respective pages.

Acceptance Criteria:

  • a top-level designSystem directory should house:
    • static components that are re-used throughout the app (header, footer, site alert, etc)
    • dynamic components that are data-agnostic (ex. the Accordion component is a wrapper that takes in content-forward params and puts it in the right data structure that underlying Truss component expects)
  • page-level components directories should house:
    • the base page.tsx for next.js routing
    • components that are unique to that page/view
      • ex: query-building components include ValueSetSelection, ConditionSelection, ConceptSelection, each of which pull in shared top-level components like Checkbox, Drawer, etc)
@katyasoup katyasoup self-assigned this Jan 23, 2025
Copy link

linear bot commented Jan 23, 2025

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

No branches or pull requests

1 participant