{selected?.icon ? {selected.icon} : null}
diff --git a/packages/ui-react/src/UserProfileMenu.tsx b/packages/ui-react/src/UserProfileMenu.tsx
index 48e0546..a6180b2 100644
--- a/packages/ui-react/src/UserProfileMenu.tsx
+++ b/packages/ui-react/src/UserProfileMenu.tsx
@@ -19,6 +19,8 @@ export interface UserProfileMenuProps {
avatarUrl?: string;
coverImageUrl?: string;
triggerLabel?: ReactNode;
+ /** Optional status glyph between the label and avatar. */
+ triggerIcon?: IconName;
actions: readonly UserProfileMenuAction[];
}
@@ -28,6 +30,7 @@ export function UserProfileMenu({
avatarUrl,
coverImageUrl,
triggerLabel,
+ triggerIcon,
actions,
}: UserProfileMenuProps) {
const label = displayName || "NODE.DC";
@@ -49,6 +52,7 @@ export function UserProfileMenu({
onClick={toggle}
>
{triggerLabel === null ? null : {triggerLabel ?? label}}
+ {triggerIcon ? : null}
)}
diff --git a/registry/components.json b/registry/components.json
index cbf03b2..da9d30f 100644
--- a/registry/components.json
+++ b/registry/components.json
@@ -114,7 +114,8 @@
"A material rim is a glass highlight, not a hard product-colored border.",
"Nested surfaces must use a softer tone to avoid card-inside-card noise.",
"GlassMaterialSurface supports modal/Inspector floating material and explicit context=scene telemetry overlays over rendered imagery; ordinary panels remain matte. Optional material and radiusPx apply appearance to one instance without changing the global theme.",
- "MapGlassSurface is restricted to overlays over Cesium/map imagery and must match the map Toolbar translucency."
+ "MapGlassSurface is restricted to overlays over Cesium/map imagery and must match the map Toolbar translucency.",
+ "Theme edges=flat removes decorative rims and active outlines across portals; keyboard focus uses contrasting fill without changing geometry."
]
},
{
@@ -382,7 +383,8 @@
"Split is the Engine form: a separate value surface and a 46 px toggle separated by an 8 px gap.",
"Inline is a compact label-only toolbar trigger without a persistent surface or chevron; its menu and keyboard behavior remain canonical.",
"Integrated Select is forbidden inside Inspector; use InspectorSelectField so the visible label is above a full-width split control.",
- "The portal menu preserves its source-family row geometry instead of inheriting card radii."
+ "The portal menu preserves its source-family row geometry instead of inheriting card radii.",
+ "Split Select accepts shape=pill to align its separate toggle with circular workspace actions."
]
},
{
@@ -667,7 +669,8 @@
"rules": [
"The component owns menu geometry and profile presentation; the application owns settings, profile and logout actions.",
"Use the existing Dropdown engine so the menu is never clipped by the fixed application header.",
- "Do not embed product permissions or sharing rules in the visual menu."
+ "Do not embed product permissions or sharing rules in the visual menu.",
+ "Optional triggerIcon places a shared glyph between triggerLabel and the session avatar; adjacent application settings stay a separate IconButton."
]
},
{
diff --git a/registry/registry.json b/registry/registry.json
index 5fca9a2..60204f2 100644
--- a/registry/registry.json
+++ b/registry/registry.json
@@ -68,5 +68,9 @@
"appearanceProfiles": {
"default": "Existing theme/material behavior",
"mission": "Opt-in operator appearance, qualified against live Mission Core 2026-09-30; shared modal/floating surfaces, neutral avatars and dot statuses"
+ },
+ "surfaceEdgeProfiles": {
+ "default": "Existing surface edges",
+ "flat": "No decorative borders or rims; contrasting keyboard focus fill"
}
}
diff --git a/scripts/flat-theme.test.mjs b/scripts/flat-theme.test.mjs
new file mode 100644
index 0000000..ba38897
--- /dev/null
+++ b/scripts/flat-theme.test.mjs
@@ -0,0 +1,21 @@
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import {createElement as h} from 'react';
+import {renderToStaticMarkup} from 'react-dom/server';
+import {applyNodedcTheme} from '../packages/ui-core/dist/index.js';
+import {UserProfileMenu} from '../packages/ui-react/dist/index.js';
+test('flat profile can be switched back and keeps legible white accent in both themes',()=>{
+ const values=new Map(); const element={dataset:{},style:{setProperty:(k,v)=>values.set(k,v)}};
+ for(const theme of ['dark','light']) {
+ applyNodedcTheme(element,{theme,edges:'flat',accent:[255,255,255]});
+ assert.equal(element.dataset.nodedcEdges,'flat'); assert.equal(element.dataset.nodedcTheme,theme);
+ assert.equal(values.get('--nodedc-on-accent-rgb'),'11 17 23');
+ }
+ applyNodedcTheme(element,{theme:'dark'}); assert.equal(element.dataset.nodedcEdges,'default');
+});
+test('profile glyph stays between label and real session avatar',()=>{
+ const markup=renderToStaticMarkup(h(UserProfileMenu,{displayName:'Operator',triggerLabel:'Профиль',triggerIcon:'inbox',avatarUrl:'/avatar.png',actions:[]}));
+ assert.ok(markup.indexOf('Профиль')