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

Add key learnings to summary details #124

Merged
merged 7 commits into from
Jan 4, 2025

Conversation

rygelouv
Copy link
Owner

@rygelouv rygelouv commented Jan 2, 2025


🚀 Description

  • feat: Add key learnings to summary details
  • Added the display of key learnings in the summary details screen.
  • Added a new SummaryLearningsView composable for displaying key learnings.
  • Modified Summary entity to include keyLearnings.
  • Updated SummaryUi to include a list of key learnings.
  • Modified the Firestore mapper to extract key learnings from the document.
  • Added the key learning field in the firestore database
  • Updated test fixtures to add key learnings
  • Update Previews data with key learnings
  • fix: add missing translations

Issue (if applicable):

🖼 Screenshots/Videos (if applicable)

screenshot-1735837033010

📦 Dependencies

  • Added new dependencies? List:
  • Updated existing?

🧪 Testing

Describe the steps to reproduce:

📱 Checklist

  • Tested on all supported devices and OS versions
  • UI/UX conforms to project design guidelines
  • Unit/integration tests added
  • Relevant documentation updated (e.g., README, Wiki, etc.)
  • Checked linter on local.

@rygelouv rygelouv added the new feature When adding a new feature label Jan 2, 2025
@rygelouv rygelouv added this to the 1.3.0 milestone Jan 2, 2025
@rygelouv rygelouv self-assigned this Jan 2, 2025
github-actions[bot]
github-actions bot previously approved these changes Jan 2, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR automatically approved by auto-approve-action

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 33.74%. Comparing base (70b269d) to head (f18cc49).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...java/app/books/tanga/data/summary/SummaryMapper.kt 0.00% 3 Missing ⚠️
...s/tanga/feature/onboarding/OnboardingSystemBars.kt 0.00% 1 Missing ⚠️
...ks/tanga/feature/summary/components/SummaryItem.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #124      +/-   ##
==========================================
+ Coverage   31.92%   33.74%   +1.82%     
==========================================
  Files         141      139       -2     
  Lines        3778     3577     -201     
  Branches      731      707      -24     
==========================================
+ Hits         1206     1207       +1     
+ Misses       2307     2106     -201     
+ Partials      265      264       -1     
Flag Coverage Δ
unittests 33.74% <50.00%> (+1.82%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Update `codecov.yml` to exclude `*View.kt` and `*PreviewData.kt` files
- Update `PreviewData` with key learning data
github-actions[bot]
github-actions bot previously approved these changes Jan 3, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR automatically approved by auto-approve-action

- Removed `hasVideo` and `hasGraphic` properties from `SummaryUi`.
- Removed `hasVideo` and `hasGraphic` parameters from `SummaryItem` and `SummaryIndicators` composables.
- Removed unused indicators from library screen.
- Removed unused indicators from preview data.
- Updated UI to no longer display video and graphic indicators.
github-actions[bot]
github-actions bot previously approved these changes Jan 3, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR automatically approved by auto-approve-action

github-actions[bot]
github-actions bot previously approved these changes Jan 3, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR automatically approved by auto-approve-action

- Replaced the manual creation of lists with helper functions.
- Created helper functions `createCategory` and `createSummary`.
- Simplified the creation of `allCategories` and `allSummaries`.
github-actions[bot]
github-actions bot previously approved these changes Jan 3, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR automatically approved by auto-approve-action

- Replaced the background image on the landing screen with a new one, `landing_image`.
- Changed the status bar color on the landing screen to `LandingStatusBar`.
- Changed the moto text on the landing screen to "The simplest, most focused way to experience life-changing book summaries".
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR automatically approved by auto-approve-action

Copy link

sonarqubecloud bot commented Jan 3, 2025

@rygelouv rygelouv merged commit c105647 into dev Jan 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature When adding a new feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant