@open-mercato/ui 0.6.7-develop.6862.1.c11a64ce0a → 0.6.7-develop.6869.1.d1ce9999ea
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/AiChat.js +5 -5
- package/dist/ai/AiChat.js.map +2 -2
- package/dist/ai/LoopDisabledBanner.js +1 -1
- package/dist/ai/LoopDisabledBanner.js.map +2 -2
- package/dist/ai/parts/ConfirmationCard.js +4 -4
- package/dist/ai/parts/ConfirmationCard.js.map +2 -2
- package/dist/ai/parts/FieldDiffCard.js +2 -2
- package/dist/ai/parts/FieldDiffCard.js.map +2 -2
- package/dist/ai/parts/MutationResultCard.js +3 -3
- package/dist/ai/parts/MutationResultCard.js.map +2 -2
- package/dist/ai/ui-parts/pending-phase3-placeholder.js +1 -1
- package/dist/ai/ui-parts/pending-phase3-placeholder.js.map +2 -2
- package/dist/backend/PerspectiveSidebar.js +1 -1
- package/dist/backend/PerspectiveSidebar.js.map +2 -2
- package/dist/backend/custom-fields/FieldDefinitionsManager.js +1 -1
- package/dist/backend/custom-fields/FieldDefinitionsManager.js.map +2 -2
- package/dist/backend/dashboard/DashboardScreen.js +3 -3
- package/dist/backend/dashboard/DashboardScreen.js.map +2 -2
- package/dist/backend/filters/AdvancedFilterPanel.js +1 -1
- package/dist/backend/filters/AdvancedFilterPanel.js.map +2 -2
- package/dist/backend/inputs/ComboboxInput.js.map +1 -1
- package/dist/backend/messages/EmailThreadsPanel.js +1 -1
- package/dist/backend/messages/EmailThreadsPanel.js.map +2 -2
- package/dist/backend/version-history/VersionHistoryPanel.js +1 -1
- package/dist/backend/version-history/VersionHistoryPanel.js.map +2 -2
- package/dist/primitives/ErrorNotice.js +1 -1
- package/dist/primitives/ErrorNotice.js.map +2 -2
- package/dist/primitives/Notice.js +1 -1
- package/dist/primitives/Notice.js.map +1 -1
- package/package.json +3 -3
- package/src/ai/AiChat.tsx +6 -6
- package/src/ai/LoopDisabledBanner.tsx +1 -1
- package/src/ai/parts/ConfirmationCard.tsx +4 -4
- package/src/ai/parts/FieldDiffCard.tsx +2 -2
- package/src/ai/parts/MutationResultCard.tsx +3 -3
- package/src/ai/ui-parts/pending-phase3-placeholder.tsx +2 -2
- package/src/backend/PerspectiveSidebar.tsx +1 -1
- package/src/backend/custom-fields/FieldDefinitionsManager.tsx +1 -1
- package/src/backend/dashboard/DashboardScreen.tsx +3 -3
- package/src/backend/filters/AdvancedFilterPanel.tsx +1 -1
- package/src/backend/inputs/ComboboxInput.tsx +1 -1
- package/src/backend/messages/EmailThreadsPanel.tsx +1 -1
- package/src/backend/version-history/VersionHistoryPanel.tsx +1 -1
- package/src/primitives/ErrorNotice.tsx +1 -1
- package/src/primitives/Notice.tsx +5 -5
|
@@ -476,7 +476,7 @@ export function PerspectiveSidebar({
|
|
|
476
476
|
) : null}
|
|
477
477
|
|
|
478
478
|
{apiWarning ? (
|
|
479
|
-
<Alert
|
|
479
|
+
<Alert status="warning" className="text-xs">{apiWarning}</Alert>
|
|
480
480
|
) : null}
|
|
481
481
|
{error ? <div className="text-sm text-status-error-text">{error}</div> : null}
|
|
482
482
|
</section>
|
|
@@ -355,7 +355,7 @@ export const FieldDefinitionsManager = React.forwardRef<FieldDefinitionsManagerH
|
|
|
355
355
|
return (
|
|
356
356
|
<div className="flex flex-col gap-3 sm:gap-4">
|
|
357
357
|
{statusError ? (
|
|
358
|
-
<Alert
|
|
358
|
+
<Alert status="error">
|
|
359
359
|
<AlertTitle>{t('entities.customFields.errors.title', 'Something went wrong')}</AlertTitle>
|
|
360
360
|
<AlertDescription>{statusError}</AlertDescription>
|
|
361
361
|
</Alert>
|
|
@@ -357,7 +357,7 @@ export function DashboardScreen() {
|
|
|
357
357
|
|
|
358
358
|
if (error && layout.length === 0) {
|
|
359
359
|
return (
|
|
360
|
-
<Alert
|
|
360
|
+
<Alert status="error">
|
|
361
361
|
<AlertTitle>{t('dashboard.unavailable')}</AlertTitle>
|
|
362
362
|
<AlertDescription>{error}</AlertDescription>
|
|
363
363
|
<div className="mt-2"><Button variant="outline" onClick={handleRefresh}>{t('dashboard.retry')}</Button></div>
|
|
@@ -367,7 +367,7 @@ export function DashboardScreen() {
|
|
|
367
367
|
|
|
368
368
|
if (!hasRegisteredWidgets && layout.length === 0) {
|
|
369
369
|
return (
|
|
370
|
-
<Alert
|
|
370
|
+
<Alert status="information">
|
|
371
371
|
<AlertTitle>{t('dashboard.empty.noWidgets.title', 'No dashboard widgets yet')}</AlertTitle>
|
|
372
372
|
<AlertDescription>
|
|
373
373
|
{t(
|
|
@@ -403,7 +403,7 @@ export function DashboardScreen() {
|
|
|
403
403
|
</div>
|
|
404
404
|
|
|
405
405
|
{error && layout.length > 0 && (
|
|
406
|
-
<Alert
|
|
406
|
+
<Alert status="error">
|
|
407
407
|
<AlertTitle>{t('dashboard.error.partial')}</AlertTitle>
|
|
408
408
|
<AlertDescription>{error}</AlertDescription>
|
|
409
409
|
<div className="mt-2"><Button variant="ghost" onClick={handleRefresh}>{t('dashboard.error.reload')}</Button></div>
|
|
@@ -444,7 +444,7 @@ export function AdvancedFilterPanel(props: AdvancedFilterPanelProps) {
|
|
|
444
444
|
)}
|
|
445
445
|
{props.pendingErrors.length > 0 ? (
|
|
446
446
|
<div className="p-3 border-t border-border" data-testid="filter-validation-banner">
|
|
447
|
-
<Alert
|
|
447
|
+
<Alert status="error">
|
|
448
448
|
<AlertDescription>
|
|
449
449
|
{props.pendingErrors.length === 1
|
|
450
450
|
? t('ui.advancedFilter.banner.incomplete', '{count} filter is incomplete — filters won\'t apply until all values are picked.', { count: 1 })
|
|
@@ -241,7 +241,7 @@ export function ComboboxInput({
|
|
|
241
241
|
.finally(() => { if (!cancelled) setLoading(false) })
|
|
242
242
|
}
|
|
243
243
|
return () => { cancelled = true }
|
|
244
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
244
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- resolveDescription intentionally excluded:
|
|
245
245
|
// including it would re-run the effect on every render when the prop is an inline function
|
|
246
246
|
}, [value, disabled, knownLabelValues, coveredOptionValues, eagerResolveLabel, loadSuggestions])
|
|
247
247
|
|
|
@@ -141,7 +141,7 @@ export function EmailThreadsPanel({
|
|
|
141
141
|
{!canCompose && composeDisabledHint ? <div>{composeDisabledHint}</div> : null}
|
|
142
142
|
|
|
143
143
|
{error ? (
|
|
144
|
-
<Alert
|
|
144
|
+
<Alert status="error">
|
|
145
145
|
<AlertDescription>{error}</AlertDescription>
|
|
146
146
|
</Alert>
|
|
147
147
|
) : null}
|
|
@@ -192,7 +192,7 @@ export function VersionHistoryPanel({
|
|
|
192
192
|
) : (
|
|
193
193
|
<div className="space-y-3">
|
|
194
194
|
{shouldAutoCheck && !permissions.isLoading && !permissions.canViewTenant && permissions.currentUserId ? (
|
|
195
|
-
<Alert
|
|
195
|
+
<Alert status="information">
|
|
196
196
|
<AlertDescription>
|
|
197
197
|
{t('audit_logs.hint.view_self_only', 'Showing only your own changes. Contact an administrator for broader access.')}
|
|
198
198
|
</AlertDescription>
|
|
@@ -12,7 +12,7 @@ export function ErrorNotice({ title, message, action }: {
|
|
|
12
12
|
const resolvedTitle = title ?? t('ui.errors.defaultTitle', 'Something went wrong')
|
|
13
13
|
const resolvedMessage = message ?? t('ui.errors.defaultMessage', 'Unable to load data. Please try again.')
|
|
14
14
|
return (
|
|
15
|
-
<Alert
|
|
15
|
+
<Alert status="error">
|
|
16
16
|
<AlertTitle>{resolvedTitle}</AlertTitle>
|
|
17
17
|
<AlertDescription>{resolvedMessage}</AlertDescription>
|
|
18
18
|
{action ? <div className="mt-2">{action}</div> : null}
|
|
@@ -6,12 +6,12 @@ import { createLogger } from '@open-mercato/shared/lib/logger'
|
|
|
6
6
|
const logger = createLogger('ui')
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @deprecated Use <Alert
|
|
9
|
+
* @deprecated Use <Alert status="error|warning|information"> instead.
|
|
10
10
|
* Migration guide: docs/design-system/migration-tables.md#j3-component-mapping
|
|
11
11
|
*
|
|
12
|
-
* Notice variant="error" → Alert
|
|
13
|
-
* Notice variant="warning" → Alert
|
|
14
|
-
* Notice variant="info" → Alert
|
|
12
|
+
* Notice variant="error" → Alert status="error"
|
|
13
|
+
* Notice variant="warning" → Alert status="warning"
|
|
14
|
+
* Notice variant="info" → Alert status="information"
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
const variantStyles = {
|
|
@@ -51,7 +51,7 @@ export function Notice({
|
|
|
51
51
|
compact = false,
|
|
52
52
|
}: NoticeProps) {
|
|
53
53
|
if (process.env.NODE_ENV === 'development') {
|
|
54
|
-
logger.warn('<Notice> is deprecated. Use <Alert
|
|
54
|
+
logger.warn('<Notice> is deprecated. Use <Alert status="error|warning|information"> instead. See: docs/design-system/migration-tables.md')
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
const styles = variantStyles[variant]
|