Skip to content

refactor(web): migrate rag recommendations collapsed storage#36940

Merged
lyzno1 merged 2 commits into
langgenius:mainfrom
myshkin451:refactor/rag-recommendations-storage
Jun 2, 2026
Merged

refactor(web): migrate rag recommendations collapsed storage#36940
lyzno1 merged 2 commits into
langgenius:mainfrom
myshkin451:refactor/rag-recommendations-storage

Conversation

@myshkin451
Copy link
Copy Markdown
Contributor

Summary

  • Migrate the workflow block selector RAG recommendations collapsed state to useLocalStorage.
  • Remove stale eslint suppressions for the migrated direct localStorage usage.

Refs #36898

Screenshots

Not applicable. This refactor preserves the existing UI behavior.

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

Validation

pnpm --dir web exec eslint --quiet app/components/workflow/block-selector/rag-tool-recommendations/index.tsx
pnpm --dir web test app/components/workflow/block-selector/__tests__
pnpm --dir web type-check
git diff --check

@myshkin451 myshkin451 requested review from iamjoel and zxhlyh as code owners June 2, 2026 08:47
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. javascript refactor labels Jun 2, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Jun 2, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 2, 2026
@lyzno1 lyzno1 added this pull request to the merge queue Jun 2, 2026
Merged via the queue into langgenius:main with commit 8f6b59f Jun 2, 2026
32 checks passed
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:S This PR changes 10-29 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