web: Remove clock display from top navigation#445
Open
Himanth-reddy wants to merge 1 commit into
Open
Conversation
The clock/time display in the top navigation bar is unnecessary for a web application. Users already have access to the system clock via their OS taskbar, browser tab, or device status bar, making an in-app clock redundant. Changes: - Remove clock state and interval timer from TopNav component - Remove .top-clock CSS rules and responsive media query references
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
Remove the clock/time display from the web application's top navigation bar.
Rationale
A clock display is unnecessary in a web application. Unlike a TV or set-top box interface where the app is the primary full-screen experience, web users always have convenient access to the current time through:
Displaying a redundant clock in the navigation consumes valuable UI space and adds unnecessary JavaScript timer overhead (interval polling every 30 seconds).
Changes
web/components/shell/TopNav.tsx— Removed clock state,useEffectinterval timer, and the<span className="top-clock">elementweb/app/globals.css— Removed.top-clockstyle block and cleaned up responsive media query selectors that referenced it