AnkiHubSoftware / ankihub_addon

3 stars 0 forks source link

[BUILD-456] feat: Update iframe src when reviewed card changes #978

Closed RisingOrange closed 5 months ago

RisingOrange commented 5 months ago

We need to update url of the AnkiHub AI page loaded in the iframe when the reviewer switches to a new card. (The urls look like this: https://app.ankihub/ai/chatbot/<note_id>)

Related issues

https://ankihub.atlassian.net/jira/software/c/projects/BUILD/boards/1?selectedIssue=BUILD-456

Proposed changes

How to reproduce

Screenshots and videos

https://github.com/ankipalace/ankihub_addon/assets/31575114/98b06ba8-f079-49c0-b658-1db3dd5de941

Comment

We will need to handle the case that the token used for authentication with the chatbot page is invalid. This will be done in a different task: https://ankihub.atlassian.net/jira/software/c/projects/BUILD/boards/1?selectedIssue=BUILD-455

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.66%. Comparing base (8f2405a) to head (4f20087).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #978 +/- ## ========================================== + Coverage 87.65% 87.66% +0.01% ========================================== Files 66 66 Lines 6724 6730 +6 ========================================== + Hits 5894 5900 +6 Misses 830 830 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.