This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse
Joffrey JAFFEUX 12a18d4d55
DEV: properly namespace chat (#20690)
This commit main goal was to comply with Zeitwerk and properly rely on autoloading. To achieve this, most resources have been namespaced under the `Chat` module.

- Given all models are now namespaced with `Chat::` and would change the stored types in DB when using polymorphism or STI (single table inheritance), this commit uses various Rails methods to ensure proper class is loaded and the stored name in DB is unchanged, eg: `Chat::Message` model will be stored as `"ChatMessage"`, and `"ChatMessage"` will correctly load `Chat::Message` model.
- Jobs are now using constants only, eg: `Jobs::Chat::Foo` and should only be enqueued this way

Notes:
- This commit also used this opportunity to limit the number of registered css files in plugin.rb
- `discourse_dev` support has been removed within this commit and will be reintroduced later

<!-- 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-03-17 14:24:38 +01:00
..
adapters FIX: better chat-api error handling (#19550) 2022-12-21 16:11:35 +01:00
components DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
connectors UX: update user chat preference link for new nav (#20518) 2023-03-03 06:50:47 +08:00
controllers DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
helpers DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
initializers DEV: adds a addChatDrawerStateCallback API (#20640) 2023-03-10 18:49:59 +01:00
lib DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
models FIX: ensures edited message is correctly re-decorated (#20637) 2023-03-10 17:06:13 +01:00
modifiers/chat FIX: improves unread state precision (#20615) 2023-03-09 19:06:33 +01:00
pre-initializers DEV: adds a addChatDrawerStateCallback API (#20640) 2023-03-10 18:49:59 +01:00
routes PERF: various perf improvements of chat-live-pane (#20563) 2023-03-07 18:55:05 +01:00
services DEV: adds a addChatDrawerStateCallback API (#20640) 2023-03-10 18:49:59 +01:00
templates PERF: various perf improvements of chat-live-pane (#20563) 2023-03-07 18:55:05 +01:00
widgets DEV: Pass messageId as a dynamic segment instead of a query param (#20013) 2023-02-01 12:39:23 -03:00
admin-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-route-map.js FEATURE: Chat side panel with threads initial skeleton (#20209) 2023-02-14 11:38:41 +10:00
preferences-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00