Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/optimize UI #67

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions packages/components/src/components/Alert/package-relation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,24 @@ export const PackageRelationAlert: React.FC<PackageRelationAlertProps> = ({
</div>
}
value={sizeStr}
tooltip={`The bundle size of "${name}" is ${sizeStr}, this is source size.`}
tooltip={`Source Size: The sum of the source size of the package used in this project.`}
type="error"
/>
<Bdg
label="Bundled size"
value={parsedSizeStr || 'CONCATENATED'}
tooltip={`The bundle size of "${name}" is ${sizeStr}, this is after bundled, concatenated module cannot get bundled size. `}
tooltip={
<div style={{ color: 'white' }}>
<h3>Notice</h3>
<Space direction="vertical">
{
parsedSizeStr
? <text> - Bundled Size: The sum of the final size in bundled artifacts of the package used by the project.</text>
: <text> - CONCATENATED: This package bundled size is 0. This package maybe packaged as an concatenated modules or shaken by tree.</text>
}
</Space>
</div>
}
type="error"
/>
</Space>
Expand Down