agentleFS
Microsoft AzureKnown publisherAzure/LogicAppsUX/libs/data-mapper-v2/CLAUDE.md

LogicAppsUX / data-mapper-v2

CLAUDE.md114 starsChanged 5 months agoMITView on GitHub

Current-generation visual data transformation tool. Create mappings between source and target schemas with a modern drag-and-drop interface. Package: @microsoft/logic-apps-data-mapper-v2 Uses Fluent UI v9 makeStyles - Good reference for makeStyles patterns: Access via Standalone app at /datamapper-v2 route: Read libs/data-mapper-v2/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes, communities, surprising connections).

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Testing mappings: Use test schemas in /test/ folder

    line 138
  2. Very specific:

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

    line 142

≈ “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/data-mapper-v2.md. DO NOT EDIT directly. -->

Data Mapper V2

Current-generation visual data transformation tool. Create mappings between source and target schemas with a modern drag-and-drop interface.

Package: @microsoft/logic-apps-data-mapper-v2

Purpose

  • Visual data mapping - Intuitive drag-and-drop mapping creation
  • Schema support - XML and JSON schema visualization
  • Function library - Built-in and custom transformation functions
  • XSLT generation - Generate transformation code
  • Tree navigation - Efficient large schema browsing

Commands

pnpm run build:lib   # Build library
pnpm run test:lib    # Run unit tests

Architecture

Entry Point

src/index.ts exports DataMapperDesignerV2 and related components.

Structure

/src/lib
  /components/
    /canvas/         - Main mapping canvas
    /schema/         - Schema tree views
    /functions/      - Function panel
    /common/         - Shared components
  /core/
    /state/          - Redux slices
    /services/       - Data services
  /utils/            - Utilities
  /models/           - TypeScript types

Key Components

DataMapperDesignerV2

Main designer component:

<DataMapperDesignerV2
  sourceSchema={sourceSchema}
  targetSchema={targetSchema}
  dataMap={existingMap}
  onSave={handleSave}
/>

Schema Panel

Displays source/target schemas:

  • Tree view with search
  • Drag source for connections
  • Type indicators

Canvas

Visual mapping area:

  • Uses @xyflow/react for connections
  • ELK.js for layout
  • Function nodes

Functions Panel

Transformation functions:

  • String functions
  • Math functions
  • Date functions
  • Collection functions
  • Custom functions

State Management

Redux Slices

SlicePurpose
dataMapSliceMap connections and state
schemaSliceSource/target schemas
functionSliceAvailable functions
panelSliceUI panel state

Undo/Redo

Built-in undo/redo via redux-undo.

Styling

Uses Fluent UI v9 makeStyles - Good reference for makeStyles patterns:

const useStyles = makeStyles({
  root: {
    display: 'flex',
    ...tokens.typographyStyles.body1,
  },
})

Technologies

  • @xyflow/react v12 - Graph visualization
  • elkjs - Auto-layout
  • react-arborist - Tree views
  • Redux Toolkit with redux-undo
  • Fluent UI v9

Testing

pnpm run test:lib

Usage

Access via Standalone app at /datamapper-v2 route:

pnpm run start
# Navigate to https://localhost:4200/datamapper-v2

Dependencies

  • @microsoft/designer-ui
  • @microsoft/logic-apps-shared
  • @xyflow/react
  • @fluentui/react-components
  • Redux Toolkit

Development Tips

  1. Style reference: Good examples of makeStyles patterns
  2. Tree performance: Uses virtualization for large schemas
  3. Connection logic: Validation in core/services/
  4. Testing mappings: Use test schemas in /test/ folder

Graphify

Read libs/data-mapper-v2/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.