Revamp upload workflow with Git-based submission & UI polish - #16
Merged
hugokallander merged 8 commits intoMar 4, 2026
Merged
Conversation
Upload page (Upload.tsx): - Replace drag-and-drop file upload with Git-based workflow - Show user's own artifacts in collapsible cards with git URL + credentials - "Create New Artifact" creates git-storage artifact in ri-scale/ai-model-hub - Alias derived from model name (clean slug), documented in manifest - Expandable hypha-cli info box with CLI alternative instructions - Token generation with selectable expiry (1h/24h/7d/30d) ArtifactDetails: fix documentation 404 showing raw S3 XML error - Check response.ok before reading body; show friendly placeholder ArtifactGrid: update hero to cover all RI-SCALE domains - Rotating phrases now include climate, space debris, histopathology, SAR - Updated subtitle to mention biomedical, climate, and space science LoginButton: remove BioEngine and Admin Dashboard links from user menu PartnerScroll: make partner section compact (smaller logos, less padding) hyphaStore: sort model listing by last_modified descending (newest first) About.tsx: fix broken EU flag image (spaces in filename → eu-funded-flag.jpg) scripts/seed_models.py: seed 8 representative RI-SCALE models - Biomedical: Cellpose lymph node, colorectal cancer XAI, CT diffusion - Climate: CNN downscaling, LSTM anomaly detection - Space: debris radar classifier, InSAR-UNet deformation - Foundation: BioSAM2 microscopy segmentation CLAUDE.md: add project overview for Claude Code sessions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Completely rewrites Edit.tsx (~2566 lines → ~350 lines): - Remove Monaco editor, RDF editor, drag-and-drop upload, version dialogs - Show collapsible GitInfoBox at top for git-storage artifacts (token generation + authenticated push URL + git commands with LFS setup) - Show read-only model metadata (name, type, version, license, authors, tags) - Show read-only file list with icons and sizes - Show citations if present Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without _rkwargs, the entire config object is passed as a single positional argument instead of keyword arguments, causing the server to receive wrong parameter types and fail with AttributeError. Affects: artifactManager.create, artifactManager.list, server.generateToken Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Edit.tsx: add _rkwargs: true to artifactManager.read and list_files - Upload.tsx: fix generateToken to pass dict as positional config arg (no _rkwargs, matches reference pattern in ws/index.html) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The original 2214x656 PNG was causing slow/broken loads in the tunnel. Resized to 800x237 which is sufficient for 3x retina at 40px navbar height. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The /files/ endpoint returns {items: [...], total, offset, limit}.
Component was setting files to the whole object instead of .items,
causing files.length to be undefined and nothing to render.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Documents _rkwargs pattern, REST pagination, local dev setup, tunnel management, git push remote, and asset size guidelines. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR overhauls the contribution workflow, fixes several UI issues, and improves coverage of RI-SCALE's multi-domain scope.
Upload page — complete rewrite (
Upload.tsx)ri-scale/ai-model-hub; alias is auto-derived from the model name as a clean slughypha artifacts create)documentation: README.mdandformat_versionadded to manifest on creation so docs tab works out-of-the-boxArtifactDetails — fix documentation 404 (
ArtifactDetails.tsx)response.okcheck before reading response body — was rendering raw S3 XML error as documentationREADME.mdHomepage ordering (
hyphaStore.ts)last_modified>(newest first)Homepage hero (
ArtifactGrid.tsx)Partner section (
PartnerScroll.tsx)User menu (
LoginButton.tsx)About page (
About.tsx)eu-funded-flag.jpgwith URL-safe filenameSeed script (
scripts/seed_models.py)CLAUDE.md
Test plan
npx tsc --noEmit)DISABLE_ESLINT_PLUGIN=true npm run build)order_by=last_modified>https://hypha.aicell.io/ri-scale/artifacts/ai-model-hub/children🤖 Generated with Claude Code