-
-
Notifications
You must be signed in to change notification settings - Fork 827
Add a setting to allow users to set account-wide custom notification sound #10494
Add a setting to allow users to set account-wide custom notification sound #10494
Conversation
- extract NotificationSound.tsx component - rename getSoundForRoom, generalize function usage - rename unnecessarily short variable name
@Half-Shot @t3chguy @turt2live Hey folks, just looking to get confirmation that this is a feature that we're willing to merge in if I finish it out. You can test it out yourself. |
@kenwuuu thank you a lot for making this PR, and taking the time to try to resolve this 💚 |
…ix-org#10582) Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* #21451 Fix WebGl disabled error message * #21451 Fix WebGl disabled error message Signed-off-by: Rashmit Pankhania <rashmitpankhania@gmail.com> Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> * Fix message Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> * Fix ordering of cases in LocationShareErrors.ts Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> * Fix linting LocationPicker.tsx Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> * Fix eslint Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> * Fix file encoding for i18n CI issue Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> * Fix ts strict CI issue Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> --------- Signed-off-by: Rashmit Pankhania <rashmitpankhania@gmail.com> Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net> Co-authored-by: Rashmit Pankhania <raspankh@publicisgroupe.net> Co-authored-by: Kerry <kerrya@element.io>
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Conform more of the codebase to `strictNullChecks` * Conform more of the codebase to `strictNullChecks` * Fix types
matrix-org#10617) 'data-test-id' is not discoverable with findByTestId() of Cypress Testing Library. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Update room.spec.ts - use Cypress Testing Library Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Empty commit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Co-authored-by: Kerry <kerrya@element.io>
…0612) * Update location.spec.ts - use Cypress Testing Library Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Make the test id of location share option discoverable with findByTestId() findByTestId seeks for data-testid, instead of data-test-id. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
…10611) Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Conform more of the codebase to `strictNullChecks` * Conform more of the codebase to `strictNullChecks` * Fix types * Conform more of the codebase to `strictNullChecks` * Conform more of the codebase to `strictNullChecks`
…sting Library (matrix-org#10619) * Update support files - use Cypress Testing Library Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix openMessageComposerOptions() Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
…0613) Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
…10539) Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* replace hardcoded strings with MsgType constants * fix import and revert comments Signed-off-by: Ken Wu kenqiwu@gmail.com * fix import Signed-off-by: Ken Wu kenqiwu@gmail.com --------- Signed-off-by: Ken Wu kenqiwu@gmail.com
…rg#10596) Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
…0574) Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
…#10591) Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Mark effects overlay canvas as aria hidden * Ensure date separators aren't seen as focusable aria separators * Fix * Fix font slider not having aria label * Add missing aria labels * Fix settings flags setting aria-checked={null} * Update snapshots
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
- extract NotificationSound.tsx component - rename getSoundForRoom, generalize function usage - rename unnecessarily short variable name
…on_sound' into feature/custom_global_notification_sound # Conflicts: # src/components/views/settings/NotificationSound.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for your contribution! The first order of business will be to get our product team's input on whether this is in fact the kind of change that we want to make to our notification settings. In particular, I think our team has a project in progress to improve the notifications settings page that could conflict with this change.
From a quick look at the code, I think something went wrong with one of your merges? The diff includes quite a few unrelated changes at the moment.
import AccessibleButton, {ButtonEvent} from "../elements/AccessibleButton"; | ||
import {chromeFileInputFix} from "../../../utils/BrowserWorkarounds"; | ||
import {SettingLevel} from "../../../settings/SettingLevel"; | ||
import {logger} from "../../../../../matrix-js-sdk/src/logger"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't compiling in our CI, because it needs to be an absolute import:
import {logger} from "../../../../../matrix-js-sdk/src/logger"; | |
import {logger} from "matrix-js-sdk/src/logger"; |
@kenwuuu @robintown |
Product apparently gave feedback on the general feature. But not here 🥲. See element-hq/element-web#5891 (comment) Also note, that you said:
But this doesn't make sense. This one is an accessibility bug to users, apparently. Some even say "health" affecting (not sure about that). So if you work on accessibility, here you go, this is an important accessibility problem, which is additionally easy to provide with a quick fix for now, that can then perfected in later work 🙂. |
With apologies to all those who are desperately wanting a way to change the sound, I'm going to close this PR: this isn't necessarily to say that we don't want the feature, but this one isn't in a mergeable state and hasn't been updated in over a year. If someone were motivated enough, they could extract the changes and make a fresh PR. |
I've disabled the sound and accepted that I would never use this messaging application and protocol for emergencies. Unfortunate but a reality. |
Signed-off-by: Ken Wu kenqiwu@gmail.com
Issues Addressed
Custom notification issues
element-hq/element-web#5891
element-hq/element-web#20286
element-hq/element-web#15023
Planned simple changes
I'll work on these separately (new PR) if someone with write access tells me that they'll get this PR through first.
element-hq/element-web#18392
element-hq/element-web#20864
Changes
How to test
To upload
yarn start
in rootScreenshot of change
Here's what your changelog entry will look like:
✨ Features
Add a setting to allow users to set account-wide custom notification sound for messages (#10494). Fixes element-hq/element-web#5891; element-hq/element-web#20286; element-hq/element-web#15023. Contributed by @kenwuuu
Checklist
This PR currently has none of the required changelog labels.
A reviewer can add one of:
T-Deprecation
,T-Enhancement
,T-Defect
,T-Task
to indicate what type of change this is, or addType: [enhancement/defect/task]
to the description and I'll add them for you.