Skip to content

refactor(web): remove legacy embedded API docs - #40929

Merged
lyzno1 merged 4 commits into
mainfrom
codex/remove-legacy-api-docs
Aug 18, 2026
Merged

lyzno1 merged 4 commits into
mainfrom
codex/remove-legacy-api-docs

Conversation

@lyzno1

@lyzno1 lyzno1 commented Aug 18, 2026

Copy link
Copy Markdown
Member

Summary

  • remove both /app/[appId]/develop route registrations, the embedded MDX API documentation stack, and the Goto Anything Develop entry
  • move live app, dataset, and environment API key management into a vertical app/components/api-key module backed directly by generated query and mutation clients
  • replace legacy component SVG/CSS assets with CSS icons, inline the single-use SVG preview toggle into its owner, and remove the MDX/typography build dependencies and configuration
  • keep API reference actions pointing to the external documentation site

Architecture

  • API key dialogs own their data access and mutations; consumers pass only scope, permission, and controlled-open state
  • the module uses direct imports, named exports, Dify UI primitives, and no barrel file
  • copy feedback remains owned by base/copy-feedback; the one-off SVG preview toggle remains owned by markdown-blocks/code-block

Validation

  • pnpm knip
  • pnpm check (0 errors; repository baseline warnings remain)
  • pnpm --dir web type-check
  • focused API key, route, copy, audio, and Markdown behavior suites
  • direct accessibility lint for the changed interactive components
  • residual scans for /develop, embedded MDX files, removed dependencies/config, Goto Anything entries, and generated Next route manifests

@github-actions github-actions Bot added the web This relates to changes on the web. label Aug 18, 2026
@lyzno1
lyzno1 marked this pull request as ready for review August 18, 2026 08:39
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. refactor labels Aug 18, 2026
@codecov

codecov Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.44444% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.83%. Comparing base (ffd4ee5) to head (64dc361).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
web/app/components/api-key/api-key-modal.tsx 95.55% 4 Missing ⚠️
web/app/components/api-key/api-key-table.tsx 88.88% 2 Missing ⚠️
.../app/components/api-key/created-api-key-dialog.tsx 90.00% 1 Missing ⚠️
web/app/components/base/input/index.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #40929      +/-   ##
==========================================
- Coverage   86.83%   86.83%   -0.01%     
==========================================
  Files        5366     5355      -11     
  Lines      296976   296768     -208     
  Branches    59295    59251      -44     
==========================================
- Hits       257876   257688     -188     
+ Misses      34085    34065      -20     
  Partials     5015     5015              
Flag Coverage Δ
cli 89.33% <ø> (ø)
dify-ui 93.60% <ø> (ø)
web 86.70% <94.44%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lyzno1
lyzno1 force-pushed the codex/remove-legacy-api-docs branch from 9ef9c20 to 3d73360 Compare August 18, 2026 09:00
hyoban
hyoban previously approved these changes Aug 18, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 18, 2026
@lyzno1
lyzno1 added this pull request to the merge queue Aug 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 18, 2026
@lyzno1
lyzno1 enabled auto-merge August 18, 2026 09:46
@lyzno1
lyzno1 added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit b064a13 Aug 18, 2026
47 checks passed
@lyzno1
lyzno1 deleted the codex/remove-legacy-api-docs branch August 18, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer refactor size:XL This PR changes 500-999 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants