Skip to content

Adoption: replace Plannotator monorepo's local copy with this package #1

@backnotprop

Description

@backnotprop

Tracking adoption of this package in the Plannotator monorepo (backnotprop/plannotator), replacing the local copy that shipped with backnotprop/plannotator#890. Umbrella feature: backnotprop/plannotator#887.

Preconditions

Integration PR (monorepo)

  • bunfig.toml: add "@plannotator/markdown-editor" to minimumReleaseAgeExcludes (repo policy blocks packages <7 days old; same exception as @pierre/diffs)
  • bun add @plannotator/markdown-editor in packages/ui
  • Shrink packages/ui/components/MarkdownEditor.tsx to a theme-bridging shim: calls useTheme() (the provider is rendered inside App's JSX, so App's body can't), passes mode to the package component, maps gridEnabledcardClassName. App.tsx import line stays unchanged.
  • Replace local markdown-editor.css with @plannotator/markdown-editor/themes/plannotator.css
  • Diff-before-delete: verify package source is byte-equivalent to the local copy (CSS variable declarations, light-mode block, code-languages array) before removing anything
  • Gates: fidelity corpus test (150-plan sample), full build chain, bundle delta recorded (~0 expected), dev-server visual check in dark AND light mode

After

  • Package is the single source of truth: PFM syntax decorations (callouts, wiki-links, code-file links) land here as CM6 extensions, monorepo consumes via version bumps
  • Workspaces (enterprise) adopts with its own theme mapping

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions