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

Migration de @datagouv/components #1668

Open
8 tasks
ThibaudDauce opened this issue Feb 12, 2025 · 1 comment
Open
8 tasks

Migration de @datagouv/components #1668

ThibaudDauce opened this issue Feb 12, 2025 · 1 comment

Comments

@ThibaudDauce
Copy link

ThibaudDauce commented Feb 12, 2025

Migration

  • Création d'un package @datagouv/components-next dans un sous-dossier de front-end ou migration direct avec une nouvelle version ?

Gestion du CSS

  • Création d'un fichier CSS avec TailwindCSS v4 qui contient toute la config
  • Test d'import de ce fichier CSS dans un autre fichier app.css pour voir si tout vient bien avec et que la génération côté utilisateur (front-end / udata-front-kit) se passe bien

Gestion des traductions

  • Utilisation de useI18n() ?
  • Création d'un fichier JSON pour toutes les traductions de @datagouv/components et import de ce fichier JSON dans les projets enfants ?
  • Passage au clés en français ?

✅ Gestion de la config

Changements durant la migration

  • Suppression des composables utilisés à outrance ?
  • Doit-on exposer des fonctions ou juste des composants ?

Utilisateurs

  • udata-front-kit
  • Autres ?
@ThibaudDauce
Copy link
Author

ThibaudDauce commented Feb 12, 2025

udata-front-kit

Finalement très peu de composants sont utilisés par udata-front-kit la migration devrait pas être trop compliquée.

Types

  • DatasetV2
  • Organization
  • Resource
  • User
  • Owned
  • Rel
  • License

Functions

  • formatRelativeIfRecentDate

Components

  • OrganizationNameWithCertificate
  • DatasetCard
  • Pagination
  • ResourceAccordion
  • InformationPanel -> DatasetInformationPanel
  • ReadMore
  • QualityComponent
  • Well
  • AppLink

Composables

  • useOwnerName -> getOwnerName

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