You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This will require a new way for the add-on to inject its content into web views as the congrats screen does not provide the same web content APIs as other main window views (cf. also the new stats screen)
We could either figure something out for own purposes or work towards improving Anki's APIs in this regard
The text was updated successfully, but these errors were encountered:
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.
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: #137 (comment)
Implementation notes:
The text was updated successfully, but these errors were encountered: