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

Chore: Knowledge UI revamp #450

Merged

Conversation

StrongMonkey
Copy link
Contributor

Make Knowledge UI great again.

@StrongMonkey StrongMonkey force-pushed the knowledge-ui-rewrite-1 branch 2 times, most recently from 53c33af to ca023c7 Compare November 6, 2024 08:48
Signed-off-by: Daishan Peng <[email protected]>
@StrongMonkey StrongMonkey force-pushed the knowledge-ui-rewrite-1 branch from ca023c7 to 483c85e Compare November 6, 2024 08:58
@StrongMonkey StrongMonkey merged commit 2a0785f into obot-platform:main Nov 6, 2024
1 check passed
Copy link
Contributor

Choose a reason for hiding this comment

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

did you reset the button component here?

Copy link
Contributor

Choose a reason for hiding this comment

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

by adding [&_svg]:size-4, you inadvertently made all buttons with size-icon look really small...

Screenshot 2024-11-06 at 9 52 42 AM Screenshot 2024-11-06 at 9 52 57 AM Screenshot 2024-11-06 at 9 53 36 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

I like the addition of the classes there, but can you add [&_svg]:size-6 to the size.icon variant?

@@ -242,7 +235,6 @@ export function CustomOAuthAppForm({
</Button>

<Button
loading={isLoading}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did this get removed?

Comment on lines +19 to +20
const [isOpen, setIsOpen] = useState(false);
const [oauthUrl, setOauthUrl] = useState("");
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't need 2 sets of state here.

const [oauthUrl, setOauthUrl] = useState("");
const isOpen = !!oauthUrl

const onClose = () => setOauthUrl("")

should cover all your bases here

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.

2 participants