Conversation
🦋 Changeset detectedLatest commit: 08b6bec The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
AlinaGovoruhina
left a comment
There was a problem hiding this comment.
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.
marufrasully
left a comment
There was a problem hiding this comment.
Please correct change set
AlinaGovoruhina
left a comment
There was a problem hiding this comment.
Reapproving after changeset changed to patch.
JannaLisa
left a comment
There was a problem hiding this comment.
please check my comments. Some of them (Currently, column, filter, ...) need to be applied further below as well, please.
|
|
||
| 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. |
There was a problem hiding this comment.
I must really desperately need a vacation, because after reading the lines above, this statement doesn't really make sense to me
There was a problem hiding this comment.
| 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.', |
There was a problem hiding this comment.
| 'Table data grouping must be enabled for analytical and responsive type tables.', | |
| 'Table data grouping must be enabled for analytical and responsive table types.', |
There was a problem hiding this comment.
| '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}}.' |
There was a problem hiding this comment.
when using which object?
There was a problem hiding this comment.
| '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.' |
There was a problem hiding this comment.
| '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.' |
There was a problem hiding this comment.
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>
4b5ebf7
There was a problem hiding this comment.
| undefinedPropertiesString = `The ${diagnostic.undefinedProperties.join(', ')} ${diagnostic.undefinedProperties.length === 1 ? 'property is disabled' : 'properties are disabled'}`; |
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
I updated the logic for the warning + the rule unit tests in bd06e27 Please check.
lfindlaysap
left a comment
There was a problem hiding this comment.
@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.' |
There was a problem hiding this comment.
| '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.' |
|



Reviewed the ESLint texts for the table personalization rule.