Skip to content

Commit 3d042c9

Browse files
authored
misc fixes (#716)
* fix: add missing "copy" button to stack's name * fix: open "set this stack" by default * fix: link to "artifact store" stack component from artifact overview
1 parent 00d74e3 commit 3d042c9

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/app/stacks/columns.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function useStackColumns(): ColumnDef<Stack>[] {
2828
<StackSheet stackName={name} stackId={id}>
2929
<h2 className="text-text-md font-semibold">{name}</h2>
3030
</StackSheet>
31+
<CopyButton copyText={name}></CopyButton>
3132
</div>
3233
<div className="flex items-center gap-1">
3334
<p className="text-text-xs text-theme-text-secondary">{id.split("-")[0]}</p>

src/components/artifacts/artifact-node-sheet/DetailCards.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export function DataCard({ artifactVersionId }: Props) {
183183
...componentQueries.componentDetail(artifactStoreId!),
184184
enabled: !!artifactStoreId
185185
});
186+
const artifactStoreHref: string = routes.components.detail(artifactStoreId || "");
186187

187188
if (isArtifactVersionError) {
188189
return <ErrorFallback err={artifactVersionError} />;
@@ -208,14 +209,16 @@ export function DataCard({ artifactVersionId }: Props) {
208209
value={
209210
<>
210211
{isStoreSuccess ? (
211-
<Tag
212-
emphasis="subtle"
213-
rounded={false}
214-
color="grey"
215-
className="text-theme-text-primary"
216-
>
217-
{storeData?.name}
218-
</Tag>
212+
<Link target="_blank" to={artifactStoreHref}>
213+
<Tag
214+
emphasis="subtle"
215+
rounded={false}
216+
color="grey"
217+
className="text-theme-text-primary"
218+
>
219+
{storeData?.name}
220+
</Tag>
221+
</Link>
219222
) : (
220223
<Skeleton className="h-6 w-12" />
221224
)}

src/components/stacks/Sheet/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function StackSetCommand({ name }: StackSetCommandProps) {
164164

165165
return (
166166
<section className="px-5 pt-5">
167-
<CollapsibleCard title={<span className="text-text-lg">Set this stack</span>}>
167+
<CollapsibleCard title={<span className="text-text-lg">Set this stack</span>} initialOpen>
168168
<ul className="space-y-5">
169169
<li className="space-y-2">
170170
<div className="flex items-center gap-2">

0 commit comments

Comments
 (0)