Skip to content
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

Flatten the user object in data model #19

Merged
merged 8 commits into from
Feb 9, 2021
Merged

Flatten the user object in data model #19

merged 8 commits into from
Feb 9, 2021

Conversation

Peppe
Copy link
Contributor

@Peppe Peppe commented Feb 8, 2021

Fixes #7

src/vaadin-message-list.d.ts Outdated Show resolved Hide resolved
src/vaadin-message-list.js Outdated Show resolved Hide resolved
src/vaadin-message-list.d.ts Outdated Show resolved Hide resolved
src/vaadin-message.js Show resolved Hide resolved
src/vaadin-message.js Outdated Show resolved Hide resolved
src/vaadin-message.js Outdated Show resolved Hide resolved
src/vaadin-message.js Outdated Show resolved Hide resolved
src/vaadin-message.js Outdated Show resolved Hide resolved
test/message.test.js Outdated Show resolved Hide resolved
test/visual/message-list.html Outdated Show resolved Hide resolved
src/vaadin-message-list.d.ts Outdated Show resolved Hide resolved
src/vaadin-message-list.d.ts Outdated Show resolved Hide resolved
src/vaadin-message-list.js Outdated Show resolved Hide resolved
@@ -7,10 +7,11 @@ import { ElementMixin } from '@vaadin/vaadin-element-mixin/vaadin-element-mixin.
*
* ```html
* <vaadin-message-list
* items='[{"text":"Hello list","time":"yesterday", "user": {"name":"Matt Mambo","abbr":"MM","colorIndex":"1"}},{"text":"Hello list","time":"right now", "user": {"name":"Linsey Listy","abbr":"LL","colorIndex":"2"}}]'>
* items='[{"text":"Hello list","time":"yesterday","userName":"Matt Mambo","userAbbr":"MM","userColorIndex":1},
Copy link
Member

Choose a reason for hiding this comment

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

Please consider removing the inline JSON data. While it is supported, we do not recommend it in our docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

src/vaadin-message.js Outdated Show resolved Hide resolved
test/message.test.js Outdated Show resolved Hide resolved
test/message.test.js Outdated Show resolved Hide resolved
Peppe and others added 2 commits February 8, 2021 18:51
Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

Added some suggestions to improve API docs examples.

src/vaadin-message-list.d.ts Outdated Show resolved Hide resolved
src/vaadin-message-list.js Outdated Show resolved Hide resolved
Jens Jansson and others added 5 commits February 8, 2021 19:28
Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flatten the user properties
3 participants