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

feat: Removing Push Notifications in Settings #2475

Merged
merged 5 commits into from
Oct 11, 2023
Merged

Conversation

jayfyle
Copy link
Contributor

@jayfyle jayfyle commented Oct 3, 2023

Description

🤖 Generated by Copilot at 1701f45

Fixed a bug in the notifications page that displayed checkboxes incorrectly. Updated the template logic in notifications.page.html to respect the pushNotificationsEnabled flag.

🤖 Generated by Copilot at 1701f45

pushNotificationsEnabled
No checkboxes if false
Autumn leaves falling

Walkthrough

🤖 Generated by Copilot at 1701f45

  • Hide the checkbox for enabling push notifications for all events when the push notifications are disabled in the user settings (link)
  • Hide the checkboxes for enabling push notifications for individual events when the push notifications are disabled in the user settings (link)

Clickup

https://app.clickup.com/t/85ztx3ku4

Code Coverage

Please add code coverage here

UI Preview

image

@github-actions github-actions bot added the size/XS Extra Small PR label Oct 3, 2023
@jayfyle jayfyle requested a review from Julias0 October 3, 2023 06:27
@@ -31,7 +31,7 @@ <h2>Delegatee Notification</h2>
<ion-col>
<div><strong>{{ feature.value.textLabel }}</strong></div>
</ion-col>
<ion-col size="2" *ngIf="$first && (orgUserSettings$|async)?.notification_settings?.push.enabled">
<ion-col size="2" *ngIf="$first && !(orgUserSettings$|async)?.notification_settings?.push.enabled">
Copy link
Contributor

Choose a reason for hiding this comment

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

why dont we just remove the column?

@@ -54,7 +54,7 @@ <h2>Delegatee Notification</h2>
<ion-col>
<div class="notifications--event-label">{{ event.textLabel }}</div>
</ion-col>
<ion-col size="2" *ngIf="(orgUserSettings$|async)?.notification_settings?.push.enabled">
<ion-col size="2" *ngIf="!(orgUserSettings$|async)?.notification_settings?.push.enabled">
Copy link
Contributor

Choose a reason for hiding this comment

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

why dont we just remove the column?

Copy link
Contributor

@Julias0 Julias0 left a comment

Choose a reason for hiding this comment

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

Important comment

@jayfyle jayfyle requested a review from Julias0 October 4, 2023 08:01
@github-actions
Copy link

Unit Test Coverage % values
Statements 93.97% ( 16904 / 17988 )
Branches 92.28% ( 8599 / 9318 )
Functions 92.01% ( 5212 / 5664 )
Lines 94.08% ( 16092 / 17103 )

@jayfyle jayfyle merged commit 4e75133 into master Oct 11, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Extra Small PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants