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

Feature/sc 26953/frontend for sheets topics component #1928

Conversation

stevekaplan123
Copy link
Contributor

@stevekaplan123 stevekaplan123 commented Jun 16, 2024

Description

This PR implements the core functionality of the Sheets Homepage -- displaying the upcoming parasha, upcoming holiday, and the first level of the topics TOC.

Code Changes

  1. There are no changes to TopicsPage.jsx -- I had originally made a change there but realized it wasn't necessary, but there is simply spacing differences that remain that make it appear in this PR.
  2. The first level of the topics TOC is implemented by the component SheetsTopicsTOC. ReaderApp's setNavigationTopic is passed down the tree to this component so that it can set menuOpen to "topics" to avoid having to call the server in case the topic is in cache.
  3. The parasha and holiday are implemented by the component SheetsCalendar, which gets its data by calling Sefaria.getUpcomingDay(day) where day can be 'holiday' or 'parasha'. ReaderApp's setTopic is passed down the tree to this component so that it can set menuOpen to "topics" to avoid having to call the server in case the topic is in cache.
  4. Mobile design is different than desktop and so multiPanel is passed down to SheetsHomePage to handle the different case.
  5. All topics displayed -- holiday, parasha, and the topics TOC -- are all displayed using the Card component.

…ional' into feature/sc-26953/frontend-for-sheets-topics-component
…nto feature/sc-26953/frontend-for-sheets-topics-component
…nto feature/sc-26953/frontend-for-sheets-topics-component
Need to find a way to get the parashah's slug.  Otherwise, setNavigationTopic is impossible to call
…ional' into feature/sc-26953/frontend-for-sheets-topics-component
…ional' into feature/sc-26953/frontend-for-sheets-topics-component
…nto feature/sc-26953/frontend-for-sheets-topics-component
…ional' into feature/sc-26953/frontend-for-sheets-topics-component
@edamboritz edamboritz changed the base branch from feature/sc-26957/sidebar-with-create-a-sheet-and-educational to modularization-main September 9, 2024 08:29
edamboritz
edamboritz previously approved these changes Oct 1, 2024
@stevekaplan123 stevekaplan123 dismissed stale reviews from edamboritz and edamboritz October 1, 2024 10:28

The merge-base changed after approval.

edamboritz
edamboritz previously approved these changes Oct 1, 2024
@akiva10b akiva10b merged commit 7019aff into modularization-main Oct 8, 2024
16 checks passed
@stevekaplan123 stevekaplan123 deleted the feature/sc-26953/frontend-for-sheets-topics-component branch October 8, 2024 11:13
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.

3 participants