diff --git a/src/components/console/views/ModelErrors.svelte.test.ts b/src/components/console/views/ModelErrors.svelte.test.ts index 94afd9a1e8..7a554b617a 100644 --- a/src/components/console/views/ModelErrors.svelte.test.ts +++ b/src/components/console/views/ModelErrors.svelte.test.ts @@ -16,6 +16,7 @@ describe('Model Errors Console', () => { { error: JSON.stringify({ error: 'This is an error' }), error_message: 'This is a Test Error', + pending: false, success: false, }, ], diff --git a/src/components/model/ModelForm.svelte b/src/components/model/ModelForm.svelte index 60523d678f..12eb49991c 100644 --- a/src/components/model/ModelForm.svelte +++ b/src/components/model/ModelForm.svelte @@ -1,9 +1,12 @@
@@ -164,7 +200,25 @@ {/if} {#if modelId} - +
+ + {#if modelHasExtractionError} + + {/if} +
@@ -207,7 +261,25 @@ row-gap: 8px; } + .model-jar-label { + display: grid; + grid-template-columns: auto min-content; + } + .model-status-full { margin: 8px 0; } + + button.icon-button { + align-items: center; + background: none; + border: none; + color: var(--st-primary-70); + cursor: pointer; + display: flex; + } + + button.icon-button:hover { + color: var(--st-primary-100); + } diff --git a/src/components/model/ModelStatusRollup.svelte.test.ts b/src/components/model/ModelStatusRollup.svelte.test.ts index 6c8d18d9e1..ac24ecb8af 100644 --- a/src/components/model/ModelStatusRollup.svelte.test.ts +++ b/src/components/model/ModelStatusRollup.svelte.test.ts @@ -18,6 +18,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: testError, + pending: false, success: false, }, ], @@ -40,6 +41,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: testError, + pending: false, success: false, }, ], @@ -62,6 +64,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: testError, + pending: false, success: false, }, ], @@ -78,7 +81,14 @@ describe('Model Status Rollup', () => { props: { mode: 'rollup', model: { - refresh_activity_type_logs: [], + refresh_activity_type_logs: [ + { + error: null, + error_message: null, + pending: true, + success: false, + }, + ], refresh_model_parameter_logs: [], refresh_resource_type_logs: [], }, @@ -97,6 +107,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -104,6 +115,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -111,6 +123,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -130,6 +143,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -137,6 +151,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: 'Test Error', + pending: false, success: false, }, ], @@ -144,6 +159,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -164,6 +180,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: testError, + pending: false, success: false, }, ], @@ -186,6 +203,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: testError, + pending: false, success: false, }, ], @@ -208,6 +226,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: testError, + pending: false, success: false, }, ], @@ -224,9 +243,30 @@ describe('Model Status Rollup', () => { props: { mode: 'iconOnly', model: { - refresh_activity_type_logs: [], - refresh_model_parameter_logs: [], - refresh_resource_type_logs: [], + refresh_activity_type_logs: [ + { + error: '', + error_message: '', + pending: true, + success: false, + }, + ], + refresh_model_parameter_logs: [ + { + error: '', + error_message: '', + pending: true, + success: false, + }, + ], + refresh_resource_type_logs: [ + { + error: '', + error_message: '', + pending: true, + success: false, + }, + ], }, }, }); @@ -243,6 +283,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -250,6 +291,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -257,6 +299,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -276,6 +319,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], @@ -283,6 +327,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: 'Test Error', + pending: false, success: false, }, ], @@ -290,6 +335,7 @@ describe('Model Status Rollup', () => { { error: '', error_message: '', + pending: false, success: true, }, ], diff --git a/src/components/model/Models.svelte b/src/components/model/Models.svelte index cfe9b1c3fb..17de4e85b5 100644 --- a/src/components/model/Models.svelte +++ b/src/components/model/Models.svelte @@ -3,6 +3,7 @@