LogicAppsUX / designer-ui
CLAUDE.md114 starsChanged 5 months agoMITView on GitHub
Shared stateless UI components library. Contains reusable React components used across the designer, data mapper, and other packages. Package: @microsoft/designer-ui Uses Lexical for rich text editing: - @lexical/react integration - Custom plugins for expression insertion - HTML import/export Expression editor uses Monaco: - Custom language support for Logic Apps expressions - Syntax highlighting - Autocomplete for tokens - Validation Tests focus on: - Component rendering - User interactions - Accessibility - Edge cases Read libs/designer-ui/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes,…
In this repository17 other files it gives its agents.
- apps/docs/CLAUDE.mdCLAUDE.md
- apps/iframe-app/CLAUDE.mdCLAUDE.md
- apps/Standalone/CLAUDE.mdCLAUDE.md
- apps/vs-code-designer/CLAUDE.mdCLAUDE.md
- apps/vs-code-react/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- libs/a2a-core/CLAUDE.mdCLAUDE.md
- libs/chatbot/CLAUDE.mdCLAUDE.md
- libs/data-mapper/CLAUDE.mdCLAUDE.md
- libs/data-mapper-v2/CLAUDE.mdCLAUDE.md
- libs/designer/CLAUDE.mdCLAUDE.md
- libs/designer-v2/CLAUDE.mdCLAUDE.md
- libs/logic-apps-shared/CLAUDE.mdCLAUDE.md
- libs/vscode-extension/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- uiSkill
- verify-prSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 102
Use Fluent UI v9 design tokens
- Distinctive: line 104
Follow accessibility guidelines (WCAG 2.1 AA)
- Distinctive: line 144
Stateless components: Don't add state, accept via props
- Distinctive: line 145
Accessibility: Test with screen readers, keyboard nav
- Distinctive: line 146
Theme testing: Check both light and dark themes
- Distinctive: line 148
Styling migration: Prefer makeStyles for new code
- Very specific: line 152
Read libs/designer-ui/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes, communities, surprising connections).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- AUTO-GENERATED from docs/ai-setup/packages/designer-ui.md. DO NOT EDIT directly. -->Designer UI
Shared stateless UI components library. Contains reusable React components used across the designer, data mapper, and other packages.
Package: @microsoft/designer-ui
Purpose
- Reusable UI components - Buttons, inputs, panels, cards
- Expression editor - Monaco-based expression editing
- Token picker - Dynamic content selection
- Operation cards - Workflow node visualizations
- Stateless design - Components receive all data via props
Commands
pnpm run build:lib # Build library
pnpm run test:lib # Run unit testsArchitecture
Entry Point
src/index.ts exports all public components and utilities.
Structure
/src/lib
/card/ - Operation card components
/code/ - Code editor components
/dictionary/ - Key-value editors
/dropdown/ - Dropdown components
/editor/ - Rich text editors (Lexical)
/expressioneditor/ - Monaco expression editor
/floatingactionmenu/ - Context action menus
/html/ - HTML editor
/monitoring/ - Run history visualization
/panel/ - Panel containers
/picker/ - Token and value pickers
/querybuilder/ - Filter/query building UI
/recommendation/ - Operation search/recommendations
/schemaeditor/ - Schema editing
/settings/ - Settings sections
/staticresult/ - Static result configuration
/tokenpicker/ - Expression token selection
/overview/ - Workflow overview componentsKey Components
Expression Editor
Monaco-based editor for workflow expressions:
<ExpressionEditor
expression={value}
onChange={handleChange}
getTokens={fetchTokens}
/>Token Picker
Select dynamic content and expressions:
<TokenPicker
tokens={availableTokens}
onTokenSelected={handleSelect}
/>Operation Cards
Visual representation of workflow operations:
<OperationCard
title="Send email"
icon={emailIcon}
status="succeeded"
onClick={handleClick}
/>Panel Components
Consistent panel layouts:
<PanelContainer>
<PanelHeader title="Configuration" />
<PanelContent>{children}</PanelContent>
</PanelContainer>Styling
Current State
- Mix of LESS files and Fluent UI v9 makeStyles
- Migrating to makeStyles (see
LESS_TO_MAKESTYLES_MIGRATION_PLAN.md)
Guidelines
- New components should use makeStyles
- Use Fluent UI v9 design tokens
- Support both light and dark themes
- Follow accessibility guidelines (WCAG 2.1 AA)
Text Editing (Lexical)
Uses Lexical for rich text editing:
@lexical/reactintegration- Custom plugins for expression insertion
- HTML import/export
Monaco Integration
Expression editor uses Monaco:
- Custom language support for Logic Apps expressions
- Syntax highlighting
- Autocomplete for tokens
- Validation
Testing
pnpm run test:libTests focus on:
- Component rendering
- User interactions
- Accessibility
- Edge cases
Dependencies
@microsoft/logic-apps-shared- Shared utilities@fluentui/react- Fluent UI v8@fluentui/react-components- Fluent UI v9@monaco-editor/react- Monaco editorlexical- Rich text editing@xyflow/react- Flow visualization
Development Tips
- Stateless components: Don't add state, accept via props
- Accessibility: Test with screen readers, keyboard nav
- Theme testing: Check both light and dark themes
- Responsive: Components should adapt to container size
- Styling migration: Prefer makeStyles for new code
Graphify
Read libs/designer-ui/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes, communities, surprising connections).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

