-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relationship Field Search: Site Or Host Field #31280
Comments
3 tasks
3 tasks
search.mp4 |
github-merge-queue bot
pushed a commit
that referenced
this issue
Feb 4, 2025
### Parent Issue #31280 ### Proposed Changes This pull request introduces a new `SiteFieldComponent` for selecting a site from a tree structure in the `dot-edit-content-relationship-field` module. The changes include the implementation of the component, its associated styles, unit tests, and a store for managing the component's state. Key changes: ### Component Implementation: * [`site-field.component.ts`](diffhunk://#diff-e4382792ef202b90112a6556f3c1d63c21e8f7c8f747f1cb09b77d25bfbccb1bR1-R129): Added the `SiteFieldComponent` which implements `ControlValueAccessor` to work with Angular forms and uses PrimeNG's `TreeSelect` component for the UI. * [`site-field.component.html`](diffhunk://#diff-c61c7bf501226714ed8accbb0b61a025e57c0179affa0a1fc53159f1c05b76b2R1-R44): Created the template for the `SiteFieldComponent` using `p-treeSelect` for the tree structure and added error handling. * [`site-field.component.scss`](diffhunk://#diff-06646f7c6ecfc10412b89a98dd4935436d2e7d23feea988b0f4a557018d57b63R1-R7): Added styles to ensure the `TreeSelect` component spans the full width of its container. ### Unit Tests: * [`site-field.component.spec.ts`](diffhunk://#diff-520d6e974cad3c205627cc77b5a0ec56b334303f941a74a67554c2609dabdfddR1-R198): Added comprehensive unit tests for the `SiteFieldComponent`, covering initial state, control value accessor implementation, and edge cases. * [`site-field.store.spec.ts`](diffhunk://#diff-810b776b9ac7916a02ef0ab369f0584f5018a2a7d8750e18c0ea99e8ec344cf4R1-R253): Added unit tests for the `SiteFieldStore`, ensuring proper loading of sites, handling of errors, and state management. ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated (add notes if applicable)
github-project-automation
bot
moved this from In Review
to Done
in dotCMS - Product Planning
Feb 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parent Issue
#31127
User Story
As a Content Author, I want to see a site or folder field to filter the relationships so that I can select a site or folder
Acceptance Criteria
Note: This card does not include the filter functionality because the endpoint for filtering has not been developed yet.
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: