]> source.dussan.org Git - sonarqube.git/commit
SONARCLOUD-271 Create new Notification sidebar
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 13 Dec 2018 17:17:07 +0000 (18:17 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 20 Dec 2018 10:41:51 +0000 (11:41 +0100)
commit44ab47b5ed95185667169704dd614cd5f8e39c57
treee6b2ec7585d3b698a5f5b73eaf16f44235059212
parent893a66d84f9c6169c270cd5269771c3e3d6f8d81
SONARCLOUD-271 Create new Notification sidebar

* Refactor userSettings store, use currentUser instead: Settings will now be stored on the currently logged in user, and will no
longer live on its own.
* Only show latest feature news as unread: If there's no notificationsLastReadDate prop, only show the latest
feature news as unread, instead of all of them.
* Use Modal component to render the nofitications sidebar
23 files changed:
server/sonar-web/src/main/js/api/news.ts
server/sonar-web/src/main/js/api/user-settings.ts [deleted file]
server/sonar-web/src/main/js/api/users.ts
server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.css
server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.tsx
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavNotifications.tsx [deleted file]
server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNav-test.tsx
server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavNotifications-test.tsx [deleted file]
server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNav-test.tsx.snap
server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNavNotifications-test.tsx.snap [deleted file]
server/sonar-web/src/main/js/app/components/notifications/NavLatestNotification.tsx [new file with mode: 0644]
server/sonar-web/src/main/js/app/components/notifications/NotificationsSidebar.tsx [new file with mode: 0644]
server/sonar-web/src/main/js/app/components/notifications/__tests__/NavLatestNotification-test.tsx [new file with mode: 0644]
server/sonar-web/src/main/js/app/components/notifications/__tests__/NotificationsSidebar-test.tsx [new file with mode: 0644]
server/sonar-web/src/main/js/app/components/notifications/__tests__/__snapshots__/NavLatestNotification-test.tsx.snap [new file with mode: 0644]
server/sonar-web/src/main/js/app/components/notifications/__tests__/__snapshots__/NotificationsSidebar-test.tsx.snap [new file with mode: 0644]
server/sonar-web/src/main/js/app/components/notifications/notifications.css [new file with mode: 0644]
server/sonar-web/src/main/js/app/theme.js
server/sonar-web/src/main/js/app/types.d.ts
server/sonar-web/src/main/js/apps/overview/styles.css
server/sonar-web/src/main/js/store/rootReducer.ts
server/sonar-web/src/main/js/store/users.ts
sonar-core/src/main/resources/org/sonar/l10n/core.properties