-
Notifications
You must be signed in to change notification settings - Fork 467
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: Listing Content with Dynamic Columns #30923
Comments
nicobytes
added
OKR : User Experience
Owned by Jason
dotCMS : Content Management
Type : New Functionality
Type : Enhancement
and removed
Type : New Functionality
labels
Dec 11, 2024
nicobytes
changed the title
Relationship Field: Listing Content in a Dialog
Relationship Field: Listing Content (Dynamic Columns) in a Dialog
Dec 11, 2024
nicobytes
changed the title
Relationship Field: Listing Content (Dynamic Columns) in a Dialog
Relationship Field: Listing Content with Dynamic Columns in a Dialog
Dec 11, 2024
nicobytes
changed the title
Relationship Field: Listing Content with Dynamic Columns in a Dialog
Relationship Field: Listing Content with Dynamic Columns
Dec 11, 2024
3 tasks
3 tasks
QA Notes:
1.mp4
2.mp4
3.mp4
4.mp4Note: This feature does not include functionalities like pagination, rendering special fields such as ‘step,’ searching, or sorting. It only displays the content with dynamic columns. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Dec 18, 2024
…ds (#30941) ### Parent Issue #30923 ### Proposed Changes This pull request includes several changes across different files to introduce a new service, update styling, and improve existing components. The most important changes include adding a new `DotFieldService`, updating SCSS variables and styles, and enhancing the `dot-select-existing-content` component. ### Introduction of `DotFieldService`: * Added `DotFieldService` to handle fetching fields for a specific content type with optional filtering. (`core-web/libs/data-access/src/lib/dot-field/dot-field.service.ts`) * Created unit tests for `DotFieldService` to verify its functionality. (`core-web/libs/data-access/src/lib/dot-field/dot-field.service.spec.ts`) * Exported `DotFieldService` in the index file. (`core-web/libs/data-access/src/index.ts`) ### SCSS Variables and Styles: * Updated SCSS variables to use CSS custom properties for gray shades. (`core-web/libs/dotcms-scss/shared/_colors.scss`) * Added new CSS custom properties for border radius and primeflex colors. (`core-web/libs/dotcms-scss/angular/styles.scss`, `core-web/libs/dotcms-scss/shared/_colors.scss`) [[1]](diffhunk://#diff-19fbe1ab2e0dcad6949b44c72556e4893c233c54263211aa055d0034241fcb5fR43-R44) [[2]](diffhunk://#diff-a673541496e37f0c8d73eef81a2026235e3d621daf64af8bf35a97881cb2dce5R430-R451) * Changed table highlight background color. (`core-web/libs/dotcms-scss/angular/dotcms-theme/components/_table.scss`) ### Enhancements to `dot-select-existing-content` Component: * Enhanced the component to display error messages and handle empty data scenarios. (`core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.html`) * Updated the component to use dynamic columns and improved table layout. (`core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.html`, `core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.scss`) [[1]](diffhunk://#diff-ba794904cc95635d9efca07b7e2bfeb948b5b0bb0c8e1e97c777c615398ba011R2) [[2]](diffhunk://#diff-778cca685214b49b5445efc5613609b68214a24052f4ed77408caeb0c9e6ffb2L5-L13) * Added a required input for content ID to the component. (`core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.ts`) * Updated unit tests to mock the `RelationshipFieldService` and reflect changes in the component. (`core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.spec.ts`) ### 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
Dec 18, 2024
IQA Passed:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Parent Issue:
#30495
User Story:
As a user, I want to view related content in a dialog when browsing through items, so that I can explore additional resources without leaving my current page.
Acceptance Criteria
1. Dynamic Columns
/api/v3/contenttype/<id>/fields/allfields?filter=SHOW_IN_LIST
endpoint to retrieve the fields to be displayed.2. Content Display
/api/content/_search
endpoint to retrieve content dynamically.3. Error Handling
The text was updated successfully, but these errors were encountered: