discourse/plugins/chat/spec
Joffrey JAFFEUX 53b96638c5
DEV: implements <Chat::Navbar /> (#24917)
This new navbar component is used for every navbar in chat, full page or drawer, and any screen.

This commit also uses this opportunity to correctly decouple drawer-routes from full page routes. This will avoid having this kind of properties in components: `@includeHeader={{false}}`. The header is now defined in the parent template using a navbar. Each route has now its own template wrapped in a div of the name of the route, eg: `<div class="c-routes-threads">..</div>`.

The navbar API:

```gjs
<Navbar as |navbar|>
 <navbar.BackButton />
 <navbar.Title @title="Foo" />
 <navbar.ChannelTitle @channel={{@channel}} />
 <navbar.Actions as |action|>
   <action.CloseThreadButton />
 </navbar.Actions>
</navbar>
```

The full list of components is listed in `plugins/chat/assets/javascripts/discourse/components/navbar/index.gjs` and `plugins/chat/assets/javascripts/discourse/components/navbar/actions.gjs`.

Visually the header is not changing much, only in drawer mode the background has been removed.

This commit also introduces a `<List />` component to facilitate rendering lists in chat plugin.
2023-12-18 17:49:58 +01:00
..
components/chat FEATURE: add grace period for chat edits (#23800) 2023-10-23 16:40:30 +08:00
fabricators FEATURE: my threads page (#24771) 2023-12-11 07:38:07 +01:00
integration DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
jobs DEV: Fix chat notifier deprecation warnings from job arguments (#24708) 2023-12-05 18:03:30 +08:00
lib FIX: Do not display chat replies as threads in transcripts (#24768) 2023-12-15 09:50:43 -03:00
mailers FIX: correctly uses private_email site setting in chat (#24528) 2023-11-23 15:54:22 +01:00
models DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00
policies/chat/channel DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
queries/chat DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
requests FEATURE: my threads page (#24771) 2023-12-11 07:38:07 +01:00
serializer DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
services FEATURE: my threads page (#24771) 2023-12-11 07:38:07 +01:00
support DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00
system DEV: implements <Chat::Navbar /> (#24917) 2023-12-18 17:49:58 +01:00
validators COPY: secure media -> secure uploads (#24643) 2023-11-30 14:58:55 +10:00
plugin_helper.rb FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
plugin_spec.rb COPY: secure media -> secure uploads (#24643) 2023-11-30 14:58:55 +10:00