Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default class AiConversationInvite extends Component {

get participants() {
const participants = [
...this.header.topicInfo.details.allowed_users,
...this.header.topicInfo.details.allowed_groups,
...(this.header.topicInfo.details?.allowed_users ?? []),
...(this.header.topicInfo.details?.allowed_groups ?? []),
];
return participants;
}
Expand Down
27 changes: 27 additions & 0 deletions spec/system/ai_bot/homepage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,33 @@
before { SiteSetting.glimmer_post_stream_mode = value }

context "when glimmer_post_stream_mode=#{value}" do
context "when mobile", mobile: true do
it "allows navigating from AI conversation to regular topic, and loads new post stream" do
regular_topic = Fabricate(:topic)
regular_post = Fabricate(:post, topic: regular_topic)

post_url = Topic.relative_url(regular_topic.id, regular_topic.slug)
post_with_link =
Fabricate(
:post,
topic: pm,
user: user,
post_number: 4,
raw: "This is a second reply by the user [link](#{post_url})",
)

topic_page.visit_topic(pm)
page.find(
"article[data-post-id='#{post_with_link.id}'] .cooked a[href='#{post_url}']",
).click

try_until_success do
expect(topic_page.current_topic).to eq(regular_topic)
expect(page).to have_css("article[data-post-id='#{regular_post.id}']")
end
end
end

context "when `ai_bot_enable_dedicated_ux` is enabled" do
it "allows uploading files to a new conversation" do
ai_pm_homepage.visit
Expand Down
Loading