Closed RisingOrange closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.83%. Comparing base (
dece30f
) to head (c8ae98e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
In the AnkiHub AI chatbot, we want to know which notes are suspended and which aren't. This way we can e.g. have a button for each note that says "Unsuspend" or "Suspend" depending on if the note is currently suspended. We need a way to get this information.
The AnkiHub AI templates will be able to use java script like this to request the suspension states:
Then they will be able to receive the result using code like this:
Example result:
Related issues
https://ankihub.atlassian.net/jira/software/c/projects/BUILD/boards/1?selectedIssue=BUILD-463
Proposed changes
get_note_suspension_states_pycmd
by getting the suspension states and sending them to the iframe.How to reproduce
chatbot.html
template in the web app.chatbot
feature flag on your local ankihub web app