Fix circular dependency resolution by switching to artifact-centric display
- Add artifact: prefix handling in resolve_dependencies for direct artifact ID references, enabling dependency resolution for tagless artifacts - Refactor PackagePage from tag-based to artifact-based data display - Add PackageArtifact type with tags array for artifact-centric API responses - Update download URLs to use artifact:ID prefix when no tags exist - Conditionally show "View Ensure File" only when artifact has tags
This commit is contained in:
@@ -3,8 +3,8 @@ import {
|
||||
Package,
|
||||
Tag,
|
||||
TagDetail,
|
||||
Artifact,
|
||||
ArtifactDetail,
|
||||
PackageArtifact,
|
||||
UploadResponse,
|
||||
PaginatedResponse,
|
||||
ListParams,
|
||||
@@ -276,10 +276,10 @@ export async function listPackageArtifacts(
|
||||
projectName: string,
|
||||
packageName: string,
|
||||
params: ArtifactListParams = {}
|
||||
): Promise<PaginatedResponse<Artifact & { tags: string[] }>> {
|
||||
): Promise<PaginatedResponse<PackageArtifact>> {
|
||||
const query = buildQueryString(params as Record<string, unknown>);
|
||||
const response = await fetch(`${API_BASE}/project/${projectName}/${packageName}/artifacts${query}`);
|
||||
return handleResponse<PaginatedResponse<Artifact & { tags: string[] }>>(response);
|
||||
return handleResponse<PaginatedResponse<PackageArtifact>>(response);
|
||||
}
|
||||
|
||||
// Upload
|
||||
|
||||
Reference in New Issue
Block a user