feat(client): add create/edit environment pages and hoverable cards

- add CreateEnvironmentPage and EditEnvironmentPage with pre-filled form
- add /environments/new and /environments/:id/edit routes
- add Edit option to card context menu and detail page toolbar
- move env id pill to card footer (left), timestamp stays right
- make env cards clickable (navigate to detail); cog stops propagation
- add hoverable Card variant with primary border+shadow on hover
- add link color tokens and global anchor styles for both themes
- fix Timestamp pill visibility in dark mode with border token
- add DescriptionList truncate prop with ellipsis and title tooltip
- stack DescriptionList dd below dt with 8px gap between items
This commit is contained in:
ars9 committed 2026-04-09 17:22:01 +03:00
1 parent 89016b01d2
commit 18177cac52
11 files changed
+397 -16

No files matched your search

+9 -1
View File
@@ -8,6 +8,7 @@ export interface CardProps {
header?: React.ReactNode;
headerVariant?: 'primary' | 'secondary';
footer?: React.ReactNode;
onClick?: React.MouseEventHandler<HTMLDivElement>;
}
export function Card({
@@ -17,10 +18,17 @@ export function Card({
header,
headerVariant = 'primary',
footer,
onClick,
}: CardProps) {
return (
<div
className={[styles.card, footer !== undefined ? styles.withFooter : '', className]
onClick={onClick}
className={[
styles.card,
footer !== undefined ? styles.withFooter : '',
onClick ? styles.hoverable : '',
className,
]
.filter(Boolean)
.join(' ')}
>