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

Move resources to their own store #287

Merged
merged 12 commits into from
Dec 21, 2023
Merged

Move resources to their own store #287

merged 12 commits into from
Dec 21, 2023

Conversation

nicolaskempf57
Copy link
Contributor

@nicolaskempf57 nicolaskempf57 commented Dec 15, 2023

Relates to #211 (comment) and #250

Autre

Job story

Utilisateur : Visiteur

Quand je me rends plusieurs fois sur la même page,
je ne veux pas voir des écrans de chargement à chaque fois,
pour fluidifier mon expérience.

Contexte ou situation

Lorsque je visite deux fois la même page,
je m'attends à ne pas avoir de chargement la seconde fois.

Problème rencontré par les utilisateurs

Ce n'est pas le cas.
Il y a un changement de page complet et un écran de chargement à la navigation sur une page d'un jeu de données.

Qu'est-ce qui change ?

Modifications techniques

  • 🛠 Création d'un ResourceStore
  • 🛠 Mise à jour de la version de data.gouv.fr-components pour avoir des <RouterLink> dans les <DatasetCard>

Pour l'instant, seule la première page est stockée dans le store, les autres pages et les résultats avec recherche ne le sont pas. On peut écraser à chaque fois le contenu stocké pour avoir le même état (barre de recherche et page) au retour sur une page si vous préférez.

Copy link

netlify bot commented Dec 15, 2023

Deploy Preview for ecospheres ready!

Name Link
🔨 Latest commit 0f3622e
🔍 Latest deploy log https://app.netlify.com/sites/ecospheres/deploys/657c7067aa82f60007f18776
😎 Deploy Preview https://deploy-preview-287--ecospheres.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 20, 2023

Deploy Preview for ecospheres ready!

Name Link
🔨 Latest commit 5a0102a
🔍 Latest deploy log https://app.netlify.com/sites/ecospheres/deploys/6582e82d3dd8450008442b4b
😎 Deploy Preview https://deploy-preview-287--ecospheres.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

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

En local, les cartes des jdd pointent vers http://localhost:5173/[object%20Object] sur http://localhost:5173/datasets.

Pourtant j'ai bien npm (c)i et restart mon server 🤔 En revanche sur la deploy preview c'est bon 🤷

ecospheres-front on  feat/refac-resource-store [$] via  v20.7.0
❯ npm list|grep etalab
├── @etalab/data.gouv.fr-components@1.11.9

@abulte
Copy link
Contributor

abulte commented Dec 21, 2023

En local, les cartes des jdd pointent vers http://localhost:5173/[object%20Object] sur http://localhost:5173/datasets.

Pourtant j'ai bien npm (c)i et restart mon server 🤔 En revanche sur la deploy preview c'est bon 🤷

ecospheres-front on  feat/refac-resource-store [$] via  v20.7.0
❯ npm list|grep etalab
├── @etalab/data.gouv.fr-components@1.11.9

Ca a finit par tomber en marche, je crois que j'avais des process nodes fantômes 👻

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

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

@abulte abulte merged commit f600fc3 into main Dec 21, 2023
4 checks passed
@abulte abulte deleted the feat/refac-resource-store branch December 21, 2023 08:53
@nicolaskempf57
Copy link
Contributor Author

Ok ! Si jamais on reproduit ce type d'erreur, il est possible qu'il soit nécessaire de faire le fix pour vue-router comme on a fait pour 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.

3 participants