Skip to content

Commit 98a5076

Browse files
BircckLucki2g
authored andcommitted
fix(website): use columns consistently in UI text
Fixes Azure DevOps bug 125339. Preserve internal identifiers and API names.
1 parent 424ce18 commit 98a5076

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎Website/components/datamodelview/Attributes.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const Attributes = ({ entity, search = "", onVisibleCountChange }: IAttri
187187
<Box className="flex gap-1 md:gap-2 items-center">
188188
<TextField
189189
size="small"
190-
placeholder="Search attributes..."
190+
placeholder="Search columns..."
191191
value={searchQuery}
192192
onChange={(e) => setSearchQuery(e.target.value)}
193193
onKeyDown={(e) => {
@@ -291,10 +291,10 @@ export const Attributes = ({ entity, search = "", onVisibleCountChange }: IAttri
291291
<Box className="flex flex-col items-center gap-1">
292292
<Typography variant="body2">
293293
{searchQuery && typeFilter !== "all"
294-
? `No ${typeFilter === "all" ? "" : typeFilter.replace("Attribute", "")} attributes found matching "${searchQuery}"`
294+
? `No ${typeFilter === "all" ? "" : typeFilter.replace("Attribute", "")} columns found matching "${searchQuery}"`
295295
: searchQuery
296-
? `No attributes found matching "${searchQuery}"`
297-
: `No ${typeFilter === "all" ? "" : typeFilter.replace("Attribute", "")} attributes available`
296+
? `No columns found matching "${searchQuery}"`
297+
: `No ${typeFilter === "all" ? "" : typeFilter.replace("Attribute", "")} columns available`
298298
}
299299
</Typography>
300300
<Button
@@ -309,7 +309,7 @@ export const Attributes = ({ entity, search = "", onVisibleCountChange }: IAttri
309309
</Button>
310310
</Box>
311311
) : (
312-
<Typography variant="body2">No attributes available for this table</Typography>
312+
<Typography variant="body2">No columns available for this table</Typography>
313313
)}
314314
</Box>
315315
) : (

‎Website/components/datamodelview/Keys.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function Keys({ entity, search = "" }: IKeysProps) {
249249
sx={{ color: 'text.primary' }}
250250
>
251251
<Box className="flex items-center">
252-
Key Attributes
252+
Key Columns
253253
<SortIcon column="attributes" />
254254
</Box>
255255
</TableCell>

‎Website/components/datamodelview/List.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export const List = ({ setCurrentIndex, entityActiveTabs }: IListProps) => {
291291
<div className="flex flex-col items-center justify-center h-64 text-gray-500">
292292
<div className="text-lg font-medium mb-2">No tables found</div>
293293
<div className="text-sm text-center">
294-
No attributes match your search for &quot;{search}&quot;
294+
No columns match your search for &quot;{search}&quot;
295295
</div>
296296
</div>
297297
)}

‎Website/components/datamodelview/Section.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const Section = React.memo(
7979
label={
8080
<div className="flex items-center min-w-[120px] sm:min-w-[140px] px-2 py-1 text-xs sm:text-sm">
8181
<SellRounded className="mr-2 h-4 w-4 shrink-0" />
82-
<span className="truncate">Attributes [{visibleAttributeCount}]</span>
82+
<span className="truncate">Columns [{visibleAttributeCount}]</span>
8383
</div>
8484
}
8585
/>

‎Website/components/datamodelview/TimeSlicedSearch.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const TimeSlicedSearch = ({
5858
initialLocalValue,
5959
currentIndex,
6060
totalResults,
61-
placeholder = "Search attributes...",
61+
placeholder = "Search columns...",
6262
onSearchScopeChange,
6363
}: TimeSlicedSearchProps) => {
6464
const searchParams = useSearchParams();
@@ -440,7 +440,7 @@ export const TimeSlicedSearch = ({
440440
className='ml-1 flex-1'
441441
type="text"
442442
placeholder={placeholder}
443-
aria-label="Search attributes in tables"
443+
aria-label="Search columns in tables"
444444
value={localValue}
445445
onChange={handleChange}
446446
onFocus={handleSearchFocus}
@@ -508,7 +508,7 @@ export const TimeSlicedSearch = ({
508508
}}
509509
>
510510
<ToggleButton value={SEARCH_SCOPE_KEYS.COLUMN_NAMES} aria-label="column names">
511-
<Tooltip title="Search in column/attribute names" slotProps={{ popper: { sx: { zIndex: 10001 } } }}>
511+
<Tooltip title="Search in column names" slotProps={{ popper: { sx: { zIndex: 10001 } } }}>
512512
<AbcRounded fontSize="small" />
513513
</Tooltip>
514514
</ToggleButton>

‎Website/components/homeview/HomeView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const HomeView = ({ }: IHomeViewProps) => {
2626
{
2727
image: '/insights.jpg',
2828
title: 'New Search features!',
29-
text: 'Enhanced global search with customizable scope filters—search across attributes, descriptions, data types, relationships, and more. New security role impersonation lets you filter entities by access permissions, making it easy to understand what data different roles can see. All filters are shareable via URL for seamless collaboration.',
29+
text: 'Enhanced global search with customizable scope filters—search across columns, descriptions, data types, relationships, and more. New security role impersonation lets you filter entities by access permissions, making it easy to understand what data different roles can see. All filters are shareable via URL for seamless collaboration.',
3030
type: '(v2.3.1) Feature Update',
3131
actionlabel: 'Try It Now',
3232
action: () => router.push('/metadata')

‎Website/components/insightsview/overview/InsightsOverviewView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ const InsightsOverviewView = ({ }: InsightsOverviewViewProps) => {
850850
}
851851
]}
852852
role="application"
853-
ariaLabel="Attribute process dependencies by detection source"
853+
ariaLabel="Column process dependencies by detection source"
854854
barAriaLabel={e => `${e.id}: ${e.formattedValue}`}
855855
theme={{
856856
background: 'transparent',

‎Website/hooks/useAttributeSelection.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export const useAttributeSelection = (initialMode: AttributeSelectionMode = 'cus
5757
case 'minimal':
5858
return 'Primary key only';
5959
case 'custom-lookups':
60-
return 'Custom lookup attributes';
60+
return 'Custom lookup columns';
6161
case 'all-lookups':
62-
return 'All lookup attributes';
62+
return 'All lookup columns';
6363
case 'custom':
64-
return 'Pick specific attributes';
64+
return 'Pick specific columns';
6565
default:
6666
return '';
6767
}

0 commit comments

Comments
 (0)