-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Handlebar multiple problems #22548
Comments
CSS and sanition work correctly when |
I'm also experiencing problems with handlebars in 2.0.1. Can you share what you are supplying to |
@sfirke, I just set it to false for now:
There is no |
Got it. I am seeking an example of how, with Sanitization = True, I could allow something simple like EDIT: This chunk from this Preset blog post got my charts looking correct again, with
|
Yes, thats why I noted:
With sanitation off, css works normaly, here is one example, even animations work: NOTE: DO NOT HAVE EMPTY LINES IN CSS. |
There are some details about how to configure |
With first problem (Raw records) i am select table component, switch to raw records, do that i need and switch back to handlebars. Error still visible, but data is available. |
Honestly, I feel like we should break this up into separate Issues. Sounds like we've collectively resolved one of them, but the others need to be teased apart and tackled separately, or this issue will be difficult to track and close. CC @jdbranham and @villebro in case you or anyone you know of has bandwidth to start chipping away at some of these things. |
We may be able to resolve issues with empty lines in the HTML template and/or the CSS by making Prettier a full dependency (rather than a dev dependency) and using |
But I still think that markdown here is probably not a good idea, I beleive that this is just one way it could mess things up. |
Is anyone willing to break this up into separate issues? I'd close this as stale, but I know at least some of this is still valid. We should just make individual, more easily actionable, tickets. |
@rusackas agreed that some of this is still valid and that these multi-part tickets are not great. Michael has been very good recently pushing me to submit multiple separate tickets that are actionable. Going forward I'll try to issue the request for multiple tickets immediately upon reading. |
Hey folks... this seems to have gone stale. I'll be using the plugin a bit more in the near future, and will report any issues I find separately. If closing this ruffles any feathers, please feel free to copy/paste/submit any of the individual problems as individual Issues, and hopefully we can start tackling them! |
I am reporting here multiple problems on Handlebars with latest master (pulled on 2022-12-19 at 12h). This is unfortunate since its IMO the most flexible chart type out there that allows arbitrary detailed customizations on KPI like data and small lists.
Using dataset:
Screenshot
1. Raw records
This happens with any dataset and it doesn't happen if there is no dataset. Error is
n.map is not a function
:Screenshot
2. Css visible in the otput
As soon as you add something in CSS it becomes visible in the output (here just space). Reported at #22410.
Screenshot
Screenshot
If I move rule to the top, then it works, but last now doesn't. Seems like markdown problem. Why would you process CSS with markdown ?
3. Santiation
HTML is sanitized, althogh there is no icon showing that like on CSS. Noticed how
class
is gone everywhere:Template
Render
4. Weird behavior with new line
If I just add a new line in the table:
Screenshot
5. View as table / dataset
View as table simply doesn't work, it also draws handlebar template:
screenshot
Viewing and setting dataset columns and metrics is almost impossible:
screenshot
Perhaps just better documentation should be done but nevertheless, it feels like half-done-work with this chart, too many gotchas all around, while certainly being the only way to craeate arbitrary UI and should be well polished (and promoted, both in docs and examples). Also, Template and CSS editors should be easier to work with (bigger/maximizable etc.)
The text was updated successfully, but these errors were encountered: