Skip to content

feat(dataservices): show metadata quality score#1124

Open
Samuelfaure wants to merge 9 commits into
mainfrom
feat/dataservice-quality-score
Open

feat(dataservices): show metadata quality score#1124
Samuelfaure wants to merge 9 commits into
mainfrom
feat/dataservice-quality-score

Conversation

@Samuelfaure

@Samuelfaure Samuelfaure commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Displays the dataservice metadata quality score (added in opendatateam/udata#3819) on the dataservice detail page.

  • Adds the DataserviceQuality type and an optional quality? field on the Dataservice type.
  • Renders quality.score on pages/dataservices/[did].vue, reusing the existing data-agnostic DatasetQualityScore component (progress bar with "Bon" / "À améliorer" + percentage).

Dependency

⚠️ Requires opendatateam/udata#3819 to be merged and deployed — the API must return the quality object before the score renders. The display is guarded with v-if="dataservice.quality", so it degrades gracefully until then.

Test Plan

  • pnpm run typecheck — clean (the 10 criteria keys + score match the backend payload exactly)
  • Manual test

@Samuelfaure

Copy link
Copy Markdown
Contributor Author
image

@Samuelfaure Samuelfaure requested review from ThibaudDauce and maudetes and removed request for ThibaudDauce June 8, 2026 13:26
Comment thread datagouv-components/src/components/DataserviceQualityTooltipContent.vue Outdated
Comment thread pages/dataservices/[did].vue
Comment thread datagouv-components/src/components/DataserviceQuality.vue
@Samuelfaure Samuelfaure force-pushed the feat/dataservice-quality-score branch from 9211a55 to b665c06 Compare June 19, 2026 14:22
Mirror the dataset quality indicator: wrap the dataservice quality score
in a Toggletip listing which metadata criteria are fulfilled on hover.
The component is shared between datasets and dataservices.
Mirrors the dataset quality behavior where failed criteria are
listed as inline warnings below the quality score toggletip.
Mirrors dataset cards which show DatasetQualityInline.
@Samuelfaure

Copy link
Copy Markdown
Contributor Author

@nicolaskempf57 Added 3 commits for your 3 suggestions

Comment thread datagouv-components/src/components/DataserviceQuality.vue Outdated
Comment thread datagouv-components/src/components/DataserviceCard.vue
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