Skip to content
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

Decoupling CardViewer and card content #8243

Closed
Arthur-Milchior opened this issue Mar 16, 2021 · 8 comments
Closed

Decoupling CardViewer and card content #8243

Arthur-Milchior opened this issue Mar 16, 2021 · 8 comments
Assignees
Labels
Keep Open avoids the stale bot Reviewer

Comments

@Arthur-Milchior
Copy link
Member

Currently, the AbstractFlashCardViewer is very coupled with actual card content. For example mCardContent contains the question/answer text to be displayed as html, mSoundPlayer contains all sounds which are going to be played...

This mean in particular that it is currently impossible to do any work in advance, in background, since computing the list of sound is equivalent to playing it, and there is no function to compute the html content without displaying it.

At least for the code quality, decoupling a card content from the actual activity displaying the card seems useful. Hopefully, it would also be a first step toward solving #7902

@IAmJaishree
Copy link

@Arthur-Milchior do you have any suggestions or ideas for its implementation in mind already or it's a free path to explore?
I would like to work on this issue.

@Arthur-Milchior
Copy link
Member Author

If you're not already working on something else, I'll happy give you this task.

I do not have anything specific in mind.
I assume that ideally, we should have a data structure which contains all the informations needed to display card content. That is:

  • the text (css + html)
  • the media player with media filled, not yet playing
  • if it's an answer, the number of buttons to show
  • Anything else I'd have missed that is used

and the reviewer or abstract flash card viewer can take this and display it's content without needing to access database at all.

@IAmJaishree
Copy link

@Arthur-Milchior I have other issues but and I raised a PR for them, I can work on this now if you want.

@Arthur-Milchior
Copy link
Member Author

Then please go for it.

@github-actions
Copy link
Contributor

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

@github-actions github-actions bot added the Stale label May 19, 2021
@Arthur-Milchior
Copy link
Member Author

Any news @IAmJaishree ?

@dae
Copy link
Contributor

dae commented Aug 31, 2023

@Arthur-Milchior how do you feel about this 2+ years on? Do you feel we should still keep it open?

@BrayanDSO
Copy link
Member

I'm currently rewriting the reviewer (#14302), which include this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Keep Open avoids the stale bot Reviewer
Projects
None yet
Development

No branches or pull requests

4 participants