Skip to content

Add announcements#13365

Merged
fcollonval merged 28 commits into
jupyterlab:masterfrom
fcollonval:ft/announcements
Nov 18, 2022
Merged

Add announcements#13365
fcollonval merged 28 commits into
jupyterlab:masterfrom
fcollonval:ft/announcements

Conversation

@fcollonval

@fcollonval fcollonval commented Nov 2, 2022

Copy link
Copy Markdown
Member

References

Fix #13110

Code changes

Add a new plugin to fetch announcements from Atom feed and update check.

User-facing changes

Add notifications at start up from announcements feed.

announcements

Backwards-incompatible changes

N/A

@jupyterlab-probot

Copy link
Copy Markdown

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

Comment thread jupyterlab/handlers/announcements.py Fixed
Comment thread packages/apputils-extension/src/announcements.ts Outdated
Comment thread packages/apputils-extension/schema/notification.json Outdated
Comment thread packages/apputils-extension/src/announcements.ts Outdated
@fcollonval fcollonval marked this pull request as ready for review November 14, 2022 14:20
Comment thread docs/source/privacy_policies.rst Outdated
Comment thread docs/source/privacy_policies.rst Outdated
@jtpio

jtpio commented Nov 14, 2022

Copy link
Copy Markdown
Member

Thanks @fcollonval. Mind sharing a screencast of what the UX/UI looks like with this PR?

Comment thread packages/debugger/src/config.ts Outdated
Comment thread packages/extensionmanager/src/widget.tsx Outdated
Comment thread packages/extensionmanager/src/widget.tsx Outdated
Remove following the rebase
@fcollonval

Copy link
Copy Markdown
Member Author

js-services failure is not related
check link is expected as it requires a new file introduce in this PR.

@fcollonval

Copy link
Copy Markdown
Member Author

@jtpio would you mind having a second look please?

@jtpio jtpio self-requested a review November 17, 2022 07:54

@jtpio jtpio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @fcollonval.

I left a couple of inline comments (typos, questions) but otherwise it looks good.

Also checked on the Binder for this PR 👍

Comment thread docs/source/privacy_policies.rst Outdated
Comment thread docs/source/privacy_policies.rst Outdated
Comment thread docs/source/privacy_policies.rst Outdated
Comment thread docs/source/user/announcements.rst Outdated
Comment thread docs/source/user/announcements.rst Outdated
Comment thread docs/source/user/announcements.rst Outdated
Comment thread jupyterlab/handlers/announcements.py Outdated
Comment thread jupyterlab/handlers/announcements.py
Comment thread jupyterlab/tests/test_announcements.py
@jtpio

jtpio commented Nov 17, 2022

Copy link
Copy Markdown
Member

check link is expected as it requires a new file introduce in this PR.

Is that really the case? According to the logs there is at least one link failing which is probably not going to work afterwards? (generic jupyterlab.github.io)

image

Comment thread packages/application/src/lab.ts Outdated
Comment thread packages/apputils-extension/schema/notification.json Outdated
@fcollonval

Copy link
Copy Markdown
Member Author

CI failures are not related

@fcollonval fcollonval merged commit 3e8f4e5 into jupyterlab:master Nov 18, 2022
@fcollonval fcollonval deleted the ft/announcements branch November 18, 2022 08:04
@fcollonval

Copy link
Copy Markdown
Member Author

@meeseeksdev please backport to 3.6.x

@lumberbot-app

lumberbot-app Bot commented Nov 18, 2022

Copy link
Copy Markdown

Oops, something went wrong applying the patch ... Please have a look at my logs.

@jtpio

jtpio commented Nov 18, 2022

Copy link
Copy Markdown
Member

@fcollonval mind updating the mocks / tests as per this comment for consistency? #13365 (comment)

fcollonval added a commit that referenced this pull request Nov 18, 2022
fcollonval added a commit to fcollonval/jupyterlab that referenced this pull request Nov 18, 2022
* Add backend

* Request announcements from frontend

* Make announcement opt-in

* Add privacy policies

* Minor style improvement on extensions pagination

* Fix highlighting the icon when the notification center is opened

* Add `Disable` button as alternative to `Agree`

* Add Python tests

* Use enum for settting

* Apply review suggestion

* Fix default update checker

* Apply suggestions from code review

Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>

* Fix python test

* Add integration tests

* Fix doc error

* Fix eslint

* Fix integration tests

* Fix Python

* Fix Python test

* Fix mocking settings in integration tests

* Add documentation

* Lint

* Update Playwright Snapshots

* Add missing `Type` import
Remove following the rebase

* Apply suggestions from code review

Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>

* Ignore base website mentioned in privacy policy

* Fix extensions manager integration test

* Update documentation snapshot

Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 3e8f4e5)
fcollonval added a commit to fcollonval/jupyterlab that referenced this pull request Nov 18, 2022
fcollonval added a commit that referenced this pull request Nov 18, 2022
* Use default URL in test mock-up

Follow-up of #13365

* Update the privacy policy last modification date
This is needed as that policy will change when JupyterLab 4 is released (new extensions manager)
fcollonval added a commit that referenced this pull request Nov 21, 2022
* Backport #13365 on branch 3.6.x (Add announcements)

* Fix access to translator

* Fix doc

* Update Playwright Snapshots

* Backport style correct on the link style

* Update Playwright Snapshots

* Ignore NPM public registry link

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add announcement feature

4 participants