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(ui): interface for the experiment flags #1724

Merged
merged 8 commits into from
Mar 28, 2024
Merged

Conversation

wwayne
Copy link
Contributor

@wwayne wwayne commented Mar 26, 2024

image

Close TAB-566

@wwayne wwayne force-pushed the experiment-flag-ui branch from ce5c52a to 7b13880 Compare March 27, 2024 08:29
@wwayne wwayne marked this pull request as ready for review March 27, 2024 09:23
Copy link
Member

Choose a reason for hiding this comment

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

please follow the naming practices:

experiments/components/flag-list.tsx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed

@liangfung
Copy link
Collaborator

Does it make sense to display the status of the chat workers in the ActionBar switcher?

import FeatureList from './components/feature-list'

export const metadata: Metadata = {
title: 'Experimental AI'
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

ee/tabby-ui/components/ui/switch.tsx Outdated Show resolved Hide resolved
Comment on lines 17 to 19
Enable Quick Action Bar to display a convenient toolbar when you
select code, offering options to explain the code, add unit tests,
and more.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Enable Quick Action Bar to display a convenient toolbar when you
select code, offering options to explain the code, add unit tests,
and more.
{quickActionBar.description}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

{!quickActionBar.loading && (
<div className="flex items-center space-x-4 rounded-md border p-4">
<div className="flex-1 space-y-1">
<p className="text-sm font-medium leading-none">Quick Action Bar</p>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<p className="text-sm font-medium leading-none">Quick Action Bar</p>
<p className="text-sm font-medium leading-none">{}</p>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

use {quickActionBar.title}

@wsxiaoys wsxiaoys changed the title feat(ui): interface for the experimental AI page feat(ui): interface for the experiment flags Mar 28, 2024
@wsxiaoys wsxiaoys marked this pull request as draft March 28, 2024 10:41
Comment on lines 65 to 67
<SidebarButton href="/experiments">
<IconSparkles /> Experimental AI
</SidebarButton>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<SidebarButton href="/experiments">
<IconSparkles /> Experimental AI
</SidebarButton>

Don't display it in side bar, it's developer only page

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@wwayne wwayne marked this pull request as ready for review March 28, 2024 11:07
@wsxiaoys wsxiaoys merged commit 7b3f532 into main Mar 28, 2024
4 checks passed
@wsxiaoys wsxiaoys deleted the experiment-flag-ui branch March 28, 2024 11:22
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.

3 participants