Commit Graph

47379 Commits

Author SHA1 Message Date
Martin Brennan
6614f789fa
more debugging 2022-12-14 18:48:34 +10:00
Martin Brennan
1aa304850e
DEV: Put reply control HTML 2022-12-14 18:27:20 +10:00
Martin Brennan
ed30b241f9
change set to fill_in and remove within from send_reply 2022-12-14 17:44:04 +10:00
Martin Brennan
006c47cbd1
change set to fill_in 2022-12-14 17:20:45 +10:00
Martin Brennan
c7a3fcd33a
add sleep 2022-12-14 17:03:10 +10:00
Martin Brennan
2454a251cd
use reply_control in one test 2022-12-14 16:43:51 +10:00
Martin Brennan
eb5a39a98c
DEV: Remove unused fabricators 2022-12-14 15:19:34 +10:00
Martin Brennan
4d587da197
DEV: Minor spec fixes 2022-12-14 10:53:54 +10:00
Joffrey JAFFEUX
c666b8154c will work 2022-12-13 21:50:49 +01:00
Joffrey JAFFEUX
f5ca3a9b14 test 2022-12-13 21:22:27 +01:00
Joffrey JAFFEUX
f43dd753ba is that it? 2022-12-13 21:03:12 +01:00
Joffrey JAFFEUX
53d605c238 debug 2022-12-13 20:51:25 +01:00
Joffrey JAFFEUX
bed2b26c18 disable animations 2022-12-13 20:19:10 +01:00
Joffrey JAFFEUX
cbe0886836 debug 2022-12-13 18:43:31 +01:00
Joffrey JAFFEUX
11ec0ea8a3 debugging 2022-12-13 18:42:18 +01:00
Joffrey JAFFEUX
949d2f95fc more debugging 2022-12-13 18:13:46 +01:00
Joffrey JAFFEUX
99a21cd633 debug 2022-12-13 18:02:01 +01:00
Joffrey JAFFEUX
f0d8663202 adds wait 2022-12-13 17:27:19 +01:00
Joffrey JAFFEUX
252fef0e70 uses selector 2022-12-13 16:59:30 +01:00
Joffrey JAFFEUX
1f4393fd1b better 2022-12-13 15:57:11 +01:00
Joffrey JAFFEUX
c6aa8c1da2 fix tests. 2022-12-13 15:39:02 +01:00
Joffrey JAFFEUX
f6c35239dd fix tests? 2022-12-13 14:10:22 +01:00
Joffrey JAFFEUX
291701034c fix tests 2022-12-13 13:51:17 +01:00
Joffrey JAFFEUX
8e91c9cc92 bootstrap with a different user 2022-12-13 11:56:21 +01:00
Joffrey JAFFEUX
792fcb2e01 ensures composer is expanded 2022-12-13 10:38:02 +01:00
Martin Brennan
51c3166c67
Merge branch 'main' into dev/chat-transcript-system-spec 2022-12-13 18:20:29 +10:00
Martin Brennan
8676a55c83
DEV: Fix resolvedTimezone deprecation in chat-live-pane (#19436)
c.f. 7d7551adfc
2022-12-13 18:20:15 +10:00
Martin Brennan
aa9b945be1
Merge branch 'main' into dev/chat-transcript-system-spec 2022-12-13 16:12:05 +10:00
Martin Brennan
e4fe322fa4
DEV: Move chat transcript tests into system specs
We are all in on system specs, so this commit moves all
the chat quoting acceptance tests (some of which have been
skipped for a while) into system specs.
2022-12-13 15:42:11 +10:00
Martin Brennan
8b3c6cd396
DEV: Fix github workflow system spec screenshot location (#19435)
These screenshots are located at paths like:

/__w/discourse/discourse/tmp/capybara/failures_r_spec_example_groups_quoting_chat_message_transcripts_copying_quote_transcripts_with_the_clipboard_quotes_multiple_chat_messages_into_a_topic_134.png

not /tmp/screenshots. This should fix the issue. Also makes plugin system specs
use documentation format and profile.
2022-12-13 15:36:30 +10:00
Jarek Radosz
f9bdda84ca
DEV: Admin webhooks interface issues (#19360)
1. The events table had broken styling, making each row overflow
2. It had confusing routes: `/:id` for "edit" and `/:id/events` for "show" (now it's `/:id/edit` and `/:id` respectively)
3. There previously was an unused backend action (`#edit`) - now it is used (and `web_hooks/:id/events` route has been removed)
4. There was outdated/misplaced/duplicated CSS
5. And more
2022-12-13 01:53:08 +01:00
Martin Brennan
4001e6f174
DEV: Delete tmp table from migration for invites (#19431)
Follow up a414520742
2022-12-13 10:17:25 +10:00
Alan Guo Xiang Tan
0abd772098
DEV: Pass in site guardian for Plugin::Instance.register_site_categories_callback (#19430)
The guardian is useful for plugins to determine if the callback should
do anything. A common use case is to not do anything in the callback if
the user is anonymous.
2022-12-13 07:49:13 +08:00
Martin Brennan
3ee4b59c64
DEV: Use guardian user for can_chat? (#19418)
Instead of passing `user` to `guardian.can_chat?`, we
can just use the inner `@user` that is part of the guardian
instance already to determine whether that user can chat,
since this is how it works for all other usages of guardian
even within chat.
2022-12-13 09:14:17 +10:00
Blake Erickson
de53cf7657
FEATURE: Add chat and sidebar toggles to the setup wizard (#19347)
* FEATURE: Add chat and sidebar toggles to the setup wizard

- Fix css alighnment
- Add Enable Chat Toggle
- Add Enable Sidebar Toggle

* Check for the chat plugin

* Account for new sidebar step

* update chat and sidebar description

* UI: add checkmark as a visual indicator that it is enabled

* use new navigation_memu site setting for enabling the sidebar

* fix tests

* Add tests

* Update lib/wizard/step_updater.rb

Use HEADER_DROPDOWN instead of LEGACY

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>

* Fix spec. Use HEADER_DROPDOWN instead of LEGACY

Co-authored-by: Ella <ella.estigoy@gmail.com>
Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2022-12-12 14:30:21 -07:00
dependabot[bot]
a03b2cd469
Build(deps): Bump excon from 0.94.0 to 0.95.0 (#19429)
Bumps [excon](https://github.com/excon/excon) from 0.94.0 to 0.95.0.
- [Release notes](https://github.com/excon/excon/releases)
- [Changelog](https://github.com/excon/excon/blob/master/changelog.txt)
- [Commits](https://github.com/excon/excon/compare/v0.94.0...v0.95.0)

---
updated-dependencies:
- dependency-name: excon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-12 22:29:50 +01:00
Kris
c748bee0f5
FIX: more specific class name to avoid collision (#19428) 2022-12-12 15:02:51 -05:00
Kris
1719075352
UX: include space between elements in kbd tag (#19427) 2022-12-12 13:53:48 -05:00
Kris
9d03f207fa
UX: more consistent style for the new topic banner (#19405) 2022-12-12 12:56:25 -05:00
Gerhard Schlager
3eafa39aeb REFACTOR: Remove updated strings from locale files and translation overrides 2022-12-12 17:01:04 +01:00
Gerhard Schlager
a13b7f36c8 REFACTOR: Reformat Message Format strings for better readability
@discourse-translator-bot keep_translations_and_approvals
2022-12-12 17:01:04 +01:00
Gerhard Schlager
15f98f727a REFACTOR: Replace unnecessary Message Format string 2022-12-12 17:01:04 +01:00
Gerhard Schlager
03f0b4f54b REFACTOR: Replace concatenated strings to simplify translation 2022-12-12 17:01:04 +01:00
Gerhard Schlager
d059c64485 REFACTOR: Update Message Format string to simplify translation 2022-12-12 17:01:04 +01:00
Gerhard Schlager
584abbda54 REFACTOR: Update Message Format string to simplify translation 2022-12-12 17:01:04 +01:00
Bianca Nenciu
17b7ab0d7b
FIX: Make sure generated tsqueries are valid (#19368)
The tsquery used for searching is generated using both functions from
Ruby and Postgresql (for example, unaccent function). Depending on the
term used, it generated an invalid tsquery. For example "can’t"
generated "''can''t''" instead of "''can''''t''".
2022-12-12 17:57:20 +02:00
Jarek Radosz
19214aff18
DEV: Clean up all message bus subscriptions (#19268)
1. "What Goes Up Must Come Down" – if you subscribe to message bus, make sure you also unsubscribe
2. When you unsubscribe - remove only your subscription, not **all** subscriptions on given channel

Attempt #2. The first attempt tried to extend a core `@bound` method in new-user-narrative plugin which did not work. I reworked that plugin in the meantime. This new PR also cleans up message bus subscriptions in now core-merged chat plugin.
2022-12-12 16:32:25 +01:00
Jarek Radosz
93a4012ecb
DEV: Drop helper context setup in tests (#19423) 2022-12-12 15:20:48 +01:00
jbrw
1a48ea767e
DEV: Allow additional TopicList preloaded associations (#18891)
This provides a means to allow additional associations to be preloaded when generating a TopicList.
2022-12-12 09:08:13 -05:00
Jarek Radosz
2a4fea4372
FIX: Multipart uppy upload regression in 80e422c (#19424) 2022-12-12 13:39:40 +01:00