Skip to content

feat: add topic page#1110

Open
ThibaudDauce wants to merge 3 commits into
mainfrom
add_topic_page
Open

feat: add topic page#1110
ThibaudDauce wants to merge 3 commits into
mainfrom
add_topic_page

Conversation

@ThibaudDauce
Copy link
Copy Markdown
Contributor

@ThibaudDauce ThibaudDauce commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@maudetes maudetes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you ✨

page_size: datasetsPageSize.value,
topic: props.topic.id,
}))
const { data: datasets } = await useAPI<PaginatedArray<DatasetV2>>('/api/2/datasets/', { query: datasetsQuery })
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

datasets use api/2/ list endopint when reuses use search endpoint? Shouldn't we use the same logic between the two?
We could also use api/2/topics/<topic_id>/elements/?class=<Reuse,Dataset>?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TopicElement will give us more information yes. But do we want to use this specific endpoint if we only show the cards?

Will look into why search vs index

Comment thread utils/discussions.ts
Comment on lines +37 to +39
if ('elements' in subject) {
return subject.page
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure about this check. Isn't the following condition enough?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's enough when the udata PR is merged. It's only required to test right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants