discourse/plugins/chat/test/javascripts/components
Kris 98d594a7b3
FEATURE: AI header icon should remember last URL (#34108)
This change concerns these header icons

<img width="220" height="116" alt="image"
src="https://github.com/user-attachments/assets/eb7883cf-4766-4499-8d1a-116a542a2cdd"
/>


Currently the chat icon in the header switches to chat "mode" when
possible, and remembers your last forum location. The AI header icon
does not remember your last forum location, and just redirects you to
the homepage when you toggle it off.

This PR adds the last forum URL memory for the AI header icon as well. 
 
I've also updated the AI header icon to be a link when
`ai_bot_enable_dedicated_ux` is enabled, this way it can be opened in a
new tab and do all the typical link behavior (requested here:
https://meta.discourse.org/t/change-ai-bot-icon-to-link-element/377435).
It is still a button when `ai_bot_enable_dedicated_ux`, which is
appropriate for opening the composer.

This also updates the AI button title when the state changes (noted
here:
https://meta.discourse.org/t/ai-bot-header-button-title-doesnt-always-match-its-action/377402)
2025-08-08 09:12:22 +10:00
..
channel-icon-test.gjs DEV: Replace remaining uses of query helper (#30019) 2025-01-22 00:25:03 +01:00
channel-name-test.gjs DEV: Update lint-configs and autofix issues (#31620) 2025-03-05 01:20:16 +01:00
channel-title-test.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
chat-channel-card-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-channel-leave-btn-test.gjs DEV: Introduce experimental viewport-based mobile mode (#32859) 2025-05-23 13:01:04 +01:00
chat-channel-metadata-test.gjs FIX: chat: shows placeholder instead of timer for empty chats (#33105) 2025-06-09 15:59:04 +08:00
chat-channel-preview-card-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-channel-row-test.gjs DEV: Introduce experimental viewport-based mobile mode (#32859) 2025-05-23 13:01:04 +01:00
chat-channel-status-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-channel-test.gjs DEV: Fix small issues in the Glimmer Post Stream (#32656) 2025-05-09 12:17:28 -03:00
chat-composer-dropdown-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-composer-message-details-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-composer-placeholder-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-composer-upload-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-composer-uploads-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-emoji-avatar-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-header-icon-test.gjs FEATURE: AI header icon should remember last URL (#34108) 2025-08-08 09:12:22 +10:00
chat-message-avatar-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-message-collapser-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-message-info-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-message-left-gutter-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-message-reaction-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-message-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-message-text-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-modal-archive-channel-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-modal-delete-channel-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-modal-move-message-to-channel-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-notices-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-replying-indicator-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-retention-reminder-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-retention-reminder-text-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-thread-header-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-thread-heading-test.gjs DEV: [gjs-codemod] convert second batch of files to gjs 2025-03-19 10:20:56 +00:00
chat-thread-list-item-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-thread-participants-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-upload-test.gjs FIX: Chat video thumbnails in Safari (#33199) 2025-06-13 13:04:35 -06:00
chat-user-avatar-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-user-card-button-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-user-display-name-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
chat-user-info-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
collapser-test.gjs DEV: [gjs-codemod] apply codemod 2025-04-02 13:44:15 +01:00
rich-editor-extension-test.gjs FEATURE: Implement chat transcripts in rich editor (#31819) 2025-03-31 14:04:22 +10:00
thread-settings-test.gjs DEV: Update lint-configs and autofix issues (#31620) 2025-03-05 01:20:16 +01:00