department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

How might we get a jump on delivering secondary nav? #72499

Closed wesrowe closed 10 months ago

wesrowe commented 10 months ago

Description

User story

As a Cartographers team member, I want to set us up to deliver MHV secondary navigation as quickly as possible after UX/UI design is finalized, so that we're ready for MHV-on-VAgov integration (all tools available on Ph1).

Notes

Acceptance criteria

Tasks

dcloud commented 10 months ago

Added some questions to the notes. It's unclear to me what prior art exists for a shared component created by a non-platform team and usable by isolated apps, but I believe it would exist in src/platform if it does. Maybe we could create src/platform/mhv or something similar?

Maybe good questions for the AuthExp team

dcloud commented 10 months ago

Added detail about @@vap-svc...

adamwhitlock1 commented 10 months ago

@dcloud Here are a few thoughts that I have, but would be more that happy to meet up to discuss more about this type of thing:

carlosfelix2 commented 10 months ago

To expand on the note that the Platform docs suggest src/site as a location for a shared component:

radavis commented 10 months ago

Agree w/ @carlosfelix2 that src/platform/site-wide/mhv is probably the best place for this. Imports would look like import { ComponentName } from @department-of-veterans-affairs/platform-site-wide, once adding our secondary nav component to src/platform/site-wide/exportsFile.js.

carlosfelix2 commented 10 months ago

Our final recommendation is:

  1. Location of the secondary nav code should be in src/platform/site-wide/mhv. We would add the typical web component folders to the mhv folder (e.g. components, constants, etc.).
  2. Add the secondary nav component to src/platform/site-wide/exportsFile.js to make the import easier and be something like import { ComponentName } from @department-of-veterans-affairs/platform-site-wide
  3. Preference will be to add ourselves as code owners for this folder. There are no other code owners for the existing code in that folder, but that existing code is small and rarely updated.
  4. Should add these details to the initial implementation story.
  5. Will not add code to the repo at this time as we do not want to introduce dead code which will probably result in comments to remove it anyways.
wesrowe commented 10 months ago

sounds very clear to me. this can close – I'll make sure to link the recommendation above in the implementation ticket.