Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cluster name from recently viewed topic card #1487

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hemahg
Copy link
Contributor

@hemahg hemahg commented Feb 25, 2025

Remove cluster name from recently viewed topic card
Add topic status to the recently viewed topic card

Screenshot 2025-02-25 at 8 14 15 PM

Signed-off-by: hemahg <hhg@redhat.com>
@@ -177,6 +186,7 @@ export async function setTopicAsViewed(kafkaId: string, topicId: string) {
topicId,
// name is included in the `fields[topics]` param list so we are sure it is present
topicName: topic.attributes.name!,
topicStatus: topic.attributes.status!,
Copy link
Member

Choose a reason for hiding this comment

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

Just something to be aware of is that the topic status in the overview card will always have the status that it had at the point it was last viewed. Are we OK with that? Having the status be up-to-date would require getViewedTopics to be more complex to actually load the topics fresh.

Copy link
Member

Choose a reason for hiding this comment

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

Thinking about this again, maybe it would be better to just list the topic name and not the status to avoid it being stale? What do you think @hemahg @shirimordechay ?

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