refactor: move Text to form-component lib#18864
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughA new DisplayText component is added to ChangesDisplayText Component Migration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
#18861
Description
Move
DisplayTextfromsrc/App/frontend/src/app-components/Texttolibs/form-component/src/app-components/DisplayText, matching the establishedDisplayDatemigration pattern.DisplayTextinlibs/form-component: drops theuseTranslationhook soiconAltTextis a plainstring; translation moves to the caller vialangAsString.layout/Text/TextComponent.tsxupdated to importDisplayTextfrom@app/form-componentand translatetextResourceBindings.titleat the call site.DisplayText.test.tsx) and a Storybook story (DisplayText.stories.tsx) mirroringDisplayDate.Verification
Summary by CodeRabbit
Release Notes
New Features
Style
Tests
Chores