Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@purnimagarg1
Copy link
Collaborator

Linear ticket:
https://linear.app/acryl-data/issue/CH-758/hide-current-property-in-dropdown-for-replace-in-summary-elements

Description:
This hides the current property that is clicked from the replace menu items in properties header on the asset summary tab.
It gives a better experience to the user as giving an option to replace a property with the same one doesn't make much sense.

Screenshots:

image image

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Sep 23, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Sep 23, 2025
@codecov
Copy link

codecov bot commented Sep 23, 2025

Bundle Report

Changes will increase total bundle size by 382 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
datahub-react-web-esm 28.57MB 382 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: datahub-react-web-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-*.js 382 bytes 18.92MB 0.0%

Files in assets/index-*.js:

  • ./src/app/entityV2/summary/properties/property/properties/BaseProperty.tsx → Total Size: 3.75kB

  • ./src/app/entityV2/summary/properties/property/properties/utils.ts → Total Size: 814 bytes

@codecov
Copy link

codecov bot commented Sep 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Comment on lines 87 to +89
const menuItems = usePropertyMenuItems(position, property.type);

const filteredItems = filterCurrentItemInReplaceMenu(menuItems, property);
Copy link
Collaborator

Choose a reason for hiding this comment

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

i wonder if userPropertyMenuItems could handle this filtering logic for us instead of in this component here? if so that could be a nice followup

@chriscollins3456 chriscollins3456 merged commit f2d3380 into master Oct 7, 2025
26 of 27 checks passed
@chriscollins3456 chriscollins3456 deleted the pg--ch-758-hide-current-property-replace-dropdown branch October 7, 2025 18:18
yoonhyejin pushed a commit that referenced this pull request Oct 9, 2025
alplatonov pushed a commit to alplatonov/datahub that referenced this pull request Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Label for PRs that need review from a maintainer. product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants