Skip to content

Commit

Permalink
[ui] Add missing empty state, make expanded asset groups less opaque (#…
Browse files Browse the repository at this point in the history
…18241)

## Summary & Motivation

- If you check “only failed and missing”, use the failed and missing
(computed) partition count in the dialog header so you know it work
#17839

- Fix “Source Data: Loading” state when there is no materialization

- Make the white background of expanded asset groups slightly
transparent so that the "dots" grid can just barely be seen.
 
## How I Tested These Changes

Tested these changes visually

---------

Co-authored-by: bengotow <[email protected]>
  • Loading branch information
bengotow and bengotow authored Nov 27, 2023
1 parent 14499e2 commit 5ac3faf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const GroupOutline = styled.div<{$minimal: boolean}>`
inset: 0;
top: 60px;
position: absolute;
background: ${Colors.White};
background: rgba(255, 255, 255, 0.35);
width: 100%;
border-radius: 10px;
border-top-left-radius: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {gql, useQuery} from '@apollo/client';
import {Box, Colors, Icon, MiddleTruncate} from '@dagster-io/ui-components';
import {Box, Caption, Colors, Icon, MiddleTruncate} from '@dagster-io/ui-components';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import React from 'react';
Expand Down Expand Up @@ -155,6 +155,10 @@ export const AssetMaterializationUpstreamData = ({
skip: !timestamp,
});

if (!timestamp) {
return <Caption color={Colors.Gray500}>None</Caption>;
}

const data =
result.data?.assetNodeOrError.__typename === 'AssetNode'
? result.data.assetNodeOrError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ import {
PartitionDefinitionForLaunchAssetFragment,
} from './types/LaunchAssetExecutionButton.types';
import {usePartitionDimensionSelections} from './usePartitionDimensionSelections';
import {
PartitionDimensionSelection,
keyCountInSelections,
usePartitionHealthData,
} from './usePartitionHealthData';
import {PartitionDimensionSelection, usePartitionHealthData} from './usePartitionHealthData';

const MISSING_FAILED_STATUSES = [AssetPartitionStatus.MISSING, AssetPartitionStatus.FAILED];

Expand Down Expand Up @@ -465,7 +461,7 @@ const LaunchAssetChoosePartitionsDialogBody = ({
{target.type === 'pureWithAnchorAsset' ? (
<span /> // we won't know until runtime
) : (
<span>{partitionCountString(keyCountInSelections(selections))}</span>
<span>{partitionCountString(keysFiltered.length)}</span>
)}
</Box>
}
Expand Down

1 comment on commit 5ac3faf

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-pdqitunc7-elementl.vercel.app

Built with commit 5ac3faf.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.