-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feat/list topic comment #205
Conversation
✅ Deploy Preview for ecospheres ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
J'ai un 500 lorsque j'affiche un bouquet sans discussions : |
@streino bien vu, c'est corrigé |
c5f2912
to
3061f9b
Compare
test: rajoute des tests à la visualisation des discussions
Les changements sur #211 s'adressent à la même base du code ( |
fix: broken comments
errorValue.value = null | ||
} | ||
|
||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est nécessaire d'exporter les func internes ? A l'utilisation, on a que :
const {
getDiscussions,
discussionsPage,
discussionsPages,
error: discussionsError,
loading: discussionsLoading
} = storeToRefs(discussionStore)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faudrait tester ! La doc est un peu confuse :
Note you must return all state properties in setup stores for pinia to pick them up as state. In other words, you cannot have private state properties in stores. Not returning all state properties can break SSR, devtools, and other plugins.
Closes #113
Closes #200
Proposition de fonctionnalité
Utilisateur,
Quand je me rends sur une page bouquet, je peux consulter la liste des discussions liées à ce bouquet
Éléments supplémentaires de ma proposition
Ayant été au plus cours, je n'ai pas rajouté de test sur le code existant, @bonjourmauko aurait le temps de rajouter un mock ?
La fonctionnalité n'est que peu testable car les bouquets n'ont actuellement pas de commentaires. Mais voici un exemple de rendu en chargeant artificiellement les commentaires d'un dataset à la place :
![image](https://private-user-images.githubusercontent.com/20337428/287233177-8e94a7d9-2b0b-40b0-aabe-db698d5f892b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MzYxNDYsIm5iZiI6MTczOTYzNTg0NiwicGF0aCI6Ii8yMDMzNzQyOC8yODcyMzMxNzctOGU5NGE3ZDktMmIwYi00MGIwLWFhYmUtZGI2OThkNWY4OTJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE2MTA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlMzg1NmUwODljYjIyYTBlNjlkZjJjN2IzMjM0M2VjZTg4NTYxOTc2MjIzOGJiZDEyYzNhOGYyNWEyOWRlZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BWg99Z0BaOez8TeKB7dkRmTk0Hqp_6pOPsOMziTOuaw)