discourse/app/assets/javascripts
Joffrey JAFFEUX 6cd4b8de6d
FIX: long press chat message test failure (#23791)
This commit brings two fixes.

- increase the delay to trigger the action menu

- check of user activation before using vibrate:

https://developer.mozilla.org/en-US/docs/Glossary/Sticky_activation
https://developer.mozilla.org/en-US/docs/Web/Security/User_activation
https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/hasBeenActive

> Sticky activation is a window state that indicates a user has pressed a button, moved a mouse, used a menu, or performed some other user interaction. It is not reset after it has been set initially (unlike transient activation).
> APIs that require sticky activation (not exhaustive):
> - Navigator.vibrate()
> - VirtualKeyboard.show()
> - Autoplay of Media and Web Audio APIs (in particular for AudioContexts).


Before this fix, we could end up with this error in the console in tests:

> Blocked call to navigator.vibrate because user hasn't tapped on the frame or any embedded 

<!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
2023-10-05 10:16:13 +02:00
..
admin FIX: call UserBadge.grant with badgeReason in admin interface (#23753) 2023-10-05 13:08:09 +08:00
bootstrap-json DEV: Make index.html a valid html (#23289) 2023-08-28 14:44:38 +02:00
confirm-new-email
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder Build(deps): Bump a11y-dialog in /app/assets/javascripts (#23755) 2023-10-03 11:08:46 +02:00
discourse FIX: long press chat message test failure (#23791) 2023-10-05 10:16:13 +02:00
discourse-common DEV: Add gjs support for themes (#23473) 2023-10-02 12:36:06 +02:00
discourse-hbr Build(deps-dev): Bump the embroider group (#23728) 2023-09-29 18:00:33 +01:00
discourse-plugins Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
discourse-widget-hbs Build(deps-dev): Bump the embroider group (#23728) 2023-09-29 18:00:33 +01:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Clean up package.json files (#22349) 2023-06-30 13:01:45 +02:00
float-kit FIX: ensures close arg from d-menu/:content works (#23773) 2023-10-04 19:58:17 +02:00
locales DEV: Raise an error in test env when I18n interpolate argument is missing (#23527) 2023-09-13 10:53:48 +08:00
patches DEV: Update content-tag patch following version bump (#23762) 2023-10-03 18:32:09 +01:00
pretty-text Build(deps-dev): Bump the embroider group (#23728) 2023-09-29 18:00:33 +01:00
select-kit A11Y: remove title from notification menu icons (#23735) 2023-10-02 13:54:59 -04:00
theme-transpiler Build(deps): Bump terser in /app/assets/javascripts (#23765) 2023-10-03 23:58:43 +02:00
truth-helpers Build(deps-dev): Bump the embroider group (#23728) 2023-09-29 18:00:33 +01:00
wizard Build(deps-dev): Bump the embroider group (#23728) 2023-09-29 18:00:33 +01:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02:00
.npmrc
handlebars-shim.js
package.json DEV: Add gjs support for themes (#23473) 2023-10-02 12:36:06 +02:00
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb FIX: Ensure service-worker cache is cleaned correctly (#23204) 2023-08-23 13:58:32 +01:00
yarn.lock Build(deps): Bump zod from 3.22.2 to 3.22.3 in /app/assets/javascripts (#23766) 2023-10-04 01:01:22 +02:00