Skip to content

refactor(frontend): enhanced submission form - #389

Merged
sabinem merged 6 commits into
mainfrom
feat/enhance-submission-form
Nov 2, 2026
Merged

sabinem merged 6 commits into
mainfrom
feat/enhance-submission-form

Conversation

@sabinem

@sabinem sabinem commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Teams can describe their submission, not just link it

  • A team at a hackathon wants to hand in more than a repository: slides, a demo video, a few paragraphs on what they built. Organizers and voters need to see all of it.

Before, a submission had a single box that took a link or free-text notes, so teams squeezed everything into it.

Now, a submission stores a repository link, a link to a folder of attachments, and a description. This branch brings those three fields to the frontend.

  • Teams get three fields in the submission form: repository link, attachments folder link, and a description with formatting. A new version starts filled in from the previous one, so fixing one link means retyping nothing. Both links must start with https://. A version with all three fields empty is refused.
  • Organizers see all three fields on Manage Submissions, for the current entry, any newer draft, and earlier versions. Descriptions are folded behind a toggle so the list stays easy to scan. The CSV download gains an "Attachments" column.
  • Anyone viewing a team's page, voters included, sees the final entry's attachments link and full description.
  • Every page now renders a submission through one component, SubmissionContent, so all of them make the same call about which links to make clickable. The repository field may hold plain notes from before links were required; those still show as text, never as a link.

Deliberately left out

  • The description is not in the CSV. It is formatted text meant to be read on the page, not in a spreadsheet cell.
  • The voting screen still shows only team and project. The repository link already reaches it in the data but has never been displayed there; that is a separate decision.
  • The backend field is still called result. Renaming it to repository_url is planned for after the hackathon. The frontend already uses the new name and maps it in one place, so the rename will be a one-line change.

The backend now uses `result` for the repository URL and plans to rename
it `repository_url` after the hackathon. Map it once in
`submissionVersions` so the frontend already uses the new name, and the
rename becomes a one-line change here.

No behaviour change: the export header still reads "Result".
@sabinem sabinem changed the title refactor(frontend): call a submission's result its repository URL refactor(frontend): enhanced submission form Nov 2, 2026
The Manage Submissions export only carried the repository link. Add an
"Attachments" column just before "Result", which stays last because an
older version may hold a paragraph of notes there.

The description is deliberately not exported: it is Markdown meant to be
read on the page, not in a spreadsheet cell.
Move the repository link, attachments link and description rendering
out of the team's submissions page into SubmissionContent, so the
organizer overview and the team card can show the same three fields
the same way. No visible change on the submissions page.
Organizers only saw a version's repository link. Render every version
through SubmissionContent, so the attachments link and description show
too. The description is folded behind a toggle: the page lists every
team, and one long description would push the rest out of view.
The team page's entry showed only the repository link. Pass the
attachments link and description through from the load and render the
entry with SubmissionContent, description in full: the page shows one
team, and is where a voter goes to read its entry.
@sabinem
sabinem merged commit 310e5e8 into main Nov 2, 2026
4 checks passed
@sabinem
sabinem deleted the feat/enhance-submission-form branch November 2, 2026 20:07
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.

1 participant