Skip to content

refactor(frontend): share how a CSV download writes an answer - #428

Merged
sabinem merged 4 commits into
mainfrom
feat/csv-links-and-answers
Nov 6, 2026
Merged

sabinem merged 4 commits into
mainfrom
feat/csv-links-and-answers

Conversation

@sabinem

@sabinem sabinem commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

More about each person in the participant downloads

Organizers can now see what participants answered at registration and where they are online without opening each profile. The participants download now includes the registration answers. Both downloads, on Manage Participants and on Manage Teams, now include each person's GitHub, LinkedIn and Renku links.

Before, the participants download had only email, name, status and role, and neither file had the links.

  • New columns in the participants download: GitHub, LinkedIn, Renku, then one column per question.
  • New columns in the teams download: github, linkedin, renku. Upload still reads only user_id, project and team.
  • A link someone hasn't set is an empty cell. A tick-box answer is Yes or No in both files.
  • Frontend only: the backend already sends the links.

Left out: if the answers can't be loaded, the file still downloads with the answer columns empty, and nothing in it says so. The teams download already behaved this way.

The team assignment export turned answers into cells inline: one per
question key, a tick-box as Yes or No. The participant roster is about
to write the same answers, so the formatting moves next to
answersByParticipant as answerCells, and both files will read alike.
An organizer downloading the participant roster or the team assignment
now gets each person's GitHub, LinkedIn and Renku link, one column per
site, empty where none is set. The backend already sends them on every
user, so nothing new is fetched.

The roster's rows move into $lib/utils/participantCsv.ts so the file has
tests like the other CSVs. The team file's links are context only: the
upload still reads nothing but user_id, project and team.
The participant roster download gains one column per registration
question, headed by its label, as the team assignment download already
has. Answers are written through answerCells, so a tick-box reads Yes or
No in both files.

Fetched as the team download fetches them: if the answers cannot be
read, the file still downloads with those columns empty.

Adds the CHANGELOG entry for this and the profile links, and mentions
both in the Manage Participants and Manage Teams guides.
Nobody in the fixture had a GitHub, LinkedIn or Renku link, so the new
link columns in the participant downloads were empty on a fresh seed.
bob now has GitHub only, charles and dana all three, alice none, so each
state shows. Set as each user through UserService.Edit, as the Account
page does, with handles that are the fixture's own.
@sabinem
sabinem merged commit 10a5fba into main Nov 6, 2026
4 checks passed
@sabinem
sabinem deleted the feat/csv-links-and-answers branch November 6, 2026 10:59
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