-
Notifications
You must be signed in to change notification settings - Fork 77
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
Biodivsports public detail view #3358
Biodivsports public detail view #3358
Conversation
I don't understand, it adds a webpage for each sensitivearea in th Geotrek-admin API? |
It adds a public webpage (no auth required, cf. previous screenshot) for each published sensitive area that will describe sensitive areas (map, sensitive periods, descriptions, contacts, attachments, etc.) ex: https://biodiv-sports.fr/public/sensitiveareas/1296. That page url is provided in SensitiveArea apis under |
@lpofredc could you try not to use VueJS as well as FontAwesome ? We try to reduce the number of dependencies on this project and those (especially Vue) are important librairies. It doesn't seems right to use VueJS if not to replace all views with it in Geotrek and create a better front-end. It does seems that the use of external dependencies to create public views is not required in order to achieve the feature you're trying to add. I'm open to discuss this subject with you if needed. |
Ok, I removed vueJS dependency to use django templates native features. I agree to not add so much dependecies. A better queryset with select related and prefetch will be possible after PR #3348 merge. It was also to prepare biodivsport widget generator integration that also use VueJS and to avoid coding reactivity features by using pure javascript or jQuery. |
I suggest to add TemplateHTMLRenderer directly on SensitivityArea APIV2 viewset. If you call |
Ok, i moved this template view into
|
I was not very familiar with the idea to have HTML pages in an API, but why not. Good for me if OK for Geotrek-admin maintainers, and good to have removed new dependencies such as VueJS. |
Passing run #5728 ↗︎Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Codecov ReportBase: 98.28% // Head: 98.22% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3358 +/- ##
==========================================
- Coverage 98.28% 98.22% -0.07%
==========================================
Files 292 293 +1
Lines 21152 21200 +48
==========================================
+ Hits 20789 20823 +34
- Misses 363 377 +14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
After discussion, will probably be replaced by a new dev using GeotrekCE/Geotrek-rando-widget |
Voir l'article de présentation technique du widget - https://makina-corpus.com/application-web-mobile/creer-application-en-tant-que-composant-web-stencil |
Add a new public web view on sensitive areas.
URL provided in sensitive area api under "public_url" key.
Build with VueJS which will also be used to integrate Biodiv-sports widget generator https://biodivsports-widget.lpo-aura.org/
Already manage attachments (cf. PR #3348 )