Skip to content

Table Personalization ESLint Review#4431

Open
lfindlaysap wants to merge 10 commits intomainfrom
eslint-table-personalization-text-review
Open

Table Personalization ESLint Review#4431
lfindlaysap wants to merge 10 commits intomainfrom
eslint-table-personalization-text-review

Conversation

@lfindlaysap
Copy link
Copy Markdown
Contributor

Reviewed the ESLint texts for the table personalization rule.

@lfindlaysap lfindlaysap requested a review from a team as a code owner March 18, 2026 10:42
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 18, 2026

🦋 Changeset detected

Latest commit: 08b6bec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sap-ux/eslint-plugin-fiori-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lfindlaysap lfindlaysap added the eslint-plugin-fiori-tools @sap-ux/eslint-plugin-fiori-tools label Mar 18, 2026
Copy link
Copy Markdown
Contributor

@AlinaGovoruhina AlinaGovoruhina left a comment

Choose a reason for hiding this comment

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

Table personalization rule .md file and issue warning text changes look good, unit tests for the rule updated accordingly, changeset added. Also checked text updates in README.md, all good from my side.

@lfindlaysap lfindlaysap requested a review from JannaLisa March 18, 2026 13:28
Comment thread .changeset/clear-symbols-smile.md Outdated
Copy link
Copy Markdown
Contributor

@marufrasully marufrasully left a comment

Choose a reason for hiding this comment

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

Please correct change set

marufrasully
marufrasully previously approved these changes Mar 18, 2026
Copy link
Copy Markdown
Contributor

@AlinaGovoruhina AlinaGovoruhina left a comment

Choose a reason for hiding this comment

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

Reapproving after changeset changed to patch.

Copy link
Copy Markdown
Contributor

@JannaLisa JannaLisa left a comment

Choose a reason for hiding this comment

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

please check my comments. Some of them (Currently, column, filter, ...) need to be applied further below as well, please.

Comment thread packages/eslint-plugin-fiori-tools/docs/rules/sap-table-personalization.md Outdated

Every table `personalization` property is correctly set to `true`.
Omitting table personalization from the `manifest.json` table settings is also correct, because all personalization settings are provided by default for all tables.
Every table `personalization` property is set to `true`. Omitting table personalization from the `manifest.json` table settings is also correct, because all personalization settings are provided by default for all tables.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I must really desperately need a vacation, because after reading the lines above, this statement doesn't really make sense to me

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
Every table `personalization` property is set to `true`. Omitting table personalization from the `manifest.json` table settings is also correct, because all personalization settings are provided by default for all tables.
Every `personalization` subproperty is set to `true` so all table settings are enabled.
Omitting the `personalization` property from the `manifest.json` file is also correct, because all personalization settings are enabled by default.

@JannaLisa, is this clearer?

[TABLE_PERSONALIZATION_SORT]: 'Table data sorting must be enabled.',
[TABLE_PERSONALIZATION_GROUP]:
'Table data grouping should be enabled for analytical and responsive type tables.',
'Table data grouping must be enabled for analytical and responsive type tables.',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
'Table data grouping must be enabled for analytical and responsive type tables.',
'Table data grouping must be enabled for analytical and responsive table types.',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
'Table data grouping must be enabled for analytical and responsive type tables.',
'Table data grouping must be enabled for analytical and responsive tables.',

'Table data grouping must be enabled for analytical and responsive type tables.',
[MISSING_PERSONALIZATION_PROPERTIES]:
'In case of using an object, omitting a setting is treated as false. {{undefinedPropertiesString}}.'
'When using an object, omitting a setting is treated as false. {{undefinedPropertiesString}}.'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

when using which object?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
'When using an object, omitting a setting is treated as false. {{undefinedPropertiesString}}.'
'When using the personalization object, omitting a property is treated as false. {{undefinedPropertiesString}}.'

column: 21,
message:
'In case of using an object, omitting a setting is treated as false. Currently column, filter, group, sort are disabled.'
'When using an object, omitting a setting is treated as false. Currently column, filter, group, sort are disabled.'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
'When using an object, omitting a setting is treated as false. Currently column, filter, group, sort are disabled.'
'When using an object, omitting a setting is treated as false. Currently, column, filter, group, and sort are disabled.'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is in a test file so will be updated by a developer to match the finished proposal of what is in the file above.

Co-authored-by: JannaLisa <113453165+JannaLisa@users.noreply.github.com>
@lfindlaysap lfindlaysap requested a review from a team as a code owner March 18, 2026 15:08
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
undefinedPropertiesString = `The ${diagnostic.undefinedProperties.join(', ')} ${diagnostic.undefinedProperties.length === 1 ? 'property is disabled' : 'properties are disabled'}`;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@AlinaGovoruhina, love the conditional logic for one versus multiple properties. 🚀 Is it possible to remove the comma from the first word and possibly have some logic for the last entry so it would read:

The column property is disabled.

or
The column, filter, and sort properties are disabled.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I updated the logic for the warning + the rule unit tests in bd06e27 Please check.

Copy link
Copy Markdown
Contributor Author

@lfindlaysap lfindlaysap left a comment

Choose a reason for hiding this comment

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

@AlinaGovoruhina, awesome 😃. Is it possible for this comma to be added? Just before the and?

column: 21,
message:
'In case of using an object, omitting a setting is treated as false. Currently column, filter, group, sort are disabled.'
'When using an object, omitting a setting is treated as false. The column, filter, group and sort properties are disabled.'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
'When using an object, omitting a setting is treated as false. The column, filter, group and sort properties are disabled.'
'When using an object, omitting a setting is treated as false. The column, filter, group, and sort properties are disabled.'

@AlinaGovoruhina

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Updated in 08b6bec

@sonarqubecloud
Copy link
Copy Markdown

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

Labels

eslint-plugin-fiori-tools @sap-ux/eslint-plugin-fiori-tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants