-
Notifications
You must be signed in to change notification settings - Fork 16
fix(state): Disable "Prettify" button in FAST_LOADING state (fixes #249). #250
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe change updates the UI state grid configuration in the codebase, specifically altering the behaviour of the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant StateGrid
User->>UI: Triggers FAST_LOADING state
UI->>StateGrid: Retrieve configuration for FAST_LOADING
StateGrid-->>UI: PRETTIFY_BUTTON = false
UI-->>User: PRETTIFY_BUTTON appears disabled
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}`: - Prefer `false == ` rather than `!`.
🔇 Additional comments (1)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Do we want to do it for #251 as well? For example, disable the "Timezone" select dropdown menu during the FAST_LOADING state. I think it is much faster than prettifying but there is still an obvious lag about 0.5s. |
Sure. I think disabling the select box will reduce confusion to users. P.S.: you may notice the log level selector is a similar element to the prettify button and the timezone selector that you're adding, but the log level selector is not disabled during FAST_LOADING. That is because users might quickly select multiple log levels with the checkboxes and we don't want to interrupt their interactions. As a result, allowing those log level filtering requests to be queued was a compromise we had to make. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Description
The 'Prettify' button is now disabled when the page is in the FAST_LOADING state to prevent user confusion during loading times. This change addresses issue #249.
Checklist
breaking change.
Validation performed
?filePath=https://yscope.s3.us-east-2.amazonaws.com/sample-logs/yarn-ubuntu-resourcemanager-ip-172-31-17-135.log.1.clp.zst
.Summary by CodeRabbit