@planningcenter/topbar 7.3.0-alpha.2 → 7.3.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
  - Notification bell, indicator, and dropdown that displays the current user's read and unread notifications.
13
13
  - Subscribe to push notifications via Jolt after initial load. Whenever a push event is received, a GET request is sent to the notifications API endpoint to retrieve the details of the new notification.
14
14
  - Set up prettier and eslint and allow them to have their way on the code
15
+ - Control the admin notifications inbox with the flipper flag of `TOPBAR_notifications_enabled` in People. Disable for a specific app by setting `window.notificationsDisabled = true`.
15
16
 
16
17
  ### Changed
17
18
 
package/README.md CHANGED
@@ -15,6 +15,12 @@ To a limited extent, each product can customize the display of these items as th
15
15
  For the majority of the products, implementation is very similar.
16
16
  You can view [product-specific examples](#example-product-implementations) below.
17
17
 
18
+ ### Disabling the notifications inbox
19
+
20
+ The global determination of whether the notifications inbox is enabled or disabled is controlled via a [People flipper flag](https://people.planningcenteronline.com/flipper/features/TOPBAR_notifications_enabled).
21
+ However, if your app needs to disable the notifications inbox for whatever reason, set `window.notificationsDisabled = true` when your app renders and we'll honor that setting.
22
+ Because settings and flags are cached for one load cycle, it will take a fresh reload from the user to have the disable override to take effect.
23
+
18
24
  ### Shared Jolt connections
19
25
 
20
26
  New in v7.3 is the admin notifications inbox feature.
@@ -104,11 +110,11 @@ If you like history, here are the initial release notes with technical considera
104
110
 
105
111
  - [API](https://github.com/ministrycentered/api/blob/master/app/javascript/components/api_topbar.jsx)
106
112
  - [Accounts](https://github.com/ministrycentered/accounts/blob/master/app/javascript/components/accounts_topbar.jsx)
113
+ - [Calendar](https://github.com/ministrycentered/resources/blob/master/app/javascript/components/CalendarTopbar.jsx)
107
114
  - [Check-Ins](https://github.com/ministrycentered/check-ins/blob/master/app/javascript/components/checkins_topbar.js)
108
115
  - [Giving](https://github.com/ministrycentered/giving/blob/master/app/javascript/application/components/giving_topbar.jsx)
109
116
  - [Groups](https://github.com/ministrycentered/groups/blob/master/app/javascript/application/components/groups_topbar.js)
110
117
  - [People](https://github.com/ministrycentered/people/blob/master/app/javascript/components/people_topbar.jsx)
111
- - [Publishing](https://github.com/ministrycentered/publishing/blob/master/app/javascript/src/PublishingTopbar.jsx)
112
- - [Resources](https://github.com/ministrycentered/resources/blob/master/app/javascript/components/ResourcesTopbar.jsx)
118
+ - [Publishing](https://github.com/ministrycentered/publishing/blob/master/app/javascript/src/PublishingTopbar.js)
113
119
  - [Registrations](https://github.com/ministrycentered/registrations/blob/master/app/javascript/components/registrations_topbar.jsx)
114
120
  - [Services](https://github.com/ministrycentered/services/blob/master/app/javascript/components/ServicesTopbar.js)