Skip to content

Gateway: give the Add to Microsoft Teams button its logo, and name platforms consistently (CHOO-4633) - #2252

Open
christian-mcdermott wants to merge 1 commit into
mainfrom
work/gateway-platform-logos
Open

christian-mcdermott wants to merge 1 commit into
mainfrom
work/gateway-platform-logos

Conversation

@christian-mcdermott

Copy link
Copy Markdown
Collaborator

On Messaging apps, the Add to Slack, Discord and Telegram buttons each carry the platform's logo, but Add to Microsoft Teams had none. The section drew those logos from copies bundled into the gateway, and nobody had added Teams to that list. The rest of the page already draws every platform's logo as the server serves it (/collaborations/types), so I switched the Add buttons over to the same source. Teams gets its logo, and so will any platform added later. The bundled copies were byte-for-byte the served ones, so I deleted them.

I then audited the gateway for the same kind of gap, meaning places where one platform is treated differently from the others because it was left off a hard-coded list. Logos turned out to be the only gap. Platform names had three more:

  • People's "Seen on" column title-cased the key, so a Teams person read "SandboxAQ (Teams)". It now says "Microsoft Teams", like everywhere else.
  • The delete-connection prompt and the new-room messaging app picker showed the raw key ("Contoso (teams)", "Slack (slack)"). They now use the platform's name, and the picker doesn't repeat it for an app named after its platform ("Slack", not "Slack (Slack)"), the same rule Your accounts already follows.
  • platformLabel title-cased WhatsApp and Rocket.Chat into "Whatsapp" and "Rocketchat". Both are now spelled as the server spells them.

The Telegram claim dialog moved from titleCase to platformLabel too. Nothing changes on screen today, but it can't drift. Gateway build and the full suite pass locally (1299 tests). The new test checks that the Teams button draws the logo the server serves.

🤖 Generated with Claude Code

…atforms consistently

The Add buttons on Messaging apps drew logos bundled into the gateway,
and only Slack's, Discord's and Telegram's were there, so Teams' button
had none. They now draw each platform's logo as Switch serves it, the way
the rest of the page already does, so a platform added later is not left
without one; the bundled copies, identical to the served ones, are gone.

An audit for the same kind of gap found platform names shown three other
ways: the People page's "Seen on" title-cased the key ("Teams"), and the
delete-connection prompt and the new-room messaging app picker showed it
raw ("teams"). All three, and the Telegram claim dialog, now use the
platform's own name, and the picker no longer repeats it for an app named
after its platform. WhatsApp and Rocket.Chat are spelled as the server
spells them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@christian-mcdermott

Copy link
Copy Markdown
Collaborator Author

Verification of Teams logo:
image

Verification of Switch Rooms deployment:
image
image

This branch has not been deployed

No deployments
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.

1 participant