Skip to content
Snippets Groups Projects

add service worker and push notifications

Merged minibikini requested to merge minibikini/pleroma-fe:feature/push-subscriptions into develop
All threads resolved!

Merge request reports

Pipeline #5277 passed

Pipeline passed for a8521fc8 on minibikini:feature/push-subscriptions

Approval is optional

Merged by HJHJ 6 years ago (Dec 13, 2018 1:46pm UTC)

Merge details

  • Changes merged into develop with 8e4777cc.
  • Deleted the source branch.

Pipeline #5287 passed

Pipeline passed for 8e4777cc on develop

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • HJ
  • Maintainer

    Add configuration disable push notifications.

  • Maintainer

    Also, how does it work with already existing non-push notifications?

  • Author Contributor

    Also, how does it work with already existing non-push notifications?

    Non-push notifications have priority over push. Push notifications show only if there are no open tabs with Pleroma.

    Edited by minibikini
  • HJ
  • minibikini added 1 commit

    added 1 commit

    • ebe2a951 - improve web push notifications

    Compare with previous version

  • minibikini added 1 commit

    added 1 commit

    • bbae2e10 - Add configuration to enable/disable web push notifications

    Compare with previous version

  • minibikini added 1 commit

    added 1 commit

    Compare with previous version

  • minibikini
  • minibikini added 1 commit

    added 1 commit

    • 07f1b852 - add subscribe module and fix race condition

    Compare with previous version

  • HJ
  • HJ
  • minibikini added 2 commits

    added 2 commits

    • a85d128d - Revert "add subscribe module and fix race condition"
    • 11716a7a - second attempt to add subscribe module and fix race condition

    Compare with previous version

  • How does this work overall? I know the backend pushes the messages with http, but where does it push too?

  • Maintainer

    @lambadalambda as far as i know, JS asks browser to do some black magic shit, which registers some shit at browser's push service which i can only assume tells the backend to start pushing stuff to it?

  • minibikini added 1 commit

    added 1 commit

    • 73b17d70 - improve push notifications code

    Compare with previous version

  • minibikini added 1 commit

    added 1 commit

    Compare with previous version

  • HJ
  • Maintainer

    Still no configuration to disable web push. Only reference to webPushNotifications which isn't defined anywhere else, no UI changes.

  • Maintainer

    Oh and also merge conflicts

  • Author Contributor

    Still no configuration to disable web push. Only reference to webPushNotifications which isn't defined anywhere else, no UI changes.

    I'm sorry, I didn't know this is also a requirement. Could you please list all the requirements that we had not touched yet in previous discussions, if there are any.

  • Maintainer

    I already asked for this before: !404 (comment 9142)

    And given that you've added webPushNotifications i assume you started working on it but not quite finished.

    No more requirements.

  • Maintainer

    maybe i hit my head when i was typing that but just in case:

    Make web push configurable. Some people might want to have notifications ONLY when website is open.

  • minibikini added 1 commit

    added 1 commit

    • 02c0e157 - add checkbox to disable web push

    Compare with previous version

  • minibikini added 136 commits

    added 136 commits

    Compare with previous version

  • Author Contributor

    please review

  • Maintainer

    That'll do for now. Although I fear that config option won't actually work for disabling push notifications, but we'll see when entire stack works in real life situation.

  • HJ resolved all discussions

    resolved all discussions

  • HJ merged

    merged

  • HJ mentioned in commit 8e4777cc

    mentioned in commit 8e4777cc

  • http://eslint.org/docs/rules/no-undef 'data' is not defined
    /home/lambda/projects/pleroma/code/pleroma-fe/src/main.js:64:69 store.dispatch('setOption', { name: 'nsfwCensorImage', value: data['nsfwCensorImage'] })

  • As far as I can tell, this should crash.

  • And it does.

  • Maintainer

    @lambadalambda hey buddy i think you got the wrong door, nsfwCensorImage is two blocks down
    image

  • Please register or sign in to reply
    Loading