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

Fix part of #117 and #118: Introduce sample lesson thumbnails and thumbnail data structure #175

Merged

Conversation

BenHenning
Copy link
Member

This is introducing a thumbnail data structure for lessons that's directly relevant to topics and stories (per #117 and #118). This also introduces 6 sample SVG thumbnails provided by Chantel.

For the prototype, it seems preferable that we use locally rendered SVGs converted to Android vector XML rather than needing to ensure SVGs are properly rendered in-app. For the later MVP work we will want to add support for dynamic SVGs that can be downloaded from the Oppia server.

Thumbnails also include a tile color per the mocks (for example on the home page). The graphics themselves are transparent in background to facilitate this coloring. It's not yet clear how we will color the darker parts of the tiles, or how color association will happen for lessons. The prototype may need to fake this for now, but long-term we will need to solve this.

See sample graphics (these were initial exports by Chantel--they may need to be cleaned up as we polish the prototype UI per #10, #141, and others): svg thumbnails.zip.

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One nit change.

model/src/main/proto/thumbnail.proto Show resolved Hide resolved
Copy link
Contributor

@nikitamarysolomanpvt nikitamarysolomanpvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nikitamarysolomanpvt nikitamarysolomanpvt removed their assignment Sep 23, 2019
@BenHenning
Copy link
Member Author

Thanks for the review!

@BenHenning BenHenning assigned BenHenning and unassigned veena14cs Sep 24, 2019
@BenHenning BenHenning merged commit 4968ea4 into develop Sep 24, 2019
BenHenning added a commit that referenced this pull request Sep 25, 2019
…176)

* Introduce initially viable TopicListController interface with tests, and
no real implementation.

This commit includes thumbnail structures that should be split into its
own branch/PR since other controllers will depend on it.

* Introduce 6 sample thumbnail graphics locally and a proto data structure
for thumbnails that can be used for lessons.

* Update topic list controller to use new-and-improved thumbnail options.

* Fix post-merge breakages.

* Address review comment.
@BenHenning BenHenning deleted the introduce-initial-lesson-thumbnails-and-structure branch June 10, 2020 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants