Show participant number for anonymous_animal, add informal name formatting#1054
Show participant number for anonymous_animal, add informal name formatting#1054rasmi wants to merge 8 commits intoPAIR-code:mainfrom
Conversation
| export interface ProfileStageConfig extends BaseStageConfig { | ||
| kind: StageKind.PROFILE; | ||
| profileType: ProfileType; | ||
| informalNameStyle?: boolean; // e.g., "bear123" instead of "Bear 1002" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
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:
informalNameStyleoption which displays names asbear123.