Skip to content

docs: align UI component command guidance with scripts#416

Open
DivyamTalwar wants to merge 1 commit into
morphik-org:mainfrom
DivyamTalwar:docs/ui-component-commands
Open

docs: align UI component command guidance with scripts#416
DivyamTalwar wants to merge 1 commit into
morphik-org:mainfrom
DivyamTalwar:docs/ui-component-commands

Conversation

@DivyamTalwar

Copy link
Copy Markdown

Summary

CLAUDE.md listed npm run build:package for the UI component, but ee/ui-component/package.json does not define that script. The UI README also described the checked-in package as an installable @morphik/ui package and included stale component-prop guidance even though the package is private and named morphik-ui. This updates the local UI guidance so it matches the actual frontend scripts and package metadata.

Changes

  • Replace the nonexistent npm run build:package command in CLAUDE.md with the supported npm start production-server command.
  • Update the UI README to describe the checked-in private Next.js app workflow instead of an installable @morphik/ui package.
  • Remove stale install/import example and incomplete prop-table guidance, including the nonexistent onUriChange prop.
  • Clarify the default local connection path without documenting token-bearing URI generation in the UI quick start.

Why this matters

Agent and UI development command references should be executable. Removing stale commands and package-install claims prevents wasted debugging time when someone follows the checked-in UI workflow.

Tests

Commands run:

  • npm run from ee/ui-component - passed; listed dev, build, start, lint, format, and format:check, with no build:package script.
  • rg -n "build:package|@morphik/ui|npm install @morphik/ui|onUriChange|isReadOnlyUri|Automatic reconnection|localhost:8000|npm run build|npm run lint|format:check|npm run format|npm start" CLAUDE.md ee/ui-component/package.json ee/ui-component/README.md docker-compose.run.yml -S - passed; stale package-build, package-install, component-prop, and feature-bullet references were removed while current build/start commands and default local connection guidance remain documented.
  • git diff --check origin/main...HEAD - passed.

Not run:

  • npm run build; this PR only updates documentation and does not change frontend code or package scripts.
  • npm run lint; same reason.

Risk

Risk level: low

This is a documentation correction with no runtime behavior change. Rollback is a direct revert of the CLAUDE.md and ee/ui-component/README.md edits.

Issue

No existing issue. This was discovered during repository analysis.

Notes for maintainers

I intentionally did not add a replacement build:package script because the supported checked-in workflow is the existing npm run build / npm start path, not a package-build script.

The agent guidance listed npm run build:package, but the UI package does not define that script. The UI README also described the checked-in private package as an installable @morphik/ui package and included incomplete component-prop guidance. Update both docs to describe the local UI workflow, the supported npm run build / npm start path, the default local connection path, and verified connection-state behavior.

Constraint: Keep the PR documentation-only; do not change package scripts, package metadata, or component props without maintainer evidence of a publish workflow.

Rejected: Add a build:package npm script | no checked-in script or build flow requires it, and the existing README/Docker compose path uses npm run build.

Rejected: Wire README-only props into MorphikUI | component behavior changes are out of scope for this docs correction.

Confidence: high

Scope-risk: narrow

Directive: Keep future UI command, connection, and component guidance verified against ee/ui-component/package.json, npm run output, and the current UI source.

Tested: npm run (from ee/ui-component); rg -n "build:package|@morphik/ui|npm install @morphik/ui|onUriChange|isReadOnlyUri|Automatic reconnection|localhost:8000|npm run build|npm run lint|format:check|npm run format|npm start" CLAUDE.md ee/ui-component/package.json ee/ui-component/README.md docker-compose.run.yml -S; git diff --check

Not-tested: npm run build; npm run lint; full frontend dependency install
@DivyamTalwar
DivyamTalwar marked this pull request as ready for review July 3, 2026 20:57
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.

1 participant