Skip to content

Show participant number for anonymous_animal, add informal name formatting#1054

Open
rasmi wants to merge 8 commits intoPAIR-code:mainfrom
rasmi:profile-id
Open

Show participant number for anonymous_animal, add informal name formatting#1054
rasmi wants to merge 8 commits intoPAIR-code:mainfrom
rasmi:profile-id

Conversation

@rasmi
Copy link
Copy Markdown
Collaborator

@rasmi rasmi commented Mar 11, 2026

Closes #1048

Always include random numeric ID in anonymous animal profile names, making them look more like usernames (e.g., "Bear 1002") instead of the current format which only appends a sequential number on collision (e.g., "Bear", "Bear 2"). This aligns behavior with ANONYMOUS_PARTICIPANT appraoch (e.g. "Participant 1002") and uses the same random number already generated for the public ID and anonymous participant profiles. This is now default behavior for new experiments going forward.

Also:

  • Changes the quickstart to use anonymous animal profiles instead of open-form profiles.
  • Adds a new informalNameStyle option which displays names as bear123.
  • Nicer profile stage editor UI.
Screenshot 2026-03-11 at 3 53 30 PM

@rasmi rasmi changed the title Add showParticipantNumber option. Show participant number for anonymous_animal, add informal name formatting Mar 11, 2026
export interface ProfileStageConfig extends BaseStageConfig {
kind: StageKind.PROFILE;
profileType: ProfileType;
informalNameStyle?: boolean; // e.g., "bear123" instead of "Bear 1002"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nullable boolean is confusing. Can we make it a regular bool and migrate all the old experiments? Or at least make it look like a bool to the API, and document here that null is for old experiments.

>
</md-checkbox>
<span
>Use informal name style (e.g., bear123 or participant123)</span
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I were an experimenter encountering this for the first time, I'd be confused about what exactly I was choosing between. If this is informal, then what's formal? I think a radio button form would be better-suited here, so we could put examples on each row.

Though also, I don't have all the context here, but does it really make sense to give experimenters exactly this granularity of control over name formatting? Are experimenters asking to change the name formatting, and if so, why only two options?

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.

Change pseudonymous animal avatar names to be more username coded (e.g. Iguana1234).

2 participants