Repository navigation
Real MGPL logo, sign-in without a lab code, lab switching - #2
Merged
Merged
Conversation
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
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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" fromsmup.app/favicon.icoandapp/apple-icon.png: the website's icons.components/Brand.tsx: shows the light or dark file withdarkHidden/lightHidden. There are no CSS filters on the logo.Sign-in without a lab code
ORG_REQUIRED), sign-in shows Choose a lab. The list comes fromextensions.organizations(api PR, auth-kit 1.5.0).NEXT_PUBLIC_MGPL_ORG_CODEis now empty by default.Switching labs
myOrganizations) and ticks the current one.switchOrganization, with no password; the owner chose this.lib/labs.tsusesmgpl.request, the same waylib/reports.tsdoes. 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 tomgpl.auth.organizations/switchOrganization/organizationChoices.Depends on (for the lab list and switching only)
myOrganizations,switchOrganizationand the pick listChecks
🤖 Generated with Claude Code
https://claude.ai/code/session_018jBohk4otGVRjt3Y1cF1N2