Open glutanimate opened 2 years ago
I took a stab at this today. The diff is here (tested with the latest Anki, ad74a014
). I ran into a few issues, culminating in that clumsy commit. I may be using the wrong hook (or using it incorrectly), but appending the resultant HTML from render_for_view
didn’t work; the <script>
tags weren’t being loaded, so I had to load them separately: First, load the library dependencies. Add heatmap.js
in a setImmediate
-style so that d3 was loaded already (else there’s an uncaught exception). Then wait for the CongratsPage.svelte
content to be rendered (is there a hook for this?) and append the heatmap_html
, the initialisation <script>
won’t run, so pull it out and eval
it.
Any update on this? Seems weird we can't see on deck screens still when complete.
Can the fix @sameersismail suggested be implemented @glutanimate? I would love an update addressing this. Thank you.
Since the introduction of the new "congratulations" / "deck finished" screen, users are no longer able to access per-deck stats for the day once they've completed that deck. We should look into adding support for this view.
For an example see: https://github.com/glutanimate/review-heatmap/issues/137#issuecomment-999867669
Implementation notes: