Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add UI support for flag metadata (#3717)
* feat: add MetadataForm component and flag metadata types - Add IFlagMetadata interface to Flag.ts - Create MetadataForm component with CRUD operations - Add validation using Yup schema - Use Radix UI components for accessibility - Style with TailwindCSS - Install required type declarations Co-Authored-By: Mark Phelps <[email protected]> * feat: integrate MetadataForm into FlagForm - Add metadata field to flag form - Update validation schema for metadata - Follow existing styling patterns - Add proper TypeScript types Co-Authored-By: Mark Phelps <[email protected]> * feat: update RTK Query endpoints for flag metadata - Ensure metadata is preserved in updateFlag mutation - Preserve metadata when copying flags - Add proper TypeScript types for metadata handling Co-Authored-By: Mark Phelps <[email protected]> * chore: add testing dependencies for MetadataForm tests Co-Authored-By: Mark Phelps <[email protected]> * test: add MetadataForm component tests Co-Authored-By: Mark Phelps <[email protected]> * chore: update jest config for React and TypeScript testing Co-Authored-By: Mark Phelps <[email protected]> * chore: update testing dependencies and babel config Co-Authored-By: Mark Phelps <[email protected]> * chore: update jest configuration and dependencies Co-Authored-By: Mark Phelps <[email protected]> * chore: add babel-jest for React component testing Co-Authored-By: Mark Phelps <[email protected]> * test: enhance React testing configuration Co-Authored-By: Mark Phelps <[email protected]> * test: relocate MetadataForm test file Co-Authored-By: Mark Phelps <[email protected]> * test: improve MetadataForm test selectors and type handling Co-Authored-By: Mark Phelps <[email protected]> * chore: ignore coverage directory Co-Authored-By: Mark Phelps <[email protected]> * chore: remove coverage directory Co-Authored-By: Mark Phelps <[email protected]> * test: update MetadataForm test formatting Co-Authored-By: Mark Phelps <[email protected]> * chore: update ui/.gitignore Co-Authored-By: Mark Phelps <[email protected]> Signed-off-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: resolve linting issues and move test dependencies Co-Authored-By: Mark Phelps <[email protected]> * fix: move testing libraries to devDependencies Co-Authored-By: Mark Phelps <[email protected]> * test: add test setup and mock files Co-Authored-By: Mark Phelps <[email protected]> * chore: prepare for test file cleanup Co-Authored-By: Mark Phelps <[email protected]> * chore: remove unit test files in favor of e2e tests Co-Authored-By: Mark Phelps <[email protected]> * test: add playwright tests for flag metadata Co-Authored-By: Mark Phelps <[email protected]> * chore: origin add back ui/data tests Signed-off-by: Mark Phelps <[email protected]> * chore: revert ui test config Signed-off-by: Mark Phelps <[email protected]> * chore: delete unneeded tests configs, add back helpers tests Signed-off-by: Mark Phelps <[email protected]> * chore: redo package.json Signed-off-by: Mark Phelps <[email protected]> * chore: support objects and primitives in metadata Signed-off-by: Mark Phelps <[email protected]> * chore: handle arrays Signed-off-by: Mark Phelps <[email protected]> * chore: simplify Signed-off-by: Mark Phelps <[email protected]> * chore: only show types/subtypes for new fields Signed-off-by: Mark Phelps <[email protected]> * chore: fix lint issues Signed-off-by: Mark Phelps <[email protected]> * chore: fix tests Signed-off-by: Mark Phelps <[email protected]> * chore: try to fix readonly flag test Signed-off-by: Mark Phelps <[email protected]> * chore: rename metadata flag for tests Signed-off-by: Mark Phelps <[email protected]> * chore: revert back to original icons in flag form Signed-off-by: Mark Phelps <[email protected]> * chore: add error boundary for metadata form Signed-off-by: Mark Phelps <[email protected]> * chore: revert string as key helper Signed-off-by: Mark Phelps <[email protected]> * chore: handle duplicate key errors Signed-off-by: Mark Phelps <[email protected]> * chore: update specs Signed-off-by: Mark Phelps <[email protected]> * chore: ui IT test fix Signed-off-by: Mark Phelps <[email protected]> --------- Signed-off-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Signed-off-by: Mark Phelps <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Mark Phelps <[email protected]> Co-authored-by: Mark Phelps <[email protected]>
- Loading branch information