Hide LeetCode names in interviews by default

Merged
JI
5d ago
+112-34

Honor the lobby's source visibility choice on the interview page. Previously, the lobby hid published names while the interview still showed the LeetCode: line. Read the existing preference through a shared storage helper and pass an explicit showSources value into the pure renderer. Storage failures default to off, while reports and history keep their existing behavior.

Closes #201


Summary by cubic

Honors the lobby's source visibility choice on the interview page. Previously the lobby hid published names while the interview still showed the LeetCode: line. The published name now hides by default and appears only when the lobby toggle is on, via a shared SHOW_SOURCES_KEY storage helper and an explicit showSources option passed to the pure renderer. Storage failures default to off, while reports and history keep their existing behavior. Closes #201.

Tests

  • Browser tests confirm the interview hides or shows the published name based on the toggle.
  • Renderer tests cover hiding published titles by default and showing them only with showSources.