Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

style(control-ui): continue member and team detail panel surfaces

Josué5bc2d9264c2c
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.css
index 31e4c854c..fe63a6ace 100644
--- a/control-ui/app/globals.css
+++ b/control-ui/app/globals.css
@@ -5169,12 +5169,20 @@ td.cu-registry-description {
gap: var(--cu-space-3);
}
-.cu-detail-content-stack--padded {
+.cu-detail-content-stack--panel-continuation {
padding: var(--cu-space-4);
+ border: 1px solid var(--cu-border);
+ border-top: 0;
+ border-bottom-right-radius: var(--cu-radius);
+ border-bottom-left-radius: var(--cu-radius);
+ background:
+ linear-gradient(150deg, rgba(var(--cu-edge-rgb), 0.16), transparent 38%),
+ rgba(var(--cu-panel-rgb), 0.58);
+ box-shadow: var(--cu-shadow);
}
@media (max-width: 720px) {
- .cu-detail-content-stack--padded {
+ .cu-detail-content-stack--panel-continuation {
padding: var(--cu-space-3);
}
}
@@ -5222,8 +5230,9 @@ td.cu-registry-description {
first block below it has to drop the matching top edge or the seam shows as
a stray rounded border. Applies to either card primitive that can lead the
stack. */
-.cu-detail-content-stack > .cu-card:first-child,
-.cu-detail-content-stack > .cu-form-section:first-child {
+.cu-detail-content-stack:not(.cu-detail-content-stack--panel-continuation) > .cu-card:first-child,
+.cu-detail-content-stack:not(.cu-detail-content-stack--panel-continuation)
+ > .cu-form-section:first-child {
border-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
diff --git a/control-ui/app/profile-admin/teams/[teamId]/page.tsx b/control-ui/app/profile-admin/teams/[teamId]/page.tsx
index d16eb1912..4b5f9e753 100644
--- a/control-ui/app/profile-admin/teams/[teamId]/page.tsx
+++ b/control-ui/app/profile-admin/teams/[teamId]/page.tsx
@@ -679,7 +679,7 @@ export default function TeamDetailsPage() {
)
}
backLabel="Back to teams"
- contentClassName={isNew ? undefined : 'cu-detail-content-stack--padded'}
+ contentClassName={isNew ? undefined : 'cu-detail-content-stack--panel-continuation'}
error={error}
icon={<IconUsers />}
onBack={() => router.push(CONTROL_ROUTES.usersAndTeams.teams)}
diff --git a/control-ui/app/profile-admin/users/[userId]/page.tsx b/control-ui/app/profile-admin/users/[userId]/page.tsx
index 60e08b4cf..aac80178e 100644
--- a/control-ui/app/profile-admin/users/[userId]/page.tsx
+++ b/control-ui/app/profile-admin/users/[userId]/page.tsx
@@ -761,7 +761,7 @@ export default function UserDetailsPage() {
actions={activeTabAction}
backLabel="Back to members"
contentMode="plain"
- contentClassName="cu-detail-content-stack--padded"
+ contentClassName="cu-detail-content-stack--panel-continuation"
error={error}
icon={<IconUsers />}
onBack={() => router.push(CONTROL_ROUTES.usersAndTeams.users)}
diff --git a/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx b/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx
index 84b087436..b2dc2f0b1 100644
--- a/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx
+++ b/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx
@@ -149,16 +149,16 @@ afterEach(() => {
})
describe('profile-admin agent compatibility access', () => {
- it('uses the padded content surface for team tabs', async () => {
+ it('continues the detail panel surface through team tab content', async () => {
renderTeamDetails()
await waitFor(() =>
expect(screen.getByTestId('detail-page-content')).toHaveClass(
- 'cu-detail-content-stack--padded'
+ 'cu-detail-content-stack--panel-continuation'
)
)
})
- it('uses the padded content surface and bold values for member contact details', async () => {
+ it('continues the detail panel surface and bolds member contact values', async () => {
navigationState.params = { userId: 'user-1', tab: 'contact' }
render(<UserDetailsPage />)
@@ -169,7 +169,9 @@ describe('profile-admin agent compatibility access', () => {
'STRONG'
)
expect(primaryEmailField?.querySelector('.cu-field__readonly')).toBeNull()
- expect(screen.getByTestId('detail-page-content')).toHaveClass('cu-detail-content-stack--padded')
+ expect(screen.getByTestId('detail-page-content')).toHaveClass(
+ 'cu-detail-content-stack--panel-continuation'
+ )
})
it('adds existing team members with the shared searchable chip picker and dialog', async () => {
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 854ff1c25..dec9bda56 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.640",
+ "version": "0.1.641",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.640",
+ "version": "0.1.641",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/control-ui/package.json b/control-ui/package.json
index 50e051539..5dfd6b429 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.640",
+ "version": "0.1.641",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",