feat: add tooltips to tap attribute type selector buttons
Each type option now shows a descriptive tooltip on hover explaining its purpose: Business Object (key identifiers), Correlation (cross-route linking), Event (business events), Custom (general purpose). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -633,11 +633,11 @@ export default function RouteDetail() {
|
|||||||
{ value: 'BOTH', label: 'Both' },
|
{ value: 'BOTH', label: 'Both' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const typeChoices: Array<{ value: TapDefinition['attributeType']; label: string }> = [
|
const typeChoices: Array<{ value: TapDefinition['attributeType']; label: string; tooltip: string }> = [
|
||||||
{ value: 'BUSINESS_OBJECT', label: 'Business Object' },
|
{ value: 'BUSINESS_OBJECT', label: 'Business Object', tooltip: 'A key business identifier like orderId, customerId, or invoiceNumber' },
|
||||||
{ value: 'CORRELATION', label: 'Correlation' },
|
{ value: 'CORRELATION', label: 'Correlation', tooltip: 'Used to correlate related exchanges across routes or services' },
|
||||||
{ value: 'EVENT', label: 'Event' },
|
{ value: 'EVENT', label: 'Event', tooltip: 'Marks a business event occurrence like orderPlaced or paymentReceived' },
|
||||||
{ value: 'CUSTOM', label: 'Custom' },
|
{ value: 'CUSTOM', label: 'Custom', tooltip: 'General-purpose attribute for any other extraction need' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const recentExchangeOptions = useMemo(() =>
|
const recentExchangeOptions = useMemo(() =>
|
||||||
@@ -892,6 +892,7 @@ export default function RouteDetail() {
|
|||||||
<button
|
<button
|
||||||
key={tc.value}
|
key={tc.value}
|
||||||
type="button"
|
type="button"
|
||||||
|
title={tc.tooltip}
|
||||||
className={`${styles.typeOption} ${tapType === tc.value ? styles.typeOptionActive : ''}`}
|
className={`${styles.typeOption} ${tapType === tc.value ? styles.typeOptionActive : ''}`}
|
||||||
onClick={() => setTapType(tc.value)}
|
onClick={() => setTapType(tc.value)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user