-
Notifications
You must be signed in to change notification settings - Fork 10
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
ISSUE-199 - Grouping of icons to search for an owner/co-owner #205
base: master
Are you sure you want to change the base?
Conversation
same as #203, needs plumbing to install the svg, otherwise you get a broken icon: remark on the selected tool icon: it should be green not grey to hilight which one from owner/co-owner is active.. same thing for the new button color, it should be green if we're on the owner tools pane. there's a weird behaviour, if you click on the (already selected) tool button, it .. comes back to the cadastrapp welcome pane ? |
Not tested in integration for the moment, only in dev |
We find build patch to includes SVG files in build process. I dunno if they finally works well.... mapstore2-cadastrapp/build/extension/prod-webpack.config.js Lines 31 to 39 in e2f87a8
For this pull, we can set image source from svg data string. |
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.
J'opterai pour une autre manière de gérer l'icône avec une image en n'utilsant pas uniquement la clé glyph (pour moi réservée dans MapStore à une valeur de glyphicon).
Tested in integration.
|
im not a fan of this solution since it makes it very hard to (eventually) override the icon.. we should be able to use svgs in extensions, im surprised there's no working example elsewhere ? i dunno if its my local build, but it seems this PR/ranch includes #202 since i get to test both when building this branch... which is perfect from a testing POV, not sure from a project mgmt POV :) the ppl search icon renders okay here, there's just a small inconsistency in title positioning wrt icons in the pane (above/below): that makes the display weird when you switch from one to the other.
ah, maybe that's the current behaviour, right. But ... from an UX pov, isn't it... super confusing ? :) |
Same for me. But SVG's build config seems only apply in mapstore2-cadatrapp repo. This works well in dev mode but not after extension build process (due to different build config / process).
You mean if you want to override via the extensions directory (datadir) ? |
I suppose webpack config on simple
...and extension build (to create zip) use a different config : Note that |
yes, since here the extension is unpacked in the georchestra datadir, having the icon as an asset/svg file makes it easy to override/historize in git.
now that's a good catch. with that local diff on top of this branch, and the
and building the extension:
the resulting zip contains the svg file at the toplevel dir:
that could be used/reached from the extension code probably the same way how translations/index.json is imported/used. Or find the right magic so that the svg is copied under btw i think the same thing/construct should be done to install the svg in #204 for the extension icon. instead of inlining the svg in a js file.... |
Indeed, we have this behvior with SVG but it's a real ngithmare :
So, to avoid to disrupt webpack process and ease next / potential upgrade (if process changes) i'd suggest to use SVG string (juste copy / past SVG to constant file seems easy).
That's the question we discussed this morning with @LPoin ... |
About our SVG issue :
It treats svg as modules and places them in the defined output, in this case the root. Tested solutions :
Current test :
|
id="svg5" | ||
inkscape:version="1.1 (c68e22c387, 2021-05-23)" | ||
sodipodi:docname="interface__cadastrApp.svg" | ||
inkscape:export-filename="C:\Users\Agathe\Desktop\Cadastrapp\Refonte_interface\Cadastrapp__interfaceSearchProp.svg" |
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.
can it be removed from svg ?
Conflict need to be merge |
!! MERGE AFTER PR 202 FOR ISSUE-197 !!