@@ -105,48 +262,99 @@ export function Artifacts() {
) : null}
-
- {KIND_FILTERS.map((filter) => (
-
- ))}
+
+
+ {KIND_FILTERS.map((filter) => (
+
+ ))}
+
+
+
+
+
+
+
+ Group by
+ {GROUP_OPTIONS.map((option) => (
+ selectGroupBy(option.value)}
+ className="justify-between"
+ >
+ {option.label}
+ {groupBy === option.value ? : null}
+
+ ))}
+
+
+ {viewingSelectedStack ? (
+
+
+
+ All stacks
+
+ {selectedGroup ? (
+
+ {selectedGroup.issue.identifier}{" "}
+ {selectedGroup.title}
+
+ ) : null}
+
+ ) : null}
+
{error &&
{error.message}
}
{isLoading ? (
- ) : artifacts.length === 0 ? (
-
+ ) : items.length === 0 ? (
+
) : (
<>
- {artifacts.map((artifact) => (
-
- ))}
+ {showGroupCards
+ ? groups.map((group) => (
+
+ ))
+ : artifacts.map((artifact) => (
+
+ ))}
{isFetchingNextPage