Skip to content

Conversation

@feruzm
Copy link
Member

@feruzm feruzm commented Jan 30, 2026

Summary by CodeRabbit

  • New Features

    • Added post reading metadata (word count, estimated reading time, TTS controls) visible in post view.
    • TTS controls can optionally show localized play/pause labels.
  • Bug Fixes

    • Improved reblog refresh so post stats and both blog/reblog views update reliably after reblogging.
  • Localization

    • Added post and TTS-related UI strings (words, reading, listen, min, play, pause).
  • Chores

    • Removed the former "voice" post option and cleaned up header TTS display.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 30, 2026

📝 Walkthrough

Walkthrough

Cache invalidation around reblog actions was expanded and made more granular; a new PostReadingMetadata component and TTS UI label option were added; the 'voice' post option was removed; profileUpdate now merges existing about data into posting_json_metadata; minor header TTS usage removed.

Changes

Cohort / File(s) Summary
Reblog cache management
src/components/postOptionsModal/container/postOptionsModal.tsx, src/providers/queries/postQueries/repostQueries.ts
Replaced single blog-feed invalidation with two targeted invalidations: specific post entry (['posts','entry',...]) and account-posts queries for both blog and reblog filters; retains re-fetching of reblogs.
Post reading metadata UI
src/components/postView/children/postReadingMetadata.tsx, src/components/postView/view/postDisplayView.tsx
Added PostReadingMetadata component (word count, read time, TTS controls entry) and inserted it into the post display flow.
Text-to-speech controls & integration
src/components/textToSpeech/ttsControls.tsx, src/screens/post/screen/postScreen.tsx, src/config/locales/en-US.json
Added optional showLabel prop to TTSControls and intl labels (tts.play, tts.pause); removed header usage of TTSControls; updated locale strings for reading metadata and TTS.
Post options and constants
src/constants/options/post.ts, src/components/postOptionsModal/container/postOptionsModal.tsx
Removed 'voice' option from post actions; also dropped handling of the voice case in postOptionsModal dropdown selection.
Hive provider: profile update payload
src/providers/hive/dhive.ts
profileUpdate now merges currentAccount.about (when present) with { profile: params } into posting_json_metadata for both HS and legacy paths.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Poem

🐰
I hop and nibble code with cheer,
Reblogs refreshed, the feed is clear,
Words to read and times to tell,
A tiny cog that hums so well,
Hooray — the app will sing and steer! 🎵

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Invalidate queries/cache on actions' is overly vague and generic. While it relates to changes in the PR (cache invalidation), it does not clearly specify which actions or what the primary objective is, making it unclear for someone scanning commit history. Make the title more specific by identifying the main action(s) affected, such as 'Refactor reblog cache invalidation to target specific queries' or 'Update cache invalidation for reblog and profile actions'.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch invalid

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.

@feruzm feruzm merged commit 90e9a13 into development Jan 30, 2026
1 of 3 checks passed
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.

2 participants