maiki
(maiki)
5 أغسطس 2025، 8:10م
1
The AI bot icon in the header is implemented as a button element. Since the AI bot now navigates to a dedicated page rather than opening a modal, please convert the AI bot icon to a standard link (<a>
element) like the chat icon.
This would allow browser link interactions, such as context-clicking to open in a new tab.
5 إعجابات
maiki
(maiki)
13 أغسطس 2025، 10:02م
3
Thanks @awesomerobot !
committed 11:12PM - 07 Aug 25 UTC
This change concerns these header icons
<img width="220" height="116" alt="imag… e"
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)
I was not aware it was an option to have it dedicated, and you made it work in either mode.
I just surprised myself when opening the AI interface in a different tab here on Meta!
إعجابَين (2)
ah yes forgot to follow-up, thanks! new tabs for all
إعجاب واحد (1)
maiki
(maiki)
تم إغلاقه في
16 أغسطس 2025، 11:02م
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.