Skip to content

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

TypeScript

fix(frontend): r3-m1 preserve app table typography

Josué38edbcba554a
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.css
index 088afcd31..46e06ee8c 100644
--- a/control-ui/app/globals.css
+++ b/control-ui/app/globals.css
@@ -79,6 +79,10 @@
--cu-font-size-2xl: 1.125rem; /* 18px page subhead */
--cu-font-size-3xl: 1.375rem; /* 22px page hero */
--cu-font-size-4xl: 1.75rem; /* 28px auth hero only */
+ --eft-table-header-font-size: var(--cu-font-size-2xs);
+ --eft-table-header-font-weight: var(--cu-font-weight-semibold);
+ --eft-table-header-letter-spacing: 0.05em;
+ --eft-table-cell-font-size: var(--cu-font-size-md);
--cu-font-weight-regular: 400;
--cu-font-weight-medium: 500;
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index cd9d1001f..2bff49b02 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.495",
+ "version": "0.1.496",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.495",
+ "version": "0.1.496",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-table-system": "file:../packages/frontend-table-system",
diff --git a/control-ui/package.json b/control-ui/package.json
index 85c255707..c13c9fed1 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.495",
+ "version": "0.1.496",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",
diff --git a/packages/frontend-table-system/styles.css b/packages/frontend-table-system/styles.css
index 5a0f3345e..6f25f718b 100644
--- a/packages/frontend-table-system/styles.css
+++ b/packages/frontend-table-system/styles.css
@@ -121,9 +121,9 @@
background: var(--eft-surface-muted);
border-bottom: 1px solid var(--eft-border);
color: var(--eft-muted);
- font-size: 0.6875rem;
- font-weight: 700;
- letter-spacing: 0.055em;
+ font-size: var(--eft-table-header-font-size);
+ font-weight: var(--eft-table-header-font-weight);
+ letter-spacing: var(--eft-table-header-letter-spacing);
padding: 0.625rem 0.75rem;
position: sticky;
text-align: left;
@@ -134,7 +134,7 @@
}
.eft-table tbody td {
border-bottom: 1px solid color-mix(in srgb, var(--eft-border) 75%, transparent);
- font-size: 0.8125rem;
+ font-size: var(--eft-table-cell-font-size);
line-height: 1.35;
padding: 0.625rem 0.75rem;
vertical-align: middle;
diff --git a/profile-ui/app/globals.css b/profile-ui/app/globals.css
index 8b81a2644..de2e8c40d 100644
--- a/profile-ui/app/globals.css
+++ b/profile-ui/app/globals.css
@@ -60,6 +60,10 @@
--cu-create-flow-min-height: calc(100vh - 7rem);
--cu-toast-top-offset: calc(var(--cu-space-5) * 3.5);
--cu-font: 'Inter', system-ui, -apple-system, sans-serif;
+ --eft-table-header-font-size: 0.75rem;
+ --eft-table-header-font-weight: 600;
+ --eft-table-header-letter-spacing: 0.04em;
+ --eft-table-cell-font-size: 0.9rem;
}
*,
diff --git a/profile-ui/package-lock.json b/profile-ui/package-lock.json
index d108d47c4..6d87b073f 100644
--- a/profile-ui/package-lock.json
+++ b/profile-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-profile-ui",
- "version": "0.1.129",
+ "version": "0.1.130",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-profile-ui",
- "version": "0.1.129",
+ "version": "0.1.130",
"dependencies": {
"@clerum/desktop-app-links": "file:../packages/desktop-app-links",
"@clerum/frontend-table-system": "file:../packages/frontend-table-system",
diff --git a/profile-ui/package.json b/profile-ui/package.json
index 1abd3d19a..190ed164e 100644
--- a/profile-ui/package.json
+++ b/profile-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-profile-ui",
- "version": "0.1.129",
+ "version": "0.1.130",
"private": true,
"scripts": {
"dev": "next dev",
diff --git a/scripts/style-rules/rules.test.mjs b/scripts/style-rules/rules.test.mjs
index a97c9141c..295e84c05 100644
--- a/scripts/style-rules/rules.test.mjs
+++ b/scripts/style-rules/rules.test.mjs
@@ -73,6 +73,27 @@ test('shared table colors resolve through tokens declared by both web apps', ()
assert.doesNotMatch(sharedCss, /--eft-[^:]+:[^;]*#[0-9a-f]{3,8}/i)
})
+test('shared table typography uses each web app contract', () => {
+ const sharedCss = readFileSync('packages/frontend-table-system/styles.css', 'utf8')
+ const controlCss = readFileSync('control-ui/app/globals.css', 'utf8')
+ const profileCss = readFileSync('profile-ui/app/globals.css', 'utf8')
+
+ assert.match(
+ sharedCss,
+ /\.eft-table tbody td[\s\S]*font-size:\s*var\(--eft-table-cell-font-size\)/
+ )
+ assert.match(
+ sharedCss,
+ /\.eft-table thead th[\s\S]*font-size:\s*var\(--eft-table-header-font-size\)[\s\S]*font-weight:\s*var\(--eft-table-header-font-weight\)[\s\S]*letter-spacing:\s*var\(--eft-table-header-letter-spacing\)/
+ )
+ assert.match(controlCss, /--eft-table-header-font-size:\s*var\(--cu-font-size-2xs\)/)
+ assert.match(controlCss, /--eft-table-header-font-weight:\s*var\(--cu-font-weight-semibold\)/)
+ assert.match(controlCss, /--eft-table-cell-font-size:\s*var\(--cu-font-size-md\)/)
+ assert.match(profileCss, /--eft-table-header-font-size:\s*0\.75rem/)
+ assert.match(profileCss, /--eft-table-header-font-weight:\s*600/)
+ assert.match(profileCss, /--eft-table-cell-font-size:\s*0\.9rem/)
+})
+
test('ordinary web record tables keep an explicit sorting model', () => {
const ordinaryRecordTables = [
'control-ui/app/outputs/page.tsx',