Skip to content

Releases: datagouv/cdata

@datagouv/components-next v1.0.0

20 Feb 09:37

Choose a tag to compare

🔴 Breaking Changes

Explode DatasetInformationPanel into multiple components (#912)

Removed DatasetInformationPanel. Added DatasetEmbedSection, DatasetInformationSection, DatasetSchemaSection, DatasetSpatialSection, DatasetTemporalitySection, LeafletMap, LicenseBadge, Tag, DescriptionListDetails, DescriptionListTerm.

Type restructuring (#863, #846)

  • Organization and User types no longer extend their reference types
  • Added class discriminant field to UserReference, OrganizationReference
  • Added DatasetReference, DataserviceReference, ReuseReference types
  • Added OwnedWithFullObject type
  • Entity types now reference shared fields via Pick-style syntax (e.g. id: DatasetReference["id"])
  • Widened component props: Avatar accepts User | UserReference, OrganizationNameWithCertificate accepts Organization | OrganizationReference
  • AvatarWithName gained withLink prop

🟢 New Features

Global search (#907, #913, #929, #933, #935)

New search system: GlobalSearch, SearchInput, Sidemenu, BasicAndAdvancedFilters, SearchableSelect, SelectGroup, form selects (BadgeSelect, FormatSelect, GeozoneSelect, GranularitySelect, LicenseSelect, OrganizationSelect, OrganizationTypeSelect, ReuseTopicSelect, SchemaSelect, TagSelect), RadioGroup, RadioInput, filter components (AccessTypeFilter, DatasetBadgeFilter, FilterButtonGroup, FormatFamilyFilter, LastUpdateRangeFilter, ProducerTypeFilter, ReuseTypeFilter). New composables: useDebouncedRef, useRouteQueryBoolean, useSelectModelSync, useStableQueryParams. New search types.

Resources explorer (#895)

New ResourceExplorer, ResourceExplorerSidebar, ResourceExplorerViewer components and useResourceCapabilities composable.

New cards (#903)

New components: DiscussionMessageCard, ObjectCard, ObjectCardBadge, ObjectCardHeader, ObjectCardOwner, ObjectCardShortDescription, PostCard, ReuseHorizontalCard, TopicCard. Redesigned DatasetCard, DataserviceCard, ReuseCard. Added types for discussions, pages, posts.

Other features

  • Vue-sonner toasts (#834) — Migrated toast system, updated CopyButton
  • SEO helpers (#878, #884) — Added getDescriptionShort and getKeywords in description.ts
  • Markdown (#900) — MarkdownViewer supports header removal via remark-behead
  • Metrics (#944) — Download helpers in metrics.ts, updated useMetrics composable
  • Organization types (#796) — Added permission fields to organization types
  • OrganizationNameWithCertificate (#849, #863, #915) — Added xs size, colorClass prop, semantic heading tags
  • SEO (#946) — Improved heading levels in ObjectCardHeader, StatBox, ResourceAccordion, ResourceExplorerViewer

🟡 Bug Fixes

  • Metadata layout in resource accordion (#941)
  • Global search design tweaks (#934)
  • Resource search reset button and empty state (#938)
  • Full page reload on search form (#933)
  • Typo in date sentence (#932)
  • Wrong imports in OrganizationCard/OrganizationLogo (#909)
  • Pagination centering (#902)
  • Hydration mismatches on ReuseCard and DataserviceCard (#892)
  • Errors and warnings in OrganizationCard, Tooltip (#893)
  • Replaced removed CSS class with remixicon (#853)
  • Purged CSS classes in StatBox (#858)
  • Missing !important to override DSFR (#842)
  • Missing CSS in Toggletip (#837)
  • Download button label and color (#839)
  • Accessibility errors in BrandedButton, CopyButton, OrganizationCard, Placeholder, EditButton, ResourceIcon, Toggletip (#848)
  • Anchor syntax to query syntax (#840)
  • DataserviceCard test attribute (#836)
  • DatasetQualityTooltipContent test ID (#843)

Full changelog: 9a9e545...components/v1.0.0