Closed shnizzedy closed 3 years ago
@shnizzedy -- where in the database would {greeting} be stored? That's the part I wanted to look at.
@binarybottle when an invitation is created, a displayName
can be included. If one is,
the invitation starts with that name, eg. "Arno, you have been…". Otherwise, the invitation starts with a captial-y "You have been…".
― https://github.com/ChildMindInstitute/MindLogger-bug-reports/issues/45#issue-525989920
greeting
is just a kwarg for the str.format
method that checks for a displayName
in the invitation and conditionally includes before "ou have been" either (true
) that name, a comma, and a 'y' or (false
) a 'Y':
Invitations are created with POST /applet/{id}/invite
Okay, so I could simply add some text preceding this, for example: "Welcome! "
I just added a PR (#239) to update some of the text.
I recommend adding space above "Description" and making it boldface in:
Welcome Arno; you have been invited by Jon (jon.clucas@childmind.org) to Healthy Brain Network self-report internal test on MindLogger. Description
:point_up_2: @henryrossiter
It doesn't look like there is a scope of work here any longer so closing
Additional context Ideally, we'd do #16 and store all of this text in language-tagged Objects in the database, but time constraints have negated that possibility for now. The method that currently assembles that HTML is
Invitation().htmlInvitation
.In the sample invitation below, the sources of the text are highlighted as follows:
htmlInvitation
methodThe yellow sections, in sequence:
displayName
, say "Arno", the invitation starts with that name, eg. "Arno, you have been…". Otherwise, the invitation starts with a captial-y "You have been…".All of the markup is included in the
htmlInvitation
method.