Repository navigation
fix(ui): remove duplicate editor status bar and add heading count - #439
Merged
petertzy merged 2 commits intoOct 17, 2026
Merged
Conversation
…tusBar Closes the redundant upper DocumentStats bar and enhances the bottom StatusBar with a dynamic heading count, matching the requested cleanup in petertzy#438.
Owner
|
Approved — the status display cleanup is complete and ready to merge. The redundant upper document-statistics display has been removed, leaving a single status bar at the bottom of the editor. The remaining StatusBar now includes the dynamic heading count alongside word count, character count, and estimated reading time. The heading value reuses the existing WordCountResult.heading_count backend result, so it updates together with the document’s existing debounced statistics flow as content or tabs change. I also added regression coverage for rendering heading counts and for the no-statistics state. Validation completed successfully: npm test — 154 passed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the redundant upper document statistics display and adds a dynamic heading count to the remaining bottom StatusBar.
Motivation
Addresses #438: the editor currently shows two nearly identical status areas. The upper one (DocumentStats) is removed, and the lower StatusBar is extended with a heading count that updates with the document.
Implementation
DocumentStatscomponent and its usage inpage.tsx.StatusBar.tsxto display{heading_count} headingsalongside the existing word/char/reading-time stats.WordCountResult.heading_countfield already computed by the backend.Testing
WordCountResult.Closes #438.