Skip to content

Conversation

@chestofwonders
Copy link
Collaborator

@chestofwonders chestofwonders commented Oct 10, 2025

Issue: https://liferay.atlassian.net/browse/LPD-24670

See #5110 for previous discussion

Inform about Data Sets without visualization mode when selecting Data Set

The goal of this PR is to warn the user when selecting a Data Set from the list to display in a fragment, that there are Data Set that will not be able to be displayed on the page, since no visualization modes have been defined for them.

image

Also, a tooltip is show when user hovers the cursor over the warning icon

image

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

Test suite sf has been triggered on http://test-1-38

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Ran com.liferay.source.formatter at released version 1.0.1543.
*The latest version has not been released.

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 4a7943d4bb3c08c4d0ea8f2359b17a0c50f7a371

Sender Branch:

Branch Name: LPD-24670
Branch GIT ID: df578cfdcec8619ed6559bb3abd48012678939d8

1 out of 1 jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

@dsanz
Copy link
Collaborator

dsanz commented Oct 10, 2025

@chestofwonders pls check comment on old, draft PR

Also, pls remove "WIP" from commit message :)

@chestofwonders chestofwonders force-pushed the LPD-24670 branch 3 times, most recently from f4b4fa6 to db9686f Compare October 20, 2025 15:59
Copy link
Collaborator

@dsanz dsanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chestofwonders pls see inline comments

@chestofwonders chestofwonders force-pushed the LPD-24670 branch 2 times, most recently from 6f9d530 to 501b5fa Compare October 21, 2025 09:21
@chestofwonders chestofwonders requested a review from dsanz October 21, 2025 09:23
@chestofwonders chestofwonders force-pushed the LPD-24670 branch 2 times, most recently from c549eca to 1a6c46b Compare October 21, 2025 11:04
Copy link
Collaborator

@kresimir-coko kresimir-coko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit

Copy link
Collaborator

@markocikos markocikos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chestofwonders please see comments inline

Copy link
Collaborator

@dsanz dsanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ;) pls see inline comments. Just minor nit on test description

sticker: 'sticker',
symbol: 'symbol',
title: 'label',
tooltip: 'tooltip',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that List.tsx handles everything via schema we don't need hidden conventions in order to pass the information we need ✨

<ClayIcon symbol={item[symbol]} />
</ClaySticker>
</span>
</ClayTooltipProvider>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are rendering the tooltip, if present, associated woth the symbol. This is as opinionated as doing it in other places. Decision follows designs, it's fine. In the future, placement of tooltip can be changed/tweaked if needed 👍

<ClayList.ItemField>
{(itemsActions || item.actionDropdownItems) && (
{(itemsActions || item.actionDropdownItems) && (
<ClayList.ItemField>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch avoiding an empty ItemField component here when there are no actions

symbol: 'exclamation-circle',
tooltip: Liferay.Language.get(
'no-visualization-modes-have-been-defined'
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 With this change, now the concept of "valid" is meaningless for FDS, which limits itself to render what's told to. Parent component here is in charge of defining the intent of the item depending on custom conditions.

This is the right pattern!

@chestofwonders
Copy link
Collaborator Author

ci:forward

@liferay-continuous-integration
Copy link
Collaborator

Test suite relevant has been triggered on http://test-1-32

@liferay-continuous-integration
Copy link
Collaborator

Test suite sf has been triggered on http://test-1-32

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

The pull request will automatically be forwarded to the user brianchandotcom If the following test suites pass:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Ran com.liferay.source.formatter at released version 1.0.1548.

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 375f6214ece954953627aa16f77a1de631884743

Sender Branch:

Branch Name: LPD-24670
Branch GIT ID: 29c5f256151b9a914f5f61fa7a84e636f3bf94e8

1 out of 1 jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 11 out of 11 jobs passed

❌ ci:test:relevant - 14 out of 17 jobs passed in 58 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 375f6214ece954953627aa16f77a1de631884743

Upstream Comparison:

Branch GIT ID: cb2950353b3968cfa6c10a0bd3dfebb8e8beafc3
Jenkins Build URL: EE Development Acceptance (master) - 196 - 2025-10-16[16:39:16]

ci:test:stable - 11 out of 11 jobs PASSED
11 Successful Jobs:
    ci:test:relevant - 14 out of 17 jobs PASSED

    3 Failed Jobs:

    14 Successful Jobs:
      For more details click here.

      Failures unique to this pull:

      For upstream results, click here.

      Test bundle downloads:

      @liferay-continuous-integration
      Copy link
      Collaborator

      @chestofwonders
      Copy link
      Collaborator Author

      ci:forward:force

      @liferay-continuous-integration
      Copy link
      Collaborator

      CI is automatically triggering the following test suites:

      •     ci:test:relevant
      •     ci:test:sf
      •     ci:test:stable

      The pull request will automatically be forwarded to the user brianchandotcom if the following test suites complete:

      •     ci:test:relevant
      •     ci:test:sf
        AND If the following test suites pass:
      •     ci:test:stable

      @liferay-continuous-integration
      Copy link
      Collaborator

      Skipping previously completed test suites:

      • ci:test:relevant
      • ci:test:sf
        AND Skipping previously passed test suites:
      • ci:test:stable

      @liferay-continuous-integration
      Copy link
      Collaborator

      Test suite default has been triggered on http://test-1-32

      @liferay-continuous-integration
      Copy link
      Collaborator

      All required test suite(s) completed.
      Forwarding pull request to brianchandotcom.
      Console

      @liferay-continuous-integration
      Copy link
      Collaborator

      Pull request has been successfully forwarded to brianchandotcom#167224
      Console

      Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

      Projects

      None yet

      Development

      Successfully merging this pull request may close these issues.

      6 participants