Skip to content

Conversation

@molly-moen
Copy link
Contributor

Legacy projects put the project title in the page title for standalone projects. We never made this update for lab2 projects, so they currently will say <Title of Standalone Level> - Code.org, for example Python lab says New Python Lab Project - Code.org. This updates lab2 levels to instead say <Project Title> - <Friendly Lab Name> - Code.org, which a suffix on code.org if we are in a non-prod environment (as our other page titles do).

Before

Screenshot 2026-01-05 at 12 49 04 PM

After

Screenshot 2026-01-05 at 12 49 31 PM

Links

PR Creation Checklist:

  • Tests provide adequate coverage
  • Privacy impacts have been documented
  • Security impacts have been documented
  • 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
  • Follow-up work items (including potential tech debt) are tracked and linked

@molly-moen molly-moen requested review from a team and sanchitmalhotra126 January 5, 2026 20:50
Copy link
Contributor

@sanchitmalhotra126 sanchitmalhotra126 left a comment

Choose a reason for hiding this comment

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

Nice! One comment about the Music Dance AI project logic

projectManager = ProjectManagerFactory.getProjectManager(channelId);
projectManager = ProjectManagerFactory.getProjectManager(
channelId,
levelProperties.isProjectLevel || false
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just pass false here actually - these sub-project managers are used by the individual tabs in the Music Dance AI project so we can support writing/reading from multiple different projects at once, but there's still an overall project manager for the whole Music Dance AI project in Lab2Registry. If we pass true here, I think we risk the sub-projects overwriting the page title.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh gotcha, will update!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to have the other project manager creation in this file use the level property still, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the other should be false too since it's also a "sub-project" project manager (I think the other only pertains to non-standalone projects anyway)

Copy link
Contributor

@sanchitmalhotra126 sanchitmalhotra126 left a comment

Choose a reason for hiding this comment

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

LGTM!

@molly-moen molly-moen merged commit fc62638 into staging Jan 5, 2026
6 checks passed
@molly-moen molly-moen deleted the molly/lab2-project-title branch January 5, 2026 22:57
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.

2 participants