Skip to content

mermaid enablement - #1776

Closed
dmaresma wants to merge 122 commits into
datacontract:mainfrom
dmaresma:feat/export_md_relationship
Closed

dmaresma wants to merge 122 commits into
datacontract:mainfrom
dmaresma:feat/export_md_relationship

Conversation

@dmaresma

Copy link
Copy Markdown
Contributor

#1775

  • [ x] Tests pass (uv run pytest)
  • [ x] Code formatted (uv run ruff check --fix && uv run ruff format)
  • [x ] Docs updated (if relevant)
  • [ x] CHANGELOG.md entry added

dmaresma and others added 30 commits January 24, 2026 19:32
…attributes add sort by schema.name and properties by ordinal_position
dmaresma and others added 17 commits June 1, 2026 17:42
…UnPivotCustomProperties

Add Import feature
…into feat/powerbi_importer

# Conflicts:
#	README.md
#	datacontract/command_import.py
#	datacontract/imports/importer.py
#	datacontract/imports/importer_factory.py
…Pivot

Feat/export excel custom properties pivot
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…hema name

The relationship badge put a gap before each comma of a composite target (`sites.region , sites.site`); the targets now render as one item. The "↑ Diagram" link now follows the schema's ⓘ physical-name icon instead of separating it from the name.
The relationship badge links and the "↑ Diagram" hover now get their underline. The stylesheet also gains classes templates already used but the old build lacked (ml-4, list-disc, whitespace-pre-line).

@jschoedl jschoedl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are very nice improvements, thank you!

Comment thread datacontract/command_catalog.py Resolved

{% if mermaid_links %}
// Entity name as drawn by Mermaid (`entity-**name**-<index>`), normalised like the schema anchors.
const normalize = (name) => name.replace(/\W/g, '_');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diagram ↔ table links don't work for schemas whose names _sanitize_name rewrites. sales$2024 is drawn as salesdollar2024, but data-schema/data-entity keep the raw name and the script only maps \W to _. So clicking those entities does nothing, and "↑ Diagram" doesn't highlight them.

If you change the template to emit the name the exporter actually draws instead of re-deriving it in JS, the reduced diagram could also keep the links.

Comment thread datacontract/export/mermaid_exporter.py Resolved
Comment thread datacontract/catalog/catalog.py Resolved
dmaresma and others added 7 commits November 9, 2026 14:56
…hema name

The relationship badge put a gap before each comma of a composite target (`sites.region , sites.site`); the targets now render as one item. The "↑ Diagram" link now follows the schema's ⓘ physical-name icon instead of separating it from the name.
@dmaresma dmaresma closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mermaid/HTML/Markdown exports: support ODCS 3.2 relationships, readable large diagrams, and Markdown catalog

5 participants