LPS-173907 Display list of available headless resources in FDS Views Manager #129996
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Forwarded from: liferay-frontend#3031 (Took 1
ci:forward
attempt in 9 minutes)Console
@markocikos
@liferay-frontend
Original pull request comment:
References
What is the goal of this PR?
We are collecting a list of headless resources in DXP, and displaying them in UI for selection.
This is a bit chonky PR. I originally sent part of it as unfinished placeholder, but PR got stuck and we changed parts of UI. In this PR, both frontend and backend are complete.
Pinging @LuismiBarcos @ccorreagg @matijapetanjek for review of the backend part.
Backend notes:
osgi.jaxrs.resource=true
. This means that headless endpoint exists. Is this correct?entity.class.name
is notnull
. This is the unique identifier of resource. Is this correct?Object
entities. Supporting them may be a separate task.FDSHeadlessResource
class is just for convenience, containing relevant properties of headless resources. It makes for a bit more readable code, at least in my opinion.entityClassName
in this PR, but this is unique identifier that will be key for the next task: fetching of resource fields based on selection in UI.Pinging @bryceosterhaus @carloslancha @edalgrin for review of the frontend part
Frontend notes:
ClayAutocomplete
. It it difficult or impossible to implement it with custom HTML. For initial version, in this PR, we opted for a simpler solution, with just text in items. This is the only significant difference from mockups.AddFDSView.scss
is a bit awkward, as the style may bleed to rest of the page. The problem is, we cannot place a custom wrapper CSS class on a dropdown inClayAutocomplete
. Fortunately, this is the only dropdown on the page.cc @dsanz @ugeortiz @matuzalemsteles
What does it look like?
screen.mp4
Steps to reproduce
feature.flag.LPS-164563=true
toportal-ext.properties
✔️ ci:test:stable - 27 out of 27 jobs passed
✔️ ci:test:relevant - 70 out of 70 jobs passed in 3 hours 31 minutes
Click here for more details.
Base Branch:
Branch Name: master
Branch GIT ID: 6005c85e2ecc68aa2d02852902b1c6794ad83fad
Upstream Comparison:
Branch GIT ID: 6005c85e2ecc68aa2d02852902b1c6794ad83fad
Jenkins Build URL: EE Development Acceptance (master) - 4265 - 2023-02-07[10:08:23]
ci:test:stable - 27 out of 27 jobs PASSED
27 Successful Jobs:
ci:test:relevant - 70 out of 70 jobs PASSED
70 Successful Jobs:
For more details click here.
Test bundle downloads:
✔️ ci:test:sf - 1 out of 1 jobs passed in 6 minutes
Click here for more details.
Base Branch:
Branch Name: master
Branch GIT ID: 6005c85e2ecc68aa2d02852902b1c6794ad83fad
Sender Branch:
Branch Name: LPS-173907
1 out of 1jobs PASSEDBranch GIT ID: f996beb22e6902b4c2ebf7ae38d063e21b375957
1 Successful Jobs:
For more details click here.