Guo Xiang Tan
ae54a33719
FIX: discourse-presence breaks composer for users.
2020-04-29 15:29:29 +08:00
Guo Xiang Tan
197d0332e6
DEV: Missing import.
2020-04-29 13:48:31 +08:00
Guo Xiang Tan
8b3b5d1474
DEV: Disable `discourse-presence` in Ember test env.
2020-04-29 13:39:19 +08:00
Sam Saffron
2045f51312
FIX: correctly account for direct replies with presence
...
followup to 301a0fa5
, we were not checking the action so we
were publishing some messages from composers we did not intend to
2020-04-29 15:23:17 +10:00
Alan Guo Xiang Tan
301a0fa54e
FEATURE: Redesign discourse-presence to track state on the client side. ( #9487 )
...
Before this commit, the presence state of users were stored on the
server side and any updates to the state meant we had to publish the
entire state to the clients. Also, the way the state of users were
stored on the server side meant we didn't have a way to differentiate
between replying users and whispering users.
In this redesign, we decided to move the tracking of users state to the client
side and have the server publish client events instead. As a result of
this change, we're able to remove the number of opened connections
needed to track presence and also reduce the payload that is sent for
each event.
At the same time, we've also improved on the restrictions when publishing message_bus messages. Users that
do not have permission to see certain events will not receive messages
for those events.
2020-04-29 14:48:55 +10:00
Jarek Radosz
5037b80c9c
Merge imports from the same module ( #9144 )
2020-03-09 17:38:37 +01:00
Jarek Radosz
48ba65f406
DEV: Clean up Ember imports ( #8979 )
...
Includes:
* Import `computed` helpers
* Import `@ember/application`
* Import `isBlank` from `@ember/utils`
* Import `A` from `@ember/array`
* Import `EmberArray` from `@ember/array`
* Import `ArrayProxy` from `@ember/array/proxy`
* Import `warn` from `@ember/debug`
* Import `EmberObject` from `@ember/object`
* Import `Application` from `@ember/application`
* Import `EmberRouter` from `@ember/routing/router`
* Import `isPresent` from `@ember/utils`
* Import `computed` from `@ember/object`
* Import `guidFor` from `@ember/object`
* Import `isArray` from `@ember/array`
* Import `TextField` from `@ember/component`
* Import `TextArea` from `@ember/component`
* Import `Promise` from `rsvp`
* Import `Evented` from `@ember/object/evented`
* Replace deprecated `ember-addons/ember-computed-decorators` imports
2020-03-06 23:49:28 +01:00
Neil Lalonde
b0675075f7
Update translations
2020-02-25 10:29:14 -05:00
Penar Musaraj
6be685ac67
DEV: Find/replace deprecated decorators
2020-02-19 11:49:56 -05:00
Neil Lalonde
2dd1ff79b4
Update translations
2020-01-20 11:00:44 -05:00
Jarek Radosz
fe588cc7f8
DEV: Fix function prototype deprecations ( #8681 )
...
* DEV: Fix the function prototype observers deprecation
DEPRECATION: Function prototype extensions have been deprecated, please migrate from function(){}.observes('foo') to observer('foo', function() {}). [deprecation id: function-prototype-extensions.observes] See https://deprecations.emberjs.com/v3.x/#toc_function-prototype-extensions-observes for more details.
* DEV: Fix the function prototype event listeners deprecation
DEPRECATION: Function prototype extensions have been deprecated, please migrate from function(){}.on('foo') to on('foo', function() {}). [deprecation id: function-prototype-extensions.on] See https://deprecations.emberjs.com/v3.x/#toc_function-prototype-extensions-on for more details.
* DEV: Simplify `default as` imports
Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2020-01-16 18:56:53 +01:00
Joffrey JAFFEUX
0d3d2c43a0
DEV: s/\$redis/Discourse\.redis ( #8431 )
...
This commit also adds a rubocop rule to prevent global variables.
2019-12-03 10:05:53 +01:00
Neil Lalonde
b151963f18
Update translations
2019-11-06 10:43:13 -05:00
Gerhard Schlager
94a34af702
Update translations
2019-11-05 16:52:48 +01:00
Robin Ward
8d34f4bbd9
Revert "Revert Ember.run refactors"
...
This reverts commit fcb1ca52f9
.
2019-10-30 09:48:24 -04:00
Robin Ward
fcb1ca52f9
Revert Ember.run refactors
...
This reverts commit 5ca60fcb6b
.
2019-10-29 17:10:47 -04:00
Robin Ward
5ca60fcb6b
REFACTOR: Use imports for `Ember.run`
2019-10-29 15:31:56 -04:00
Robin Ward
a8a76198b1
REFACTOR: Remove `Ember.Component` global variable
...
Use imports instead.
2019-10-23 12:30:52 -04:00
Gerhard Schlager
8adec48b33
Update translations
2019-09-26 04:29:44 +02:00
Joe
27f7bd4273
UX: adjusts RTL composer presence avatar alignment
...
context: https://meta.discourse.org/t/user-is-typing-misaligned-and-mixed-with-reply-choices-with-rtl/127963
This commit adds a temporary fix for presence avatar overlap in the composer for RTL.
More context on TMP here: https://meta.discourse.org/t/moving-the-voting-box-to-the-right-side-of-the-screen/126752
2019-09-09 20:47:29 +08:00
Gerhard Schlager
8841563f8a
Update translations
2019-08-26 14:36:46 +02:00
Neil Lalonde
97e9599ecc
Update translations
2019-07-15 09:43:22 -04:00
Gerhard Schlager
a5e80079d6
FEATURE: Add Belarusian language
2019-07-04 11:37:37 +02:00
Neil Lalonde
7e884cce6b
Update translations
2019-06-25 10:57:18 -04:00
Neil Lalonde
dbc59cfe61
Update translations
2019-06-17 13:25:37 -04:00
Neil Lalonde
dbfdce95c9
Update translations
2019-05-30 10:40:16 -04:00
Joffrey JAFFEUX
b98b994fe7
apply prettier on plugins ( #7605 )
2019-05-27 11:06:11 +02:00
Joffrey JAFFEUX
bfea922167
DEV: global s/this.get\("(\w+)"\)/this.$1 ( #7592 )
2019-05-27 10:15:39 +02:00
Gerhard Schlager
a58aa9b4bf
Update translations
2019-05-20 13:42:05 +02:00
Sam Saffron
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Penar Musaraj
e50e4b6cc6
Make Prettier happy
2019-04-08 12:03:41 -04:00
Tarek Khalil
5957991340
FIX: Remove quoted post text and block realtime replies from ignored users ( #7336 )
2019-04-08 17:44:42 +02:00
Neil Lalonde
e7a6f0698d
Update translations
2019-04-05 10:02:54 -04:00
Neil Lalonde
4a7e83d880
Update translations
2019-03-28 10:07:51 -04:00
Gerhard Schlager
d43f4206c7
FEATURE: Add Armenian language
2019-03-28 14:24:14 +01:00
Neil Lalonde
aabc3375c6
Update translations
2019-03-01 11:28:07 -05:00
Neil Lalonde
55cc5ab4b8
Update translations
2019-02-07 09:49:57 -05:00
Neil Lalonde
024ba28525
Update translations
2019-01-28 10:27:20 -05:00
Neil Lalonde
81953339f2
Update translations
2019-01-14 12:23:49 -05:00
Kris
5f75da6f61
FIX: Prensence was overlapping with full-screen icon
2019-01-10 21:02:02 -05:00
Joffrey JAFFEUX
f9648de897
DEV: upgrades from Ember 2.13 to Ember 3.5.1 ( #6808 )
...
Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com>
Co-Authored-By: David Taylor <david@taylorhq.com>
2019-01-10 11:06:01 +01:00
Neil Lalonde
d7656f30c3
Update translations
2019-01-02 12:32:38 -05:00
Kris
c09a407f65
composer alignment fixes
2018-11-13 11:12:58 -05:00
Joe
a552a39f53
UX: presence-users overlaps with composer toggles
2018-10-15 16:25:28 +08:00
Neil Lalonde
af39624d19
Update translations
2018-10-12 10:40:25 -04:00
Robin Ward
a566ed42ae
FEATURE: Option to disable user presence and profile
...
This allows users who are privacy conscious to disable the presence
features of the forum as well as their public profile.
2018-10-10 17:34:33 -04:00
Gerhard Schlager
b0a383561e
FEATURE: Add Lithuanian locale
2018-09-27 05:26:38 +02:00
Neil Lalonde
5a4d6f9656
Update translations
2018-08-30 09:40:31 -04:00
Neil Lalonde
6d79be29f2
Update translations
2018-08-21 11:28:13 -04:00
Neil Lalonde
0cf98f1ad9
Revert "Update translations"
2018-08-21 11:17:53 -04:00
Neil Lalonde
3c6d5c8241
Update translations
2018-08-21 10:36:59 -04:00
Sam
f939bdbf44
FIX: if user is logged off return 404 instead of 500
...
Return correct error when attempting to publish presence for
a logged out user.
2018-08-21 11:22:40 +10:00
Peter Borsa
a6820d8767
Add Hungarian locale ( #6260 )
2018-08-13 01:02:35 +02:00
Neil Lalonde
5c248e3a7a
Update translations
2018-08-07 12:05:45 -04:00
Neil Lalonde
58ecc84d61
Update translations, excluding Japanese and config/locales/client.zh_TW.yml due to errors
2018-07-26 13:01:39 -04:00
Gerhard Schlager
d3e04daa95
Add Swahili language
2018-07-16 18:11:38 +02:00
Neil Lalonde
072659c22a
Update translations
2018-06-21 10:34:09 -04:00
Joffrey JAFFEUX
60ff0e9b8c
missing prettified files
2018-06-15 18:42:20 +02:00
Neil Lalonde
79854198c1
Update translations
2018-06-08 10:27:53 -04:00
Joffrey JAFFEUX
174d392e5a
DEV: adds prettier ( #5956 )
...
Run `prettier --write "app/assets/stylesheets/**/*.scss" "plugins/**/*.scss"` after making sure you installed it with `yarn`
It's recommended to configure your editor to run prettier on file save.
2018-06-08 11:49:31 +02:00
Gerhard Schlager
b7bf0e96aa
Update translations
2018-05-29 22:01:57 +02:00
Gerhard Schlager
864ada835b
FEATURE: Add Bulgarian language
2018-05-29 21:07:17 +02:00
Gerhard Schlager
01b0d9d235
Update translations
2018-05-17 00:08:33 +02:00
Jeff Wong
19605e8b0b
Feature: Hide plugins that ship with core from plugins panel
2018-05-15 15:50:17 -07:00
Gerhard Schlager
7bf01fd769
Update translations
2018-05-04 10:58:21 +02:00
Neil Lalonde
69a3ba0014
Update translations
2018-05-03 15:23:31 -04:00
Sam
8b62b59b2e
FIX: in some cases we subscribed to an invalid channel
...
in some very rare cases we would publish and empty payload causing
messagebus corruption
this broke all navigation
2018-04-30 12:13:55 +10:00
Gerhard Schlager
0e5104fa70
Update translations
2018-04-27 19:20:19 +02:00
Neil Lalonde
8babf1c1e1
Update translations
2018-04-24 11:08:45 -04:00
Jeff Atwood
ec7448bd1b
shorten copy from "is replying..." to "replying..."
2018-04-17 17:12:45 -07:00
Gerhard Schlager
4c53e81c69
Update translations
2018-04-06 14:51:09 +02:00
Guo Xiang Tan
802a327ee3
Update URL for presence plugin.
2018-04-06 12:46:42 +08:00
Neil Lalonde
cd99ccdbf0
Update translations
2018-03-26 10:58:01 -04:00
Neil Lalonde
0c8df32903
Update translations, except ur because of errors
2018-03-07 14:11:56 -05:00
Neil Lalonde
2e5c18d130
Merge pull request #5652 from majakomel/add-slovenian-locale
...
Add Slovenian locale files
2018-03-06 15:59:01 -05:00
Maja Komel
e2a441ade9
Add Slovenian translations
2018-03-06 20:51:41 +01:00
Joffrey JAFFEUX
ea812ea05d
FIX: regression preventing the display of `replying...` in the composer
2018-03-05 18:51:57 +01:00
Guo Xiang Tan
2f65393706
REFACTOR: Use `Topic#private_message?` to reduce duplication.
2018-03-05 15:39:22 +08:00
Neil Lalonde
32ad98161f
Update translations
2018-02-15 16:36:03 -05:00
Joffrey JAFFEUX
190d208631
FEATURE: improves composer-actions toggle menu
...
* only toggles
* fix a bug with presence
* more tests
* do not duplicate `continuing discussion...` text
* persist state to allow switching between toggles
2018-02-08 11:46:55 +01:00
Neil Lalonde
f7042ecc85
Update translations
2018-01-31 11:19:21 -05:00
Régis Hanol
8252f1e4ff
fix site setting name
2018-01-29 11:04:56 +01:00
Régis Hanol
238e3f8a71
New 'presence_max_users_shown' site setting (defaults to 5)
2018-01-29 10:48:42 +01:00
Kris
b040e11c6b
FIX: Preventing presence users from overflowing window
2018-01-19 19:15:08 -05:00
Sam
7e3543d96f
correct plugin specs
2018-01-12 14:42:05 +11:00
Neil Lalonde
0567d523ee
Update translations
2017-12-29 14:51:53 -05:00
Régis Hanol
779efd9235
FIX: don't set properties on destroyed components
2017-12-22 20:33:33 +01:00
Kris
744bb72cf9
UX: Better centering in presence plugin
2017-12-20 16:45:07 -05:00
Neil Lalonde
7e3c4b4b2f
Update translations
2017-12-20 15:28:29 -05:00
blokovi
0df1c85fd3
FEATURE: Serbian translation ( #5443 )
2017-12-19 12:26:06 +01:00
Sam
fb9fadf42c
FIX: publish presence to allowed groups as well
2017-12-19 12:17:08 +11:00
Régis Hanol
a7844de7ee
UX: only publish presence when typing a message
2017-12-18 22:00:55 +01:00
Sam
de20e36629
cancel timer when removing composer
2017-12-18 22:26:00 +11:00
Sam
fd67508497
FIX: don't count users as replying long after they are done typing
...
Also, don't leak a large amount of redis usage for presence stuff
2017-12-18 15:41:32 +11:00
Gerhard Schlager
19ee2c3fac
Add presence plugin to pull translations script to fix the build
2017-12-11 20:37:54 +01:00
Neil Lalonde
929aa98723
Update translations
2017-12-11 12:01:57 -05:00
Kyle Zhao
c52f747031
FEATURE: Catalan Translations ( #5404 )
2017-12-07 10:36:25 +01:00
Régis Hanol
023fcb04b5
make eslint happy
2017-12-06 22:23:38 +01:00
Régis Hanol
ae0acfb1df
FEATURE: live reply indicators at the bottom of topic
2017-12-06 21:58:59 +01:00
Neil Lalonde
b970451f30
FIX: Update translations job was aborting at discourse-presence
2017-12-06 10:25:00 -05:00