Martin Brennan
f47ee8fd40
WIP: Figuring out messages in thread panel
2023-02-13 12:51:39 +10:00
Martin Brennan
ff90a56f5b
DEV: Test fix
2023-02-13 11:03:20 +10:00
Martin Brennan
dd9059917f
DEV: Review fixes
2023-02-13 10:40:14 +10:00
Martin Brennan
176070cd78
Merge branch 'main' into chat-side-panel-initial-skeleton-threads
2023-02-13 10:30:42 +10:00
dependabot[bot]
6c9f84b302
Build(deps): Bump redis from 4.8.0 to 4.8.1 ( #20251 )
...
Bumps [redis](https://github.com/redis/redis-rb ) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/redis/redis-rb/releases )
- [Changelog](https://github.com/redis/redis-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/redis-rb/compare/v4.8.0...v4.8.1 )
---
updated-dependencies:
- dependency-name: redis
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 01:14:19 +01:00
Gerhard Schlager
71658e63f7
DEV: Fix typo
...
@discourse-translator-bot keep_translations_and_approvals
2023-02-13 00:46:33 +01:00
Gerhard Schlager
57e3d2268a
UX: Fix confusing error message
2023-02-13 00:46:33 +01:00
Gerhard Schlager
1ef38054ab
UX: Add missing backtick to string
2023-02-13 00:46:33 +01:00
Gerhard Schlager
32c014647d
Remove unused string ( #20256 )
...
"block" was renamed to "silence" in 1f14350220 , but we missed removing that string
2023-02-13 00:46:10 +01:00
Gerhard Schlager
1d7e21a338
DEV: Replace concatenated string ( #20254 )
2023-02-13 00:45:55 +01:00
dependabot[bot]
0525e2fb98
Build(deps-dev): Bump syntax_tree from 5.3.0 to 6.0.0 ( #20247 )
...
Bumps [syntax_tree](https://github.com/kddnewton/syntax_tree ) from 5.3.0 to 6.0.0.
- [Release notes](https://github.com/kddnewton/syntax_tree/releases )
- [Changelog](https://github.com/ruby-syntax-tree/syntax_tree/blob/main/CHANGELOG.md )
- [Commits](https://github.com/kddnewton/syntax_tree/compare/v5.3.0...v6.0.0 )
---
updated-dependencies:
- dependency-name: syntax_tree
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 00:20:06 +01:00
dependabot[bot]
2eb74d1f07
Build(deps): Bump zeitwerk from 2.6.6 to 2.6.7 ( #20253 )
...
Bumps [zeitwerk](https://github.com/fxn/zeitwerk ) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/fxn/zeitwerk/releases )
- [Changelog](https://github.com/fxn/zeitwerk/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fxn/zeitwerk/compare/v2.6.6...v2.6.7 )
---
updated-dependencies:
- dependency-name: zeitwerk
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 00:18:16 +01:00
dependabot[bot]
7f6559a038
Build(deps): Bump eslint in /app/assets/javascripts ( #20249 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.33.0 to 8.34.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.34.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 00:17:33 +01:00
dependabot[bot]
3e94903203
Build(deps): Bump parser from 3.2.0.0 to 3.2.1.0 ( #20248 )
...
Bumps [parser](https://github.com/whitequark/parser ) from 3.2.0.0 to 3.2.1.0.
- [Release notes](https://github.com/whitequark/parser/releases )
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/whitequark/parser/compare/v3.2.0.0...v3.2.1.0 )
---
updated-dependencies:
- dependency-name: parser
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 00:17:12 +01:00
Joffrey JAFFEUX
e4738cb1bc
FIX: correctly listens to chat notifications ( #20246 )
...
This change will ensure we enter and subscribe to presence channels on start and will use the correct "change" events from presence channel to update state.
2023-02-12 23:26:11 +01:00
Sam
5fb6dd9bfa
FIX: account for cursor drift when completing terms ( #19660 )
...
Previously after uploads completed post raw would drift.
If you autocompleted text after the upload stub got replaced it would
insert in the wrong position.
2023-02-13 09:25:12 +11:00
Krzysztof Kotlarek
85fbe3f628
FIX: IconPicker option to display only available icons ( #20235 )
...
Not all icons are shipped by default. Sidebar section icon picker should only display available icons.
2023-02-13 09:24:47 +11:00
Gerhard Schlager
d84d38cbe7
FIX: Replace hard-coded string with translation ( #20245 )
2023-02-11 14:50:53 +01:00
Kris
8bc9acc414
A11Y: Header icons should be buttons, not links ( #20242 )
2023-02-10 13:55:51 -05:00
Kris
3e826a67d1
A11Y: add aria-label to header notification counts ( #20231 )
2023-02-10 13:11:20 -05:00
Penar Musaraj
827df072a6
DEV: Fix a flakey test ( #20241 )
...
The `Composer - current time` test would sometimes fail due to a
1-second difference. We don't really need per-second fidelity here, the
key thing this needs to test is that the shortcut works and adds today's
date. I have updated the test to reflect that.
2023-02-10 11:37:11 -05:00
chapoi
47abe61994
UX: add flex alignment for form actions ( #20240 )
2023-02-10 07:35:18 -06:00
dependabot[bot]
ae03d25cdd
Build(deps): Bump regexp_parser from 2.6.2 to 2.7.0 ( #20233 )
...
Bumps [regexp_parser](https://github.com/ammar/regexp_parser ) from 2.6.2 to 2.7.0.
- [Release notes](https://github.com/ammar/regexp_parser/releases )
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.6.2...v2.7.0 )
---
updated-dependencies:
- dependency-name: regexp_parser
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 13:04:53 +01:00
Joffrey JAFFEUX
1a9cb0914c
re-adds @tracked activeChannel
2023-02-10 12:47:10 +01:00
Joffrey JAFFEUX
074e7ad4ed
Merge branch 'main' into chat-side-panel-initial-skeleton-threads
2023-02-10 12:25:59 +01:00
Jan Cernik
8121565631
FIX: Chat's user autocomplete threw errors ( #20236 )
2023-02-10 11:41:46 +01:00
Martin Brennan
c9776fe84d
DEV: Change setActiveChannel to get/set in services/chat ( #20237 )
...
Per PR comment in #20209 , we don't need to do setActiveChannel,
we can just use native get/set instead.
2023-02-10 11:41:29 +01:00
Martin Brennan
bf2a9063f6
DEV: Fix tracking for activeThread
2023-02-10 16:05:32 +10:00
Martin Brennan
54a4251b8e
DEV: Fix lint
2023-02-10 15:41:31 +10:00
Martin Brennan
eaa49e3764
DEV: Use @tracked for activeThread
2023-02-10 15:33:15 +10:00
chapoi
00ddfd761a
UX: apply grid for chat-view only
2023-02-10 12:31:29 +07:00
chapoi
3c568fbf1d
Merge branch 'chat-side-panel-initial-skeleton-threads' of https://github.com/discourse/discourse into chat-side-panel-initial-skeleton-threads
2023-02-10 12:20:34 +07:00
Martin Brennan
be8968b05b
DEV: Add mainOutletModifierClasses for chat main outlet
...
The main outlet needs different styles based on the route,
and whether the sidebar is expanded.
2023-02-10 15:16:05 +10:00
Martin Brennan
a6af08549b
DEV: Add mainOutletModifierClasses for chat main outlet
...
The main outlet needs different styles based on the route,
and whether the sidebar is expanded.
2023-02-10 15:09:20 +10:00
Martin Brennan
218dbc249a
DEV: Fix routing not nulling channel/thread
2023-02-10 10:16:25 +10:00
Krzysztof Kotlarek
cbd021db15
FIX: add index to sidebar_section_link ( #20234 )
...
Index on linkable_type and linkable_id should increase performance of this subquery https://github.com/discourse/discourse/blob/main/app/services/sidebar_site_settings_backfiller.rb#L86
Also, distinct is removing duplicates which are unnecessary.
2023-02-10 11:14:22 +11:00
Martin Brennan
f6081a9277
DEV: Review fixes
2023-02-10 09:25:02 +10:00
Martin Brennan
c19394c184
Merge branch 'main' into chat-side-panel-initial-skeleton-threads
2023-02-10 08:23:47 +10:00
Keegan George
6338287e89
UX: Easily toggle badges in admin badge list ( #20225 )
2023-02-09 11:36:27 -08:00
Penar Musaraj
58123e8089
Revert "UX: flex horizontal form controls ( #20098 )" ( #20228 )
...
This reverts commit 15b546978f .
2023-02-09 12:35:15 -05:00
David Taylor
25fabccd59
DEV: Enable parallel babel processing in ember-cli ( #20215 )
...
Ember CLI will automatically run babel transformations in parallel when the config is 'serializable', and can therefore be applied in multiple processes automatically. If any plugin is defined in an unserializable way, parallelisation will be disabled.
Our discourse-widget-hbs transformer was causing parallelisation to be disabled. This commit fixes that, and also enables the throwUnlessParallelizable flag so that we catch this kind of issue more easily in future.
This commit also refactors our deprecation silencing system into its own file, and uses a fake babel plugin to ensure deprecations are silenced in babel worker processes.
In our GitHub CI jobs, this doubles the speed of ember builds (1m30s -> 45s). It should also improve production deploy times, and cold-start dev builds.
2023-02-09 16:24:24 +00:00
David Taylor
db42917563
DEV: Resolve user_option deprecations ( #20192 )
2023-02-09 16:05:42 +00:00
dependabot[bot]
a8b145547e
Build(deps): Bump @babel/standalone in /app/assets/javascripts ( #20153 )
...
Bumps [@babel/standalone](https://github.com/babel/babel/tree/HEAD/packages/babel-standalone ) from 7.20.14 to 7.20.15.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.20.15/packages/babel-standalone )
---
updated-dependencies:
- dependency-name: "@babel/standalone"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 14:51:03 +00:00
Andrei Prigorshnev
0dcfd7ddec
DEV: correct a relationship – a chat message may have several mentions ( #20219 )
...
This change only makes the model reflect correctly what's
already happening in the database. Note that there are no calls
to chat_message.chat_mention in Core and plugins so this
change should be safe.
Also note, that at the moment we use the chat_mentions db
table only to support notifications about mentions, but
we're going to start using it for other cases. This commit is
the first step in that direction.
2023-02-09 17:44:04 +04:00
David Taylor
45412206f7
DEV: Apply updated syntax_tree
2023-02-09 13:19:56 +00:00
dependabot[bot]
f0322e991f
Build(deps-dev): Bump syntax_tree from 5.2.0 to 5.3.0
...
Bumps [syntax_tree](https://github.com/kddnewton/syntax_tree ) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/kddnewton/syntax_tree/releases )
- [Changelog](https://github.com/ruby-syntax-tree/syntax_tree/blob/main/CHANGELOG.md )
- [Commits](https://github.com/kddnewton/syntax_tree/compare/v5.2.0...v5.3.0 )
---
updated-dependencies:
- dependency-name: syntax_tree
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 13:19:56 +00:00
dependabot[bot]
5dc28ceb1b
Build(deps-dev): Bump test-prof from 1.1.0 to 1.2.0 ( #20223 )
...
Bumps [test-prof](https://github.com/test-prof/test-prof ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/test-prof/test-prof/releases )
- [Changelog](https://github.com/test-prof/test-prof/blob/master/CHANGELOG.md )
- [Commits](https://github.com/test-prof/test-prof/compare/v1.1.0...v1.2.0 )
---
updated-dependencies:
- dependency-name: test-prof
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 12:24:04 +01:00
Aleksey Bogdanov
e216a98f74
FIX: stop youtube autoplay on scrollups ( #19951 )
...
When a user pauses a youtube video and scrolls up high enough to load
new posts, the video either rewinds or restarts depending on the browser.
The problem is solved by patching virtual-dom to handle element prepends
without reordering old elements.
Long-term, Discourse intends to move away from the vdom/widget implementation, so this is intended as a short-term solution. More context at https://meta.discourse.org/t/57692
Co-authored-by: David Taylor <david@taylorhq.com>
2023-02-09 10:46:10 +00:00
Martin Brennan
b21664aee1
DEV: Test fix
2023-02-09 16:55:21 +10:00
Martin Brennan
9810c9aba5
DEV: Fix mobile thread full style
2023-02-09 16:47:21 +10:00