Skip to content

#2008 reference delete#21

Open
jamlung-ri wants to merge 7 commits into
mainfrom
#2008-reference-delete
Open

#2008 reference delete#21
jamlung-ri wants to merge 7 commits into
mainfrom
#2008-reference-delete

Conversation

@jamlung-ri
Copy link
Copy Markdown
Member

@jamlung-ri jamlung-ri commented May 5, 2026

Linked Issue

Closes #2008

Summary

See ticket

@jamlung-ri jamlung-ri requested a review from snyaggarwal May 5, 2026 15:41
@jamlung-ri jamlung-ri self-assigned this May 5, 2026
Copy link
Copy Markdown
Contributor

@snyaggarwal snyaggarwal left a comment

Choose a reason for hiding this comment

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

UI Issues:

Image 1. Button label needs to be title case and not upper case 2. There is no need to tell "0 mappings" same as what we show in listing
Image 1. When there are multiple references selected the dialog is not saying much, should be show distribution here?
Image 1. In Reference details -> actions -> delete is not implemented

Comment thread src/components/search/Search.jsx Outdated
- Added delete confirmation dialog for references in ReferenceHome component.
- Updated ReferenceHeader to handle delete action.
- Improved ReferenceManagementList to conditionally enable delete button with tooltip.
- Adjusted translations for delete confirmation messages.
- Updated package dependencies in package.json and package-lock.json.
@jamlung-ri
Copy link
Copy Markdown
Member Author

Thanks @snyaggarwal! I pushed some more changes. I didn't do the distribution part though, since I don't have a good sense of the value. I think we can defer it to later, but open to discussion.

Comment thread src/components/search/Search.jsx Outdated

const getCollectionLookupUrl = url => (url || '').replace(/\/(concepts|mappings|references)\/?$/, '/')

const isHeadCollectionUrl = url => {
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.

this is still fragile.
Ideal way would be to pass repo as prop from RepoHome to Search component
and here in Search check when props.nested is true then props.repo.version

@jamlung-ri
Copy link
Copy Markdown
Member Author

Thanks Sunny! Changes pushed!

@jamlung-ri
Copy link
Copy Markdown
Member Author

@snyaggarwal

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.

CTA / Reference / Delete

2 participants