Skip to content

refactor: remove frequency chart from list of letters, sounds, words#2359

Merged
jo-elimu merged 3 commits intomainfrom
2358-remove-content-frequency-charts
Feb 14, 2026
Merged

refactor: remove frequency chart from list of letters, sounds, words#2359
jo-elimu merged 3 commits intomainfrom
2358-remove-content-frequency-charts

Conversation

@jo-elimu
Copy link
Copy Markdown
Member

Issue Number

Purpose

Technical Details

Testing Instructions

Screenshots


Format Checks

Note

Files in PRs are automatically checked for format violations with mvn spotless:check.

If this PR contains files with format violations, run mvn spotless:apply to fix them.

@jo-elimu jo-elimu self-assigned this Feb 14, 2026
@jo-elimu jo-elimu requested a review from a team as a code owner February 14, 2026 21:03
@jo-elimu jo-elimu requested review from AshishBagdane, jpatel3 and tomaszsmy and removed request for a team February 14, 2026 21:03
@jo-elimu jo-elimu linked an issue Feb 14, 2026 that may be closed by this pull request
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 14, 2026

Warning

Rate limit exceeded

@jo-elimu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 18 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Walkthrough

This PR removes frequency chart rendering from the letter list page to improve page load performance. Changes include updating Maven dependency versions, removing StoryBookParagraphDao dependency and letter frequency calculation logic from the backend controller, and removing the Chart.js visualization block from the JSP view.

Changes

Cohort / File(s) Summary
Maven Dependencies
pom-dependency-tree.txt
Updated webapp version from 2.6.142-SNAPSHOT to 2.6.148-SNAPSHOT and model transitive dependency from 2.0.127 to 2.0.128.
Backend Controller
src/main/java/ai/elimu/web/content/letter/LetterListController.java
Removed StoryBookParagraphDao import, field declaration, and associated logic for reading paragraphs, computing letter frequency maps, and exposing frequency data to the model.
Frontend View
src/main/webapp/WEB-INF/jsp/content/letter/list.jsp
Removed Chart.js script import, canvas element, and chart initialization code; CSV export and table rendering logic remain intact.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 2358-remove-content-frequency-charts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.80%. Comparing base (9a7ef0e) to head (8db25ba).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2359      +/-   ##
============================================
- Coverage     16.83%   16.80%   -0.03%     
+ Complexity      465      464       -1     
============================================
  Files           264      264              
  Lines          7852     7836      -16     
  Branches        903      899       -4     
============================================
- Hits           1322     1317       -5     
+ Misses         6454     6445       -9     
+ Partials         76       74       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jo-elimu jo-elimu merged commit c6ba81a into main Feb 14, 2026
19 of 22 checks passed
@jo-elimu jo-elimu deleted the 2358-remove-content-frequency-charts branch February 14, 2026 22:20
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.

Remove content frequency charts

1 participant