-
Notifications
You must be signed in to change notification settings - Fork 0
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
Contrib Mode #163
Contrib Mode #163
Conversation
be2c2d4
to
fc73034
Compare
Does work from any pages (at least main map and category list) ? |
526b8f2
to
e45db50
Compare
yes It does ! |
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.
Here we have the whole logic within a middleware file, which is not the best in my opinion.
On a next work about Contribution, we could convert this code into a Nuxt Module.
This way we would isolate from the main codebase:
- the store
- middleware
- utility functions
- UI component
- Types
- Maybe translations (by merging them within our main translation files)
Please, can you add an entry into the README on how to use this feature. |
The mapillary link does not appear in the POICard.
The |
I can add MapillaryLink to POICard of course. I though from the specs it was unwanted here ... In fact it's not, I though it was thanks to |
Right. Note, from the issue is also required to do in in the detail pages, (there is already and osm link in the footer to be removed) |
Alright, do we need to remove only © OpenStreetMap contributors ? |
No, the link to osm.org from the date. |
Yes, because the image is a configurable field. |
Should we remove this link only on Contributor Mode or for every one ? |
For every one, was "quick" contrib mode hack. |
a201e23
to
d1e6e9a
Compare
Contrib column lost on list when switching category client side. |
Yes, I need to add the Note: It would be more convenient to have all the data processing on |
Should I add them in local i18n or do we integrate it from Translations API ? If I do it in frontend, I need to isolate contrib case on FieldsHeader as it's based on Translations API: <FieldsHeader
v-if="field.label"
:recursion-stack="recursionStack"
:class="`field_header_level_${recursionStack.length}`"
>
{{ fieldTranslateK(field.field) }}
</FieldsHeader> |
Like the fields settings, you could inject if in the translations from the API ? |
Yes from
What do you think ? |
Fix here |
… state in localstorage #142
2fe82af
to
ec70377
Compare
PR updated, now we are injecting Contrib fields on templates, instead of key addition in data. |
I think we have to add fr translation for new list headers entries
editor_id
,osm_note
,mapillary_link
And translation in spanish local file for
editor_id
,osm_note: