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

Custom notifications #133

Merged
merged 38 commits into from
May 9, 2019
Merged

Custom notifications #133

merged 38 commits into from
May 9, 2019

Conversation

liamaharon
Copy link
Contributor

@liamaharon liamaharon commented May 2, 2019

Closes #114

  • Allows passing a customTimeout param to notificationUI events
  • Allows the developer to trigger custom notifications

TODO:

  • Specify entire function signature in documentation
  • Improve example showing using dismiss function
  • Add tests to verify there are no errors when calling the dismiss func after the notification has timed out and vice versa
  • Fix success customTimeout not working when value is -1
  • Mention that custom HTML can be embedded into the message
  • Show timer in pending type notification
  • Add integration tests for new types of event
  • Move customTimeout into an options param
  • Log custom notifications to the backend (closes Log custom notification triggers to the server #134)

- Allow specifying custom timeouts for notifications
- Validate userInitiatedNotify arguments
- Improve customNotify test suite
@liamaharon liamaharon requested review from cmeisl and lnbc1QWFyb24 May 2, 2019 01:31
@liamaharon liamaharon mentioned this pull request May 2, 2019
8 tasks
@cmeisl cmeisl merged commit 3a064b4 into develop May 9, 2019
@cmeisl cmeisl deleted the feature/custom-notifications branch May 9, 2019 05:11
cmeisl added a commit that referenced this pull request May 9, 2019
* scroll container now scrolls to bottom when new notification is added (#151)

* Create contract tests & improve stability with new web3js versions (#149)

* Test contract decoration matches snapshot

* Update yarn.lock

* Improve Contract test coverage

* Classify existing Contract tests as unit tests

* Run contract tests with multiple web3 versions

* Clear localStorage between contract tests

* Improve comment

* Remove redundant comment

* Mock websocket in contract test

* Remove mock-socket from contract tests

* Only snapshot test a subset of decoratedContract

* Remove redundant logic

* Mock the web3 websocket connection

* Cleanup

* Use a complex ABI for contract decoration tests

* Refactor contract delegation for web3 >beta.37

* Improve comments

* Hardcode userAgent in tests

* Custom notifications (#133)

* - Allow user to spawn custom notifications
- Allow specifying custom timeouts for notifications

* - Improve userInitiatedNotify func name
- Validate userInitiatedNotify arguments

* Check assist is ready for userInitiatedNotify

* Remove options param from userInitiatedNotify

* Move notify method to assistInstance

* Add notity docs

* Improve notify docs

* Improve comment

* Don't call setHeight when no notifications

* Fix userInitiatedNotify validation

* Improve docs

* Fix notify function signature in docs

* Improve notify docs example

* Improve import syntax

* Test for a potential difficult to detect bug

* Fix notify customTimeout not working sometimes

* Mention HMTL can be embedded in customNotify msgs

* Show timer in custom "pending" notification

* Add ui-rendering tests for custom notify events

* Test that customTimeout works

* Specify notify customTimeout in an options object

* - Fix customNotify bug
- Improve customNotify test suite

* Specify customTimeout type

* Log custom events to the server

* Improve test

* Update yarn.lock

* Improve tests

* Improve comment

* Validate customCode

* Limit customCode to 24 characters

* Improve user-initiated-notify tests

* Increase test run speed

* Improve customCode default

* change eventCode for custom notification

* Add updateStyle function (#145)

* Create updateStyle method

* Add updateStyle docs

* Allow updating notificationsPosition

* Test updating notifPos doesn't throw an error

* Update notify docs

* Improve comments

* Enhancement/onboard returns state (#152)

* onboard returns current user state upon completion

* fixed tests

* remove describe statement

* remove test.only

* update to 0.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log custom notification triggers to the server Should be able to call assist.notify
2 participants