REFACTOR: handles every chat resource as an URL (#18961)

- Note this is also tweaking the UI a little bit as we are now using links/buttons in the header as needed
- It disables the find ideal channel in drawer mode, if loading `/chat` in drawer mode it will either reopen at the last position or just stay on index
This commit is contained in:
Joffrey JAFFEUX
2022-11-11 06:39:15 +01:00
committed by GitHub
parent 4db5525d25
commit 66130dc8c1
60 changed files with 639 additions and 759 deletions

View File

@ -136,7 +136,6 @@ acceptance("Discourse Chat - Composer - unreliable network", function (needs) {
});
test("Sending a message with unreliable network", async function (assert) {
this.chatService.set("chatWindowFullPage", false);
await visit("/chat/channel/11/-");
await fillIn(".chat-composer-input", "network-error-message");
await click(".send-btn");
@ -174,7 +173,6 @@ acceptance("Discourse Chat - Composer - unreliable network", function (needs) {
});
test("Draft with unreliable network", async function (assert) {
this.chatService.set("chatWindowFullPage", false);
await visit("/chat/channel/11/-");
this.chatService.set("isNetworkUnreliable", true);
await settled();