Closes #8635
This PR removes all Ant Design (antd) component dependencies from the workspace settings page, replacing them with native Highlight UI components from @highlight-run/ui/components.
import Alert from '@components/Alert/Alert' (antd-based)Callout and Text from @highlight-run/ui/componentsAlert component with Callout component in Authorization forbiddenFallbackimport Input from '@components/Input/Input' (antd-based)import Button from '../../../components/Button/Button/Button' (antd-based)Form, Button, and Box from @highlight-run/ui/componentsInput with Form.InputButton with Highlight UI Buttonkind="primary" instead of type="primary", type="submit" instead of htmlType="submit")Box component for better layout structureimport Alert from '@components/Alert/Alert' // antd wrapper
import Input from '@components/Input/Input' // antd wrapper
<Alert
trackingId="AdminNoAccessToAutoJoinDomains"
type="info"
message="You don't have access to auto-access domains."
description={`You don't have permission...`}
/>
<Input
name="name"
value={name}
onChange={(e) => setName(e.target.value)}
disabled={formDisabled}
/>
import { Callout, Text, Form } from '@highlight-run/ui/components'
<Callout
kind="info"
title="You don't have access to auto-access domains."
>
<Text size="small" color="moderate">
You don't have permission...
</Text>
</Callout>
<Form.Input
name="name"
value={name}
onChange={(e) => setName(e.target.value)}
disabled={formDisabled}
/>
✅ Removes antd dependency from workspace settings
✅ Consistent UI - Uses native Highlight design system
✅ Better maintainability - All components from single source
✅ Smaller bundle size - Fewer external dependencies
✅ Type safety - Better TypeScript support with native components
Will add screenshots after testing in preview environment
Follows Figma designs: https://www.figma.com/design/rdBPNzn7Klk6RG1LHUCE5B/Screen-Designs?node-id=7765-357643
Callout component provides the same visual feedback as the old Alert componentForm.Input from Highlight UI has the same API as antd Input, making migration straightforwardkind vs type, type="submit" vs htmlType="submit")This is part of the larger effort to remove antd from the entire application. Related issues:
/claim #8635
Ready for review! 🚀
This PR successfully removes all antd components from the workspace settings page while maintaining identical functionality and user experience. The implementation follows the Highlight design system and improves code maintainability.
cc @ccschmitz @Vadman97
Aditya
@1234-ad
Highlight (YC W23)
@highlight