agentleFS
Microsoft AzureKnown publisherAzure/LogicAppsUX/libs/designer-ui/CLAUDE.md

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,…

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
  1. Distinctive:

    Use Fluent UI v9 design tokens

    line 102
  2. Distinctive:

    Follow accessibility guidelines (WCAG 2.1 AA)

    line 104
  3. Distinctive:

    Stateless components: Don't add state, accept via props

    line 144
  4. Distinctive:

    Accessibility: Test with screen readers, keyboard nav

    line 145
  5. Distinctive:

    Theme testing: Check both light and dark themes

    line 146
  6. Distinctive:

    Styling migration: Prefer makeStyles for new code

    line 148
  7. Very specific:

    Read libs/designer-ui/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes, communities, surprising connections).

    line 152

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- 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 tests

Architecture

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 components

Key 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/react integration
  • 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:lib

Tests 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 editor
  • lexical - Rich text editing
  • @xyflow/react - Flow visualization

Development Tips

  1. Stateless components: Don't add state, accept via props
  2. Accessibility: Test with screen readers, keyboard nav
  3. Theme testing: Check both light and dark themes
  4. Responsive: Components should adapt to container size
  5. 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.