Skip to content

feat(popup-reply): add threaded annotation feature flag#735

Open
jackiejou wants to merge 1 commit intobox:masterfrom
jackiejou:popup-reply-v2
Open

feat(popup-reply): add threaded annotation feature flag#735
jackiejou wants to merge 1 commit intobox:masterfrom
jackiejou:popup-reply-v2

Conversation

@jackiejou
Copy link
Collaborator

Summary

  • Add isThreadedAnnotation feature flag to conditionally render PopupReplyV2 stub component
  • Refactor PopupReply Props to discriminated union (LegacyProps | ThreadedProps) for type-safe feature flag branching
  • Migrate PopupReply and PopupLayer tests from Enzyme to React Testing Library
  • Add @testing-library/react, @testing-library/dom, @testing-library/jest-dom dependencies with jest-setup configuration

Test plan

  • All 59 affected test suites pass (457 tests)
  • Type checking passes (tsc)
  • ESLint passes with zero warnings
  • Production build succeeds
  • Verify isThreadedAnnotation: false (default) renders existing PopupReply UI
  • Verify isThreadedAnnotation: true renders PopupReplyV2 placeholder

- Add isThreadedAnnotation feature flag to conditionally render PopupReplyV2
- Refactor PopupReply Props to discriminated union (LegacyProps | ThreadedProps)
- Migrate PopupReply tests from Enzyme to React Testing Library
- Add @testing-library/react, @testing-library/dom, @testing-library/jest-dom deps
- Add jest-setup.ts for global jest-dom matcher registration
- Add test coverage for isThreadedAnnotation in PopupContainer and PopupLayer
- Add tests for useEffect popper update and options referential integrity
@jackiejou jackiejou requested a review from a team as a code owner February 27, 2026 22:43
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