Skip to content

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

Merged
jackiejou merged 1 commit intobox:masterfrom
jackiejou:popup-reply-v2
Mar 3, 2026
Merged

feat(popup-reply): add threaded annotation feature flag#735
jackiejou merged 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
@jackiejou jackiejou merged commit 2eb0e15 into box:master Mar 3, 2026
4 checks passed
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