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

feat(catalog): add Link to tags and other fields in AboutCard #24445

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

Conversation

deshmukhmayur
Copy link
Contributor

Hey, I just made a Pull Request!

Added a Link component to the tags, lifecycle and type fields in the AboutContent inside AboutCard.

This makes the fields clickable and navigates the user to the catalog index page, with preselected filters.

Resolves #24213

Screen Shot 2024-04-22 at 18 55 27

image

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@github-actions github-actions bot added the area:catalog Related to the Catalog Project Area label Apr 22, 2024
@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Apr 22, 2024

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/plugin-catalog plugins/catalog minor v1.20.0-next.2

@deshmukhmayur
Copy link
Contributor Author

My bad. I think this should probably be a minor version bump, not a patch. Updated the changeset again.

Copy link
Contributor

github-actions bot commented Apr 22, 2024

Uffizzi Ephemeral Environment - Virtual Cluster

☁️ deploying cluster pr-24445

⚙️ Updating now by workflow run 8785304417.

Download the Uffizzi CLI to interact with the upcoming virtual cluster
https://docs.uffizzi.com/install

@deshmukhmayur
Copy link
Contributor Author

Hello, any update on this?
cc. @awanlin

Copy link
Collaborator

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @deshmukhmayur, over all this looks good but I'm deferring final say to the Maintainers. I did leave two comments though

@@ -99,6 +103,16 @@ export function AboutContent(props: AboutContentProps) {
});
const ownedByRelations = getEntityRelations(entity, RELATION_OWNED_BY);

function getPathForFilter(filter: string, value: string) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Best I can tell there is nothing that's actually testing this function, can we make sure to add tests for this, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see the existing unit tests only test for text content, so I didn't make any changes to that.

I'll try to add tests for the links and other functions.

yarn.lock Outdated Show resolved Hide resolved
Added a Link component to the tags, lifecycle and type fields in the AboutContent inside AboutCard.

This makes the fields clickable and navigates the user to the catalog index page, with preselected filters.

Signed-off-by: Mayur Deshmukh <deshmukhmayur@outlook.com>
@deshmukhmayur deshmukhmayur force-pushed the feat-about-card-external-links branch from 3a6d839 to bb2a6dd Compare May 8, 2024 08:29
@benjdlambert
Copy link
Member

Ping @deshmukhmayur did you manage to get round to having a look at adding some tests? 🙏

@deshmukhmayur
Copy link
Contributor Author

Hey @benjdlambert , I got busy with other work so haven't had the chance to add the tests yet. Will work on it as soon as I get some time by next couple of weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:catalog Related to the Catalog Project Area
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Making the tags clickable in the AboutCard Component
4 participants