discourse/plugins/chat/test/javascripts/components
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
..
channel-title-test.js FEATURE: my threads page (#24771) 2023-12-11 07:38:07 +01:00
chat-channel-card-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-channel-leave-btn-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-channel-metadata-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-channel-preview-card-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-channel-row-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-channel-status-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-channel-test.js DEV: Consistently use kebab-case in service lookups (#24552) 2023-11-25 18:10:10 +01:00
chat-composer-dropdown-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-composer-message-details-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-composer-placeholder-test.js FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
chat-composer-upload-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-composer-uploads-test.js DEV: Remove unnecessary `await settled()` (#24584) 2023-11-28 10:45:20 +01:00
chat-emoji-avatar-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-emoji-picker-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-header-icon-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-message-avatar-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-message-collapser-test.js FEATURE: my threads page (#24771) 2023-12-11 07:38:07 +01:00
chat-message-info-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-message-left-gutter-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-message-reaction-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-message-separator-date-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-message-separator-new-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-message-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-message-text-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-modal-archive-channel-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-modal-delete-channel-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-modal-move-message-to-channel-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-notices-test.js DEV: Consistently use kebab-case in service lookups (#24552) 2023-11-25 18:10:10 +01:00
chat-replying-indicator-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-retention-reminder-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-retention-reminder-text-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-thread-header-test.js DEV: implements <Chat::Navbar /> (#24917) 2023-12-18 17:49:58 +01:00
chat-thread-list-item-test.js FIX: correctly display escaped thread titles (#24159) 2023-10-30 21:06:31 +01:00
chat-thread-participants-test.js DEV: Fix various typos (#24461) 2023-11-20 16:49:49 +01:00
chat-upload-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-user-avatar-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-user-card-button-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-user-display-name-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-user-info-test.js FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
collapser-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
dc-filter-input-test.js DEV: Use `class` attribute instead of `@class` arg (#24804) 2023-12-12 13:09:05 +01:00