-
Notifications
You must be signed in to change notification settings - Fork 6
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
GN-4441: Hide template comments via CSS in all previews #545
GN-4441: Hide template comments via CSS in all previews #545
Conversation
…wing-signing-and-publishing-in-the-publishing-service # Conflicts: # package-lock.json # package.json
…mments-on-previewing-signing-and-publishing-in-the-publishing-service
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.
The template comments seem to be correctly hidden on the meeting page. On the publishing page, I get several JSON.parse
errors, and the decisions/agendapoints do not load.
Update: possibly an issue with my local setup, will check. |
Sadly not a local issue, seems to be an issue with the response that is generated from the |
@elpoelma I tried to test it myself: Could you try and create a reproducable example that gives an error/has a problem that I can test out? I might miss things of how gelinkt-notuleren should work, so that's why I look at differences between master and this branch instead of what I think it should do :) |
@x-m-el I created a video in which I could reproduce the bugs I encountered. |
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.
Update: it seems the issue was on my side. As I did not set NODE_ENV
to development
when overriding the preimporter-service, sorry. I tested it with a meeting containing an agendapoint which contains a regulatory statement with template comments. The template comments do not show up on the meeting page or on the publishing page.
…wing-signing-and-publishing-in-the-publishing-service # Conflicts: # app/controllers/agendapoints/edit.js # app/controllers/regulatory-statements/edit.js
Overview
Hide template comments when previewing documents (but keep showing when editing/filling them in).
Template comments are only needed to be shown when editing a document.
connected issues and PRs:
This PR needs #541 which updates the editor packages. Note that this PR is a PR to master, split from #541, which means it also includes the #541 changes. The changes for hiding template comments can all be found in
app/styles/project/_c-editor-preview.scss
GN-4441
Changes in the publishing service: lblod/notulen-prepublish-service#105
Setup
How to test/reproduce
Make sure all template comments are hidden (except for where editing the document).
To easily add them do a document, add
to an editor.
Challenges/uncertainties
Hiding is done via css, which is the most easy part (and quickest, as there is no document changing).
It was added to all "preview" classes, because it is unclear where they might be used and end up in. So safest is the always hide them.