Skip to content

Retire Share Card exports and keep Copy diagram only - #234

Open
sunsunsun-java wants to merge 9 commits into
tt-a1i:devfrom
sunsunsun-java:codex/fix-share-card-retina
Open

sunsunsun-java wants to merge 9 commits into
tt-a1i:devfrom
sunsunsun-java:codex/fix-share-card-retina

Conversation

@sunsunsun-java

@sunsunsun-java sunsunsun-java commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Problem and value

The fixed 1200×630 Share Card path forced dense diagrams into a bad tradeoff: blurry raster output, unreadably small labels, or topology simplification that omitted modules readers expected to see. This PR implements the final decision in #229: retire the separate Share Card product surface and keep one complete, high-resolution Copy diagram action.

Closes #229.

Scope

  • What changed:
    • Removed ordinary, clipboard, Route, Reach, and Architecture Delta Share Card UI, helpers, APIs, receipts, localization, documentation promises, and dedicated image assets.
    • Kept exactly one Share action: Copy diagram, backed by the existing complete-diagram PNG raster path.
    • Made retired and unknown formats fail closed by clearing any prior success receipt before validation in both the ordinary Viewer and Architecture Delta.
    • Added real-Chrome coverage across all five renderers with active focus, reach, route, story, and camera state before copying.
    • Advanced the explicitly authorized development identity to v2.17.0-dev.0 and synchronized package, Skill, documentation, generated artifacts, and ZIP bytes.
  • What deliberately did not change:
    • PNG, JPEG, WebP, SVG, and WebM downloads.
    • Route Probe, authored Reach exploration, guided stories, diagram schemas, authored topology, and renderer geometry.
  • No unrelated changes: confirmed.

Stability impact

  • Compatibility and migration risk: Share Card-only UI and JavaScript APIs are intentionally removed. Consumers should use Copy diagram or canonical download formats.
  • Renderer, validator, package, or generated-artifact risk: the shared Viewer template affects all five typed renderers, so every bundled example, Gallery proof, source-backed proof, and package archive was rebuilt and checked.
  • Failure behavior and rollback path: retired/unknown formats reject without a download and without retaining an export receipt. Rollback is a revert of this PR; no schema or authored JSON migration is required.

Tests run

  • node --test test/copy-diagram-export.test.mjs test/architecture-delta.test.mjs — 22 passed, 0 failed.
  • npm run test:webm — Architecture Delta export regression passed; Copy diagram passed for Architecture, Workflow, Sequence, Dataflow, and Lifecycle; site integration 6 passed, 0 failed, 1 opt-in Chrome test skipped.
  • npm test — 995 tests: 968 passed, 0 failed, 27 environment skips.
  • env ARCHIFY_MCO_REPO_ROOT=<mco@9f1a1cf> node --test test/real-repository-proof.test.mjs — 3 passed, including byte-for-byte reproduction of both checked-in MCO artifacts.
  • node archify/bin/archify.mjs visual-check generated/maka-regenerated.workflow.html --json — pass; 4/4 containment viewports, 4/4 screenshots, minimum projected node text 7.13px at 1440×900.
  • npm run check:release-identity2.17.0-dev.0 identity consistent.
  • git diff --check — clean.

Visual evidence

Visual review: passed.

The PR file diff provides the before/after comparison. The final captures remain contained, legible, and show the complete authored topology.

Generated artifacts

Regenerated from the final source:

  • archify.zip
  • archify/examples/dataflow-product-analytics.html
  • archify/examples/lifecycle-agent-run.html
  • archify/examples/sequence-cache-miss-request.html
  • archify/examples/web-app-rendered.html
  • archify/examples/workflow-agent-tool-call-rendered.html
  • docs/assets/archify-live-proof.gif
  • docs/assets/archify-live-proof.json
  • docs/cases/mco-runtime.architecture.html
  • docs/gallery.html
  • docs/gallery/manifest.json
  • docs/gallery/artifacts/agent-run.lifecycle.html
  • docs/gallery/artifacts/agent-tool-call.workflow.html
  • docs/gallery/artifacts/async-job-roundtrip.sequence.html
  • docs/gallery/artifacts/cache-miss.sequence.html
  • docs/gallery/artifacts/deployment-release.lifecycle.html
  • docs/gallery/artifacts/event-stream.dataflow.html
  • docs/gallery/artifacts/incident-response.workflow.html
  • docs/gallery/artifacts/product-analytics.dataflow.html
  • docs/gallery/artifacts/production-deployment.architecture.html
  • docs/gallery/artifacts/release-delivery.workflow.html
  • docs/gallery/artifacts/web-app.architecture.html
  • docs/guide.html
  • docs/index.html
  • docs/start.html
  • examples/archify-repo-grid.html
  • examples/archify-repo.html
  • examples/checkout-platform-delta.html
  • examples/checkout-platform-delta.receipt.json
  • examples/dataflow-product-analytics.html
  • examples/lifecycle-agent-run.html
  • examples/maka-architecture.html
  • examples/rag-pipeline.html
  • examples/sequence-cache-miss-request.html
  • examples/web-app-rendered.html
  • examples/web-app.html
  • examples/workflow-agent-tool-call-rendered.html
  • experiments/mco-showcase/mco-runtime.html
  • generated/maka-regenerated.workflow.html
  • generated/maka-regenerated.workflow.visual-check.1440x900.dark.png
  • generated/maka-regenerated.workflow.visual-check.1440x900.light.png
  • generated/maka-regenerated.workflow.visual-check.2048x1320.dark.png
  • generated/maka-regenerated.workflow.visual-check.2048x1320.light.png
  • generated/maka-regenerated.workflow.visual-check.json

Removed obsolete dedicated Share Card assets:

  • docs/assets/archify-menu.png
  • docs/assets/archify-route-share-card.png
  • docs/assets/mco-runtime-reach-share-card.png
  • docs/assets/mco-runtime-share-card.png

Checklist

  • I used a minimal focused final behavior and preserved existing typed JSON behavior except for the issue-approved Share Card API removal.
  • I ran the relevant targeted tests and npm test in archify/.
  • I added or updated regression tests for behavioral changes.
  • I checked generated artifacts and package freshness after source changes.
  • I removed secrets, private repository content, and customer data from fixtures and screenshots.

@tt-a1i
tt-a1i changed the base branch from main to dev September 16, 2026 15:20
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 38 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: ad154376-e151-4061-984f-b60cb182208c

📥 Commits

Reviewing files that changed from the base of the PR and between e6ca304 and 5944a4d.

⛔ Files ignored due to path filters (21)
  • archify.zip is excluded by !**/*.zip
  • archify/package-lock.json is excluded by !**/package-lock.json
  • docs/assets/archify-live-proof.gif is excluded by !**/*.gif
  • docs/assets/archify-menu.png is excluded by !**/*.png
  • docs/assets/archify-route-share-card.png is excluded by !**/*.png
  • docs/assets/mco-runtime-reach-share-card.png is excluded by !**/*.png
  • docs/assets/mco-runtime-share-card.png is excluded by !**/*.png
  • generated/maka-regenerated.architecture.html is excluded by !**/generated/**
  • generated/maka-regenerated.architecture.json is excluded by !**/generated/**
  • generated/maka-regenerated.architecture.visual-check.1440x900.dark.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.architecture.visual-check.1440x900.light.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.architecture.visual-check.2048x1320.dark.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.architecture.visual-check.2048x1320.light.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.architecture.visual-check.html is excluded by !**/generated/**
  • generated/maka-regenerated.architecture.visual-check.json is excluded by !**/generated/**
  • generated/maka-regenerated.workflow.html is excluded by !**/generated/**
  • generated/maka-regenerated.workflow.visual-check.1440x900.dark.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.workflow.visual-check.1440x900.light.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.workflow.visual-check.2048x1320.dark.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.workflow.visual-check.2048x1320.light.png is excluded by !**/*.png, !**/generated/**
  • generated/maka-regenerated.workflow.visual-check.json is excluded by !**/generated/**
📒 Files selected for processing (64)
  • CHANGELOG.md
  • DESIGN.md
  • PRODUCT.md
  • README.md
  • README_EN.md
  • README_ZH.md
  • ROADMAP.md
  • archify/SKILL.md
  • archify/assets/template.html
  • archify/delta/architecture-delta.mjs
  • archify/examples/dataflow-product-analytics.html
  • archify/examples/lifecycle-agent-run.html
  • archify/examples/sequence-cache-miss-request.html
  • archify/examples/web-app-rendered.html
  • archify/examples/workflow-agent-tool-call-rendered.html
  • archify/package.json
  • archify/references/brand-marks.md
  • archify/references/delivery-contract.md
  • archify/references/viewer-runtime.md
  • archify/renderers/shared/i18n.mjs
  • archify/skill-release.json
  • archify/test/architecture-delta.test.mjs
  • archify/test/copy-diagram-export.test.mjs
  • archify/test/i18n.test.mjs
  • archify/test/reach-share-card.test.mjs
  • archify/test/readme-showcase.test.mjs
  • archify/test/real-repository-proof.test.mjs
  • archify/test/route-share-card.test.mjs
  • archify/test/share-card-export.test.mjs
  • archify/test/webm-artifact.smoke.mjs
  • docs/assets/archify-live-proof.json
  • docs/cases/mco-runtime.architecture.html
  • docs/gallery.html
  • docs/gallery/artifacts/agent-run.lifecycle.html
  • docs/gallery/artifacts/agent-tool-call.workflow.html
  • docs/gallery/artifacts/async-job-roundtrip.sequence.html
  • docs/gallery/artifacts/cache-miss.sequence.html
  • docs/gallery/artifacts/deployment-release.lifecycle.html
  • docs/gallery/artifacts/event-stream.dataflow.html
  • docs/gallery/artifacts/incident-response.workflow.html
  • docs/gallery/artifacts/product-analytics.dataflow.html
  • docs/gallery/artifacts/production-deployment.architecture.html
  • docs/gallery/artifacts/release-delivery.workflow.html
  • docs/gallery/artifacts/web-app.architecture.html
  • docs/gallery/manifest.json
  • docs/guide.html
  • docs/index.html
  • docs/start.html
  • examples/archify-repo-grid.html
  • examples/archify-repo.html
  • examples/checkout-platform-delta.html
  • examples/checkout-platform-delta.receipt.json
  • examples/dataflow-product-analytics.html
  • examples/lifecycle-agent-run.html
  • examples/maka-architecture.html
  • examples/rag-pipeline.html
  • examples/sequence-cache-miss-request.html
  • examples/web-app-rendered.html
  • examples/web-app.html
  • examples/workflow-agent-tool-call-rendered.html
  • experiments/mco-showcase/mco-runtime.html
  • scripts/gallery-template.html
  • scripts/guide-template.html
  • scripts/start-template.html

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

[Change] Retire Share Card exports and keep Copy diagram only

1 participant