Closed patrickkaleta closed 4 years ago
Latest changes by @bullz meant some improvements, but I think we are still not quite done here.
The styling for the .item-preview
doesn't seem to be correct compared to the provided screenshot.
In addition, this view shows not only resources (content entities), but also hazards (taxonomy terms), which have a hierarchy. I think it would be good to show this hierarchy on that page as well. Also the taxonomy terms themselves can also be clicked on and they provide an item-preview as well.
I think I need some help on where this code is generated, I can't find it. this HTML needs to change to proper styling without too much CSS hacking
I think I need some help on where this code is generated, I can't find it. this HTML needs to change to proper styling without too much CSS hacking
This is all created in some nested View calls. @fgeyer16 took care of implementing this, he can list you the involved views and the order in which they are called.
It's generated in https://csis.myclimateservice.eu/admin/structure/views/view/step_data_collection_2/edit/entity_view_1
Which is probably something we should "kill" in order to get more flexibility. https://csis.myclimateservice.eu/admin/structure/types/manage/gl_step/display/data?destination=/contextual/render&destination=/study/35/step/1530/view/data
Instead of this, we should do the same as in other steps - ideally in the same way as we did for the tables in the identify adaptation options step (e.g. https://csis.myclimateservice.eu/study/35/step/1526/view/table)
https://csis.myclimateservice.eu/node/1286/edit
Alternatively, we could do it as twins are implemented - use view field directly in GL-step. Saves us one level of redirection but makes it more difficult to configure templates and doesn't allow to use external applications.
This is related to this issue (can we merge them somehow?) As @DenoBeno already said there we have also a multiplication issue due to multiple Terms for a single resource. I do not think that restricting to one term would be a good idea so I propose a solution, which does not show all matches or how ever you want to name it initially. What I have in mind is something accordion like which it is used here: http://cfe-zertifizierung.at/measures. Since only one Term is open at one moment nobody will be confused on the dupicates. And the view we need is much better to understand since it is a simple view with only set grouping to the categorisation field (https://csis.myclimateservice.eu/admin/structure/views/view/step_data_collection_2/edit/entity_view_2) and not such a monster as it is the current used view. If wanded I can provide the twig file and maybe the js (there is used jquery or bootstrap.js )
I have closed https://github.com/clarity-h2020/csis/issues/106, so consider them merged now.
What I'm wondering is if we should allow people to choose some of the resources and include them to the report, like we do for the adaptation options now.
see e.g. https://csis.myclimateservice.eu/study/33/step/1515/view/table
This is my proposal on how the new "data" tab could look like. Just like for the twins, we will probably end up using different views for different steps, so I recommend to resolve what is shown where in the same way as it's done for the tables now.
The report should IMO contain details only for the chosen resources (in the section where they were chosen) and just a basic information for the all resources in the data package in a separate section (annex).
Reminder: we also need to include the "pseudo resources" in the data tabs and in the annex listing all resources. That's the adaptation options and the vulnerability functions. I believe that we can use the already existing views that are currently under "table" for this purpose (with minimal changes).
The style has been lost, I think the view has changed. Should I look into it and try to fix it?
How it looks in local:
How it looks in server now:
The style has been lost, I think the view has changed. Should I look into it and try to fix it?
Just take a quick look and see if you can spot the change (I'm assuming probably a CSS class has been renamed or removed). It would be nice to get at least the "button-like" background for each term back, but don't invest too much of your time into that.
Reading through this thread it looks like the whole data package view will be undergoing some major changes in the near future, so trying to completely fix this now would be a waste of time IMO.
The view changed, so I added styles for the new classes in a new commit
Please close this issue if this has been resolved in the updated theme or give feedback on the status.
Closing this (styling is IMO ok, so nothing else to do here regarding the theme) and starting a separate issue about what the Data tab should look/behave like.
As explained here the appearance of this tab needs to be improved. Example link, where this tab is used: https://csis.myclimateservice.eu/study/1/step/2/view/data
Some thoughts:
Jump to https://github.com/clarity-h2020/clarity-theme/issues/7#issuecomment-537516564 for idea how to handle this.