snowballtools-base/packages/frontend/src/stories/Project/Settings
Vivian Phung 9a1c0e8338
feat(domains): DomainCard and WebhookCard styling start (#225)
### TL;DR

Refactored the `DomainCard`, `EditDomainDialog`, and `WebhookCard` components to improve code readability and enhance UI using new shared components like `Tag`, `Heading`, `Button`, and `CustomIcon`.

### What changed?

- `DomainCard` component:
  - Replaced `Chip` with `Tag` component.
  - Used `Heading`, `Button`, and `CustomIcon` components.
  - Updated refresh icon to show `LoadingIcon` when checking.
- `EditDomainDialog` component:
  - Used `useToast` hook for toast messages.
- `WebhookCard` component:
  - Used `Input`, `Button`, and `CustomIcon` components for better UI.
- Added Storybook stories for the updated components.

### How to test?

1. Go to the project settings page.
2. Verify the `DomainCard` UI updates.
3. Edit a domain and check the toasts.
4. Verify the `WebhookCard` UI and functionality.
5. Run Storybook and inspect the added stories for the components.

### Why make this change?

To improve the consistency and user experience of the project settings UI, and to make the components more maintainable by using shared components.

---
2024-06-24 19:22:20 -04:00
..
AddEnvironmentVariableRow.stories.tsx [2/n][Storybook] Settings - EnvironmentVariables (#75) 2024-05-16 20:42:29 -04:00
AddMemberDialog.stories.tsx [1/n][Storybook] Settings (#72) 2024-05-16 20:33:33 -04:00
Config.stories.tsx storybook config domains and react dom context 2024-05-14 20:07:46 +00:00
DeleteProjectDialog.stories.tsx [3/n][Storybook] Settings - Delete Project Dialog (#76) 2024-05-16 20:45:32 -04:00
DisplayEnvironmentVariables.stories.tsx [2/n][Storybook] Settings - EnvironmentVariables (#75) 2024-05-16 20:42:29 -04:00
DomainCard.stories.tsx feat(domains): DomainCard and WebhookCard styling start (#225) 2024-06-24 19:22:20 -04:00
EditDomainDialog.stories.tsx feat(domains): DomainCard and WebhookCard styling start (#225) 2024-06-24 19:22:20 -04:00
EditEnvironmentVariableRow.stories.tsx EditEnvironmentVariableRow cleanup (#74) 2024-05-16 20:39:42 -04:00
MemberCard.stories.tsx member list cleanup 2024-05-14 20:22:02 +00:00
SetupDomains.stories.tsx [3/n][Storybook] Settings - Delete Project Dialog (#76) 2024-05-16 20:45:32 -04:00
WebhookCard.stories.tsx feat(domains): DomainCard and WebhookCard styling start (#225) 2024-06-24 19:22:20 -04:00