Skip to content
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

fix: disable edit button based on endpoint status #2695

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

ironAiken2
Copy link
Contributor

@ironAiken2 ironAiken2 commented Sep 6, 2024

TL;DR

An update that prevents modifications to an endpoint in destroyed and destroying state.

What changed?

  • Updated status checks to include both 'destroying' and 'destroyed' states
  • Disabled certain buttons and actions when an endpoint is in 'destroying' or 'destroyed' state

[Additionally]

  • Changed "LLM Playground" tooltip to "LLM Chat Test" in EndpointDetailPage

How to test?

  1. Navigate to the Endpoint List and Detail pages
  2. Verify that buttons are properly disabled for endpoints in 'destroying' or 'destroyed' states
  3. Check that the tooltip for the LLM chat test button now reads "LLM Chat Test"
  4. Attempt to perform actions on endpoints in various states to ensure correct behavior

Why make this change?

This change improves the user experience by:

  1. Providing more accurate UI feedback for endpoint statuses
  2. Preventing actions on endpoints that are no longer active
  3. Ensuring consistency in how endpoint statuses are handled across the application
  4. Clarifying the purpose of the LLM chat test button with an updated tooltip

Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

Copy link

graphite-app bot commented Sep 6, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ironAiken2 and the rest of your teammates on Graphite Graphite

Copy link

github-actions bot commented Sep 6, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.48% (-0% 🔻)
337/6151
🔴 Branches
5.07% (+0% 🔼)
214/4219
🔴 Functions
3.12% (-0% 🔻)
63/2022
🔴 Lines
5.38% (-0% 🔻)
323/6007

Test suite run success

90 tests passing in 11 suites.

Report generated by 🧪jest coverage report action from 612b54c

@ironAiken2 ironAiken2 marked this pull request as ready for review September 6, 2024 08:44
@github-actions github-actions bot added size:M 30~100 LoC and removed size:S 10~30 LoC labels Sep 6, 2024
@lizable lizable force-pushed the fix/disable-edit-based-status branch from 7485d56 to dbe9101 Compare September 6, 2024 09:27
Copy link
Contributor

@lizable lizable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link

graphite-app bot commented Sep 6, 2024

Merge activity

### TL;DR

An update that prevents modifications to an endpoint in `destroyed` and `destroying` state.

### What changed?
- Updated status checks to include both 'destroying' and 'destroyed' states
- Disabled certain buttons and actions when an endpoint is in 'destroying' or 'destroyed' state

[Additionally]
- Changed "LLM Playground" tooltip to "LLM Chat Test" in EndpointDetailPage

### How to test?

1. Navigate to the Endpoint List and Detail pages
2. Verify that buttons are properly disabled for endpoints in 'destroying' or 'destroyed' states
3. Check that the tooltip for the LLM chat test button now reads "LLM Chat Test"
4. Attempt to perform actions on endpoints in various states to ensure correct behavior

### Why make this change?

This change improves the user experience by:
1. Providing more accurate UI feedback for endpoint statuses
2. Preventing actions on endpoints that are no longer active
3. Ensuring consistency in how endpoint statuses are handled across the application
4. Clarifying the purpose of the LLM chat test button with an updated tooltip

---

<!--
Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes,
and how it affects the users and other developers.
-->

**Checklist:** (if applicable)

- [ ] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@lizable lizable force-pushed the fix/disable-edit-based-status branch from f3c55d5 to 612b54c Compare September 6, 2024 09:46
@graphite-app graphite-app bot merged commit 612b54c into main Sep 6, 2024
6 checks passed
@graphite-app graphite-app bot deleted the fix/disable-edit-based-status branch September 6, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants