mattwr18
ddb9fcdcb7
Make dropdown filter reusable
2019-11-11 08:52:04 +01:00
roschaefer
25c9b9585b
Translate dropdown values on notification page
...
@mattwr18 this solves the problem by 50%. If you switch the language and
click on the notifications dropdown filter, you will see the translated
labels. However, the label showing the selected value will not change,
probably because `<ds-menu>` caches the selected option 😞 .
2019-11-11 08:52:04 +01:00
roschaefer
8e129c6001
fix: update counter when notification is read
...
@mattwr18 vue-apollo rocks! Taking the time to study the docs is a
rewarding investment.
My first idea was to cache the `unreadNotificationsCount` with Vuex.
But the docs of apollo even suggest to use apollo's local state as a
complete replacement of Vuex:
https://vue-apollo.netlify.com/guide/local-state.html
Then I further investigated why the updated `NOTIFIED` objects won't
update the notification counter. Turns out: They don't have an ID and
the computed property didn't fire when the notifications array would
change. I fixed both in this commit and yes, it works as expected.
No additional code required 💪
2019-11-11 08:52:04 +01:00
roschaefer
8ca2445a25
Fix data of NotificationsTable.story.js
...
@mattwr18 probably you wanted to override the `author` of the
comment/post, right? If you use the { ... desctructuring } operator,
whatever comes last takes precedence. So you probaby want to put your
override last?
2019-11-11 08:52:04 +01:00
mattwr18
6fca753c1f
Add component test for Empty.vue
2019-11-11 08:52:04 +01:00
mattwr18
1d8e328a47
Clean up
...
- remove unused data variable
- avoid scoped scss
2019-11-11 08:52:04 +01:00
mattwr18
7564908456
Refactor to follow @alina-beck suggestions
...
- Update CSS
- Use design tokens where possible
- Update spec description
- Avoid scoped scss as it's more expensive
- did not change the next and back button as they weren't really visible
without the primary class
- Fix German translation
2019-11-11 08:52:04 +01:00
mattwr18
44ed462db2
Add NotificationsTable story, refactor code
...
- Use percentages for width on all columns to help with resonsiveness
- export constants from other stories to dry code out
2019-11-11 08:52:04 +01:00
mattwr18
542647f418
Add NotificationsDropdownFilter story, refactor
...
- rename incorrectly named varaibles
- use filterOptions to remove unneccessary computed routes
Co-authored-by: @alina-beck
2019-11-11 08:52:04 +01:00
mattwr18
3ae71544d6
Add story for Empty component
...
Co-authored-by: @alina-beck
2019-11-11 08:52:04 +01:00
mattwr18
a1af4f5037
Add storybook notes
...
Co-authored-by: @alina-beck
2019-11-11 08:52:04 +01:00
mattwr18
aabaa2e637
Fix typo
...
Co-authored-by: Alina Beck <alina.beck@mail.com>
2019-11-11 08:50:35 +01:00
mattwr18
b916c9fe83
Add portuguese translations
...
Co-authored-by: ppelegrin <56610168+ppelegrin@users.noreply.github.com>
2019-11-11 08:50:35 +01:00
mattwr18
cb2cc37556
Extract components following @alina-beck suggestion
...
- see https://github.com/Human-Connection/Human-Connection/pull/2075/files
2019-11-11 08:50:35 +01:00
mattwr18
7007b1c444
Paginate notifications, reusable component w/ test
2019-11-11 08:50:35 +01:00
mattwr18
084388a21e
Follow new file structure
...
- avoid nested directories
2019-11-11 08:50:35 +01:00
mattwr18
4448c12f2e
Add componenet test for AvatarMenu
...
Co-authored-by: mindcodemediator
<mindcodemediator@users.noreply.github.com>
Co-authored-by: Mike Aono <aonomike@gmail.com>
2019-11-11 08:50:35 +01:00
mattwr18
d83a424513
Add styling
...
- to link in NotificationMenu
- make table more mobile responsive
- remove unneccessary props
Co-authored-by: Alina Beck <alina.beck@mail.com>
2019-11-11 08:50:35 +01:00
mattwr18
994a0b049d
Extract AvatarMenu into its own component
2019-11-11 08:50:35 +01:00
mattwr18
58b1f7948c
Follow @alina-beck and @Tirokk suggestions
...
- following PR reviews
2019-11-11 08:50:35 +01:00
mattwr18
e8cf51095a
Add back missing translation
2019-11-11 08:50:35 +01:00
mattwr18
cf8124fb2d
Clean up/add german translations
2019-11-11 08:50:35 +01:00
mattwr18
b79770469f
Update notifications page
...
- display more notifications by simplifying the table
- get sorting working
2019-11-11 08:50:35 +01:00
mattwr18
7cdc12f4b9
Add notifications page with Notifications in table
...
- At the moment, the notifications are displayed in a table, and have
the same functionality as the NotificationMenu where you can click on
the title of the Post and visit the Post
- Unsure about the styling, it would kind of be nice to have a more
condensed list to see more notifications per page, but still be able to
click on a row and visit the Post
2019-11-11 08:50:35 +01:00
mattwr18
ceb77d2bb6
Merge pull request #1909 from Human-Connection/add-missing-portuguese-translations
...
Add missing portuguese translation
2019-11-11 08:49:19 +01:00
ppelegrin
09064c57fa
Manting portuguese translation
2019-11-07 11:37:10 +01:00
mattwr18
9c60775c81
Merge branch 'master' of github.com:Human-Connection/Human-Connection into migrate-design-tokens
2019-11-07 10:41:39 +01:00
mattwr18
1fd3fd8e41
Merge pull request #2158 from Human-Connection/dependabot/npm_and_yarn/webapp/babel/core-7.7.2
...
build(deps-dev): bump @babel/core from 7.7.0 to 7.7.2 in /webapp
2019-11-07 10:39:23 +01:00
mattwr18
a344919154
Merge pull request #2157 from Human-Connection/dependabot/npm_and_yarn/webapp/vue-svg-loader-0.14.0
...
build(deps-dev): bump vue-svg-loader from 0.12.0 to 0.14.0 in /webapp
2019-11-07 10:38:52 +01:00
Alexander Friedland
f023fa40c9
Merge pull request #2126 from Human-Connection/1994-load-latest-posts-on-logo-click
...
Implement refresh posts, fix duplicate posts bug
2019-11-07 09:53:03 +01:00
Alexander Friedland
377b0eb2b3
Merge pull request #2118 from Human-Connection/fix-2057
...
Fix: Email is Case-Sensitive
2019-11-07 09:52:47 +01:00
Alina Beck
1e7b32cbbb
aaah fix lint errors
2019-11-07 11:07:42 +03:00
dependabot-preview[bot]
b83586d9d9
build(deps-dev): bump @babel/core from 7.7.0 to 7.7.2 in /webapp
...
Bumps [@babel/core](https://github.com/babel/babel ) from 7.7.0 to 7.7.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.7.0...v7.7.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-07 04:24:28 +00:00
dependabot-preview[bot]
4e97bdaea9
build(deps-dev): bump vue-svg-loader from 0.12.0 to 0.14.0 in /webapp
...
Bumps [vue-svg-loader](https://github.com/visualfanatic/vue-svg-loader ) from 0.12.0 to 0.14.0.
- [Release notes](https://github.com/visualfanatic/vue-svg-loader/releases )
- [Commits](https://github.com/visualfanatic/vue-svg-loader/commits/0.14.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-07 04:23:21 +00:00
Alina Beck
6814ca9376
make new design tokens globally available
2019-11-06 22:55:04 +03:00
Alina Beck
983587dcb8
add new design tokens to storybook webpack config
2019-11-06 22:48:46 +03:00
dependabot-preview[bot]
5a084e12e9
build(deps-dev): bump @babel/core from 7.6.4 to 7.7.0 in /webapp
...
Bumps [@babel/core](https://github.com/babel/babel ) from 7.6.4 to 7.7.0.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.6.4...v7.7.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-06 09:16:10 +00:00
mattwr18
0867940197
Merge pull request #2133 from Human-Connection/dependabot/npm_and_yarn/webapp/babel/preset-env-7.7.1
...
build(deps-dev): bump @babel/preset-env from 7.6.3 to 7.7.1 in /webapp
2019-11-06 10:13:27 +01:00
mattwr18
558f0b7485
Merge pull request #2091 from Human-Connection/1851-tags-clickable
...
1851 tags clickable
2019-11-06 09:59:11 +01:00
Alina Beck
fc387f63e2
add design token addon to storybook
2019-11-06 10:37:52 +03:00
Alina Beck
699c9600f2
copy-paste all tokens from nitro-styleguide
2019-11-06 10:04:05 +03:00
dependabot-preview[bot]
b6959837cf
build(deps-dev): bump @babel/preset-env from 7.6.3 to 7.7.1 in /webapp
...
Bumps [@babel/preset-env](https://github.com/babel/babel ) from 7.6.3 to 7.7.1.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.6.3...v7.7.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-06 04:22:42 +00:00
ppelegrin
15c671c4a8
Finish portuguese translations
2019-11-05 19:24:20 +01:00
roschaefer
20b47b873e
refactor: add new email, display server response
2019-11-05 15:23:31 +01:00
mattwr18
2ea0364242
Implement refresh posts, fix duplicate posts bug
...
- on logo click
- scrollToTop
- remove duplicate records
Co-authored-by: kachulio1 <jngugi88@gmail.com>
2019-11-05 14:57:54 +01:00
roschaefer
2a53eb2e6c
refactor: use email of backend response in Signup
2019-11-05 14:24:02 +01:00
mattwr18
2e03a8d286
Merge pull request #2122 from Human-Connection/dependabot/npm_and_yarn/webapp/vue-loader-15.7.2
...
build(deps-dev): bump vue-loader from 15.7.1 to 15.7.2 in /webapp
2019-11-05 11:08:56 +01:00
dependabot-preview[bot]
997778c05d
build(deps-dev): bump vue-loader from 15.7.1 to 15.7.2 in /webapp
...
Bumps [vue-loader](https://github.com/vuejs/vue-loader ) from 15.7.1 to 15.7.2.
- [Release notes](https://github.com/vuejs/vue-loader/releases )
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vuejs/vue-loader/compare/v15.7.1...v15.7.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 08:36:44 +00:00
dependabot-preview[bot]
3a1f878ce3
build(deps-dev): bump async-validator from 3.2.0 to 3.2.1 in /webapp
...
Bumps [async-validator](https://github.com/yiminghe/async-validator ) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/yiminghe/async-validator/releases )
- [Changelog](https://github.com/yiminghe/async-validator/blob/master/HISTORY.md )
- [Commits](https://github.com/yiminghe/async-validator/compare/v3.2.0...v3.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 08:36:26 +00:00
roschaefer
0cf59743ab
refactor: replace 'isemail' with 'validator'
...
..and use `normalizeEmail` everywhere in the webapp.
2019-11-05 00:24:12 +01:00