Skip to content

[ISSUE #2474] fix(history): preserve applied drawer search - #2478

Open
yuluo-yx wants to merge 1 commit into
apache:rocketmq-studiofrom
yuluo-yx:0820-yuluo-yx/fix-18
Open

[ISSUE #2474] fix(history): preserve applied drawer search#2478
yuluo-yx wants to merge 1 commit into
apache:rocketmq-studiofrom
yuluo-yx:0820-yuluo-yx/fix-18

Conversation

@yuluo-yx

Copy link
Copy Markdown
Member

Summary

  • keep query-history search text in a controlled draft state
  • apply normalized search only on explicit submission
  • restore the visible applied filter after drawer content recreation

Verification

  • MessageQueryHistoryDrawer.test.tsx: 3 tests passed
  • targeted ESLint and Prettier checks passed
  • scope check: 51 changed lines

Fixes #2474

Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Preserves the applied search query in the message history drawer after reopen, improving UX by maintaining user context.

Strengths:

  • Proper state separation between input and applied search
  • Test verifies the complete user flow (type → search → close → reopen)
  • Clean implementation with minimal changes

LGTM — nice UX improvement.


Automated review by github-manager-bot

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.

2 participants