Skip to content

Real MGPL logo, sign-in without a lab code, lab switching - #2

Merged
BackStacked merged 3 commits into
mainfrom
claude/project-thread-ovi2jd
Nov 10, 2026
Merged

BackStacked merged 3 commits into
mainfrom
claude/project-thread-ovi2jd

Conversation

@BackStacked

@BackStacked BackStacked commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Real logo

Replaces the placeholder drop icon with the real MGPL Diagnostics logo, copied unchanged from mgpl-diagnostics/website.

  • public/logo*.svg: the full lockup on sign-in, and the compact one in the header with "Dashboard" from sm up.
  • app/favicon.ico and app/apple-icon.png: the website's icons.
  • components/Brand.tsx: shows the light or dark file with darkHidden / lightHidden. There are no CSS filters on the logo.

Sign-in without a lab code

  • The api finds the lab from email and password, so the Lab code field is gone.
  • When one email and password match several labs (ORG_REQUIRED), sign-in shows Choose a lab. The list comes from extensions.organizations (api PR, auth-kit 1.5.0).
  • The text field stays as the fallback for an api that doesn't send the list.
  • NEXT_PUBLIC_MGPL_ORG_CODE is now empty by default.

Switching labs

  • The account menu lists the person's labs (myOrganizations) and ticks the current one.
  • Picking another lab calls switchOrganization, with no password; the owner chose this.
  • After a switch, every cached query resets and the app goes to Today with a "Now in …" notice.
  • Search (Ctrl K) offers "Switch to …" for the same labs.
  • lib/labs.ts uses mgpl.request, the same way lib/reports.ts does. So this works on client 1.4 and on an api without these fields; there it shows no switcher. After client 1.5.0 it can move to mgpl.auth.organizations / switchOrganization / organizationChoices.

Depends on (for the lab list and switching only)

Checks

  • typecheck, lint and build pass.
  • Logo screenshots are correct in light, dark and phone views.
  • Against a mock api with the new schema, on desktop and phone:
    • single-lab sign-in needs no code;
    • two-lab sign-in shows the pick list, and picking a lab signs in;
    • the account menu lists both labs with the current one ticked;
    • switching shows the other lab;
    • search offers the switch.

🤖 Generated with Claude Code

https://claude.ai/code/session_018jBohk4otGVRjt3Y1cF1N2

Copies public/logo*.svg, app/favicon.ico and app/apple-icon.png from
mgpl-diagnostics/website. Brand now shows the compact lockup in the header
and the full lockup on sign-in, with the drawn dark variants in dark mode
(no CSS filters, per the website's design system).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018jBohk4otGVRjt3Y1cF1N2
The Lab code field is gone from sign-in. The api already resolves the lab
from email and password; the field appears only when it answers
ORG_REQUIRED (one email in several labs). NEXT_PUBLIC_MGPL_ORG_CODE is now
empty by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018jBohk4otGVRjt3Y1cF1N2
@BackStacked BackStacked changed the title Use the real MGPL logo from the website repo Real MGPL logo, and sign-in without a lab code Nov 9, 2026
- When one email and password match several labs, sign-in shows a "Choose a
  lab" list (from ORG_REQUIRED's extensions.organizations) instead of a code
  field; the code field stays as the fallback for an api without the list.
- The account menu lists the person's labs (myOrganizations) with the current
  one ticked; picking another calls switchOrganization (no password), resets
  every cached query and goes to Today. Search (Ctrl K) offers the same.
- lib/labs.ts uses mgpl.request, so it works on client 1.4 and on an api
  without these fields (then there is no switcher).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018jBohk4otGVRjt3Y1cF1N2
@BackStacked BackStacked changed the title Real MGPL logo, and sign-in without a lab code Real MGPL logo, sign-in without a lab code, lab switching Nov 9, 2026
@BackStacked
BackStacked merged commit fd109f2 into main Nov 10, 2026
1 check passed
@BackStacked
BackStacked deleted the claude/project-thread-ovi2jd branch November 10, 2026 13:01
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