Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

To "Review sites" notification add button to Dismiss #5473

Merged
merged 1 commit into from
Nov 8, 2016

Conversation

ayumi
Copy link
Contributor

@ayumi ayumi commented Nov 7, 2016

Minor – adds a button to dismiss this notification.

Auditors: @bsclifton

Test Plan:
(Similar to plan for #5296)

  1. Trigger the "Payment in 24 hours, please review" notification:
    a. Update reconcileStamp to <24 hours from now
    b. Update notification-reconcile-soon-timestamp to the past in Application Support/brave-development/session-store-1
    c. Change startup notification delay in ledger.js L484 from 15m to 5s
    d. Disable the sufficient funds conditional by adding false to ledger.js L1485 (showEnabledNotifications()) OR have sufficient funds
  2. Open Brave and observe review sites notification
  3. Click Dismiss to dismiss

Image / Before
screen shot 2016-11-07 at 13 28 03

Image / After
screen shot 2016-11-07 at 14 09 16

Because you should always be able to dismiss a notification.

Auditors: @bsclifton

Test Plan:
(Similar to plan for #5296)

1. Trigger the "Payment in 24 hours, please review" notification.
  a. Update reconcileStamp to <24 hours from now
  b. Have sufficient funds; OR disable the sufficient funds conditional by adding false to ledger.js L1485 (showEnabledNotifications())
  c. Change startup notification delay in ledger.js L484 from 15m to 5s
2. Open Brave and observe 24h review notification
3. Close Brave and reopen. Notification should not reappear.
(Next 24h notification timestamp is set in Application Support/brave-development/session-store-1)
@bsclifton bsclifton force-pushed the fix/reconcile-notification-add-dismiss branch from 7e8f145 to 28e2d8d Compare November 8, 2016 06:05
@bsclifton
Copy link
Member

bsclifton commented Nov 8, 2016

Looks good to me 😄

To folks reading this, this PR only allows for dismissal but doesn't disable notices (which is tracked with #5299)

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

Successfully merging this pull request may close these issues.

2 participants