Skip to content

fix(ui): guard explorer selectors on slow networks#3396

Open
rajatbeladiya wants to merge 1 commit intoaimhubio:mainfrom
rajatbeladiya:fix/1574-disable-selector-until-ready
Open

fix(ui): guard explorer selectors on slow networks#3396
rajatbeladiya wants to merge 1 commit intoaimhubio:mainfrom
rajatbeladiya:fix/1574-disable-selector-until-ready

Conversation

@rajatbeladiya
Copy link

Fixes the issue where clicking explorer selector buttons (e.g. +Metrics/+Params/+Images) immediately after page load on a slow network can lead to an error state.

Changes:

  • Guard selector button click until selectFormData.options is available.
  • Disable the selector button and show a "Loading…" tooltip when options aren't ready.
  • Use safe defaults for suggestions to avoid undefined access during initial load.

Tested:

  • Local Aim UI (aim up) with artificial fetch latency and verified selectors remain stable.
  • npx eslint on modified files.

Closes #1574.

@CLAassistant
Copy link

CLAassistant commented Mar 5, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


root seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Disable selector buttons until options are loaded to prevent error state on slow networks.\n\nCloses aimhubio#1574.
@rajatbeladiya rajatbeladiya force-pushed the fix/1574-disable-selector-until-ready branch from fe4b819 to 046200c Compare March 5, 2026 04:37
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.

It shows "Something went wrong" by clicking on the button to select context when network is slow

2 participants