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

Show contact info and metadata on all details pages #160

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

MatMoore
Copy link
Contributor

@MatMoore MatMoore commented Mar 11, 2024

Figma: https://www.figma.com/file/zTOVhHRnWfxRJqH6Gr8cIc/Catalogue-sketches?type=design&node-id=203-2121&mode=design&t=fR5PQmBviZV30T0v-0

This PR extracts a partial for the contact information box shared by the data products details and dataset details. I've also adapted it to look more like the design, although this will need further work to define the different roles in datahub and make sure they are returned correctly to the frontend.

Currently we are only fetching the data owner from the datahub API, but we should also show a point of contact for access requests. I've defaulted to using the data owner for this as well, but we will need to do some more work to define the various roles in datahub.

I've added some of the metadata fields to the details page but not all of it is available in the backend yet. I will either raise separate tickets for this or do it in follow up PRs.

I'm not sure yet what this should look like when data is incomplete - for now I've just left stuff blank as we do on the data product details page.

Example data product with a data owner set

Screenshot 2024-03-11 at 16 43 45

Example data product without a data owner set

Screenshot 2024-03-11 at 16 52 35

Example dataset without a data owner set

Screenshot 2024-03-11 at 16 54 52

Make the dataset details match the data product details,
and show description in its own paragraph, as per the
figma design.
- Use correct elements for headings vs paragraphs
- Reduce the normal margin spacing below the headings - the design here
  looks like a summary list, but with vertical spacing between title and
  value
- Show names and emails together
- Make emails clickable

Since we do not have separate roles in datahub yet for point of contact
vs IAO/data owner, just use the data owner email as the contact email.

We will have another ticket soon to implement roles.
@MatMoore MatMoore marked this pull request as ready for review March 11, 2024 16:49
@MatMoore MatMoore changed the title Show contact info and metadata on all details page Show contact info and metadata on all details pages Mar 11, 2024
Copy link
Contributor

@tom-webber tom-webber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MatMoore MatMoore merged commit e4ee66f into main Mar 12, 2024
8 checks passed
@MatMoore MatMoore deleted the details-page-contact branch March 12, 2024 12:24
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.

2 participants