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

feat(FR-534): introduce NEO style Tabs and RadioGroup #3139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Feb 11, 2025

resolves #3182 (FR-534)

image.png
resolves #3182 (FR-534)

Introduces new UI components and enhances existing ones to improve visual consistency and user experience:

  • Added BAIRadioGroup component with custom styling for radio buttons
  • Added BAITabs component with customized tab styling and borders
  • Enhanced BAICard with divider control and styling options
  • Updated SessionStatusTag with improved tooltip and border radius
  • Refactored EndpointList from a page to a reusable component
  • Enhanced table headers with tooltips instead of multi-line text
  • Applied consistent spacing and styling across components
  • Updated serving page layout and padding

@github-actions github-actions bot added the size:L 100~500 LoC label Feb 11, 2025
Copy link
Member Author

yomybaby commented Feb 11, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

Copy link

github-actions bot commented Feb 11, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
4.62% (-0.01% 🔻)
401/8689
🔴 Branches
4% (-0% 🔻)
239/5980
🔴 Functions
2.79% (-0% 🔻)
78/2796
🔴 Lines
4.54% (-0.01% 🔻)
386/8500
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / BAIRadioGroup.tsx
0% 100% 0% 0%
🔴
... / BAITabs.tsx
0% 100% 0% 0%
🔴
... / EndpointList.tsx
0% 0% 0% 0%

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 03a9536

@yomybaby yomybaby force-pushed the feature/baitabs-and-bairadiogroup branch 3 times, most recently from 2d39a5c to 0a66706 Compare February 13, 2025 14:44
@yomybaby yomybaby force-pushed the feature/baitabs-and-bairadiogroup branch from 0a66706 to 17fade8 Compare February 16, 2025 23:01
@yomybaby yomybaby changed the title feat: introduce NEO style Tabs and RadioGroup feat(FR-534): introduce NEO style Tabs and RadioGroup Feb 17, 2025
@yomybaby yomybaby force-pushed the feature/baitabs-and-bairadiogroup branch from 17fade8 to 2f135b1 Compare February 17, 2025 04:52
@yomybaby yomybaby marked this pull request as ready for review February 17, 2025 04:53
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

Please resolve the conflicts.

@yomybaby yomybaby force-pushed the feature/baitabs-and-bairadiogroup branch from 2f135b1 to 4fabfd4 Compare February 18, 2025 02:18
@yomybaby yomybaby requested a review from agatha197 February 18, 2025 02:18
Copy link
Member Author

@agatha197 resolved! 😀

Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

Could you apply the status styles to the endpoint too?
image.png

@@ -163,6 +164,8 @@ const BAITable = <RecordType extends object = any>({
!isDarkMode && neoStyle
? {
headerBg: '#E3E3E3',
headerSplitColor: token.colorTextQuaternary,
// headerSplitColor: token.colorTextQuaternary
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// headerSplitColor: token.colorTextQuaternary

@yomybaby yomybaby force-pushed the feature/baitabs-and-bairadiogroup branch from 4fabfd4 to 13be49a Compare February 20, 2025 05:27
@yomybaby yomybaby requested a review from agatha197 February 20, 2025 05:55
@yomybaby yomybaby force-pushed the feature/baitabs-and-bairadiogroup branch from 13be49a to 03a9536 Compare February 20, 2025 05:55
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

There're many radio group haha.

  1. agent page
    image.png
  2. User Credentials & Policies

image.png

image.png

  1. agent summary

image.png

Status styles

  1. agent page (But it's a double tag, so you can leave it as it is)

image.png

  1. serving page

image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce NEO style Tabs and RadioGroup
2 participants