Skip to content

Add zip-contents hint to the Add Dataset/Program upload form - #2566

Merged
Didayolo merged 1 commit into
codalab:zip-content-hint-dataset-uploadfrom
pyxelr:feature/zip-content-hint-dataset-upload
Oct 2, 2026
Merged

Didayolo merged 1 commit into
codalab:zip-content-hint-dataset-uploadfrom
pyxelr:feature/zip-content-hint-dataset-upload

Conversation

@pyxelr

@pyxelr pyxelr commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

A common organizer mistake is zipping a scoring program, ingestion program or dataset with the files nested inside a subfolder rather than at the zip root. Codabench does not accept that layout, and the upload gives no indication of why. Organizers usually only find out after the submission fails.

This adds an inline hint to the Add Dataset/Program modal stating the root-level requirement, naming the files a program bundle needs, and linking to the docs that explain what each data type is for.

What changed

One file, nine lines, static markup only:

  • src/static/riot/datasets/management.tag — a <p class="form-note"> between the Type dropdown and the file input in the dataset_creation_modal form.

The modal is shared by every entry in the Type dropdown (public data, input data, reference data, scoring program, ingestion program, …), so the hint is shown for all of them rather than only for programs.

Notes for review

  • .form-note is not a new class. It is already used twice in src/static/riot/datasets/create.tag and its style block is compiled into the same riot.js bundle, which Riot 3 injects globally — so the hint picks up the existing muted-italic treatment with no new CSS.
  • No JavaScript, no tag options, no API or model changes. Nothing in the upload path is touched.
  • The added markup contains no {}, so there are no accidental Riot expressions.
  • The docs link points at the #data-types-and-their-role anchor of the Competition Bundle Structure page, which is where the meaning of each type is described.

Happy to reword the copy if you would prefer it shorter or placed elsewhere in the form.

Explains that the zip file must contain files directly at its root
(not nested in a subfolder), and links to the Competition Bundle
Structure docs for what each dataset/program type means. This helps
organizers avoid a common mistake when uploading scoring programs,
ingestion programs, and datasets.
@pyxelr
pyxelr force-pushed the feature/zip-content-hint-dataset-upload branch from b2a99f1 to 61819ea Compare September 24, 2026 14:03
@Didayolo
Didayolo changed the base branch from develop to zip-content-hint-dataset-upload October 2, 2026 09:17
@Didayolo
Didayolo merged commit 609a7a2 into codalab:zip-content-hint-dataset-upload Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants