Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include subject on all PL Certificates #35211

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Conversation

molly-moen
Copy link
Contributor

We previously only included a workshop subject on PL certificates for CSF courses. This change adds including subject on all PL certificates. Previously we also always added "Workshop" at the end of the subject for certificates, in this change don't add "Workshop" if the subject already contains the word "workshop" or if it is teachercon.
New certificates look like this:
Screen Shot 2020-06-08 at 1 50 05 PM
Screen Shot 2020-06-08 at 1 48 09 PM
Screen Shot 2020-06-08 at 1 32 22 PM

Links

Testing story

Validated that certificates render correctly on Chrome, Firefox and Safari. Also updated unit tests to reflect change.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@molly-moen molly-moen requested a review from a team June 8, 2020 21:52
[
{
string: workshop.course_name,
y: -10,
Copy link
Member

Choose a reason for hiding this comment

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

Will the removal of this part have an impact on any certificates that previously used a y of -10?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding could be incorrect, but I think it is ok because we always use the same certificate png, and the reason it was y of -10 for just the course name is we were centering the course name in the blank space, but for the new version we have two lines at y = -30 and y = 65 (course name and subject).

Copy link
Member

Choose a reason for hiding this comment

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

Ah, this is a workshop-specific renderer, so should be fine.

@molly-moen molly-moen merged commit be7aa11 into staging Jun 9, 2020
@molly-moen molly-moen deleted the molly/pl-certificates branch June 9, 2020 15:23
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.

None yet

2 participants