Skip to content

fix: broken logos, portrait access, and router tool set enforcement - #1696

Merged
bokelley merged 4 commits into
mainfrom
bokelley/fix-broken-logos
Mar 25, 2026
Merged

bokelley merged 4 commits into
mainfrom
bokelley/fix-broken-logos

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Logo carousel: Fixed height 28px for consistent sizing, prefer logo_url_dark on dark background, hide broken images with text fallback
  • Portrait generation: Founding/invoice members can now generate portraits (checks member profile existence, not just Stripe subscription)
  • Router security: LLM-returned tool sets are filtered against valid permitted sets, preventing non-admin users from receiving admin tools when the LLM hallucinates them

Test plan

  • Verify logo carousel renders consistently sized logos on homepage
  • Verify broken logo URLs show text fallback instead of broken image
  • Verify founding member can access portrait generation
  • Verify non-admin user routing doesn't include admin tool set

🤖 Generated with Claude Code

bokelley and others added 4 commits March 26, 2026 06:56
Fixed height 28px for all logos instead of variable max-height, prefer
logo_url_dark on the dark carousel background, and hide broken images
with a text fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- isPaidMember checks member profile existence (not just Stripe
  subscription), so founding/invoice members can generate portraits
- Router now filters LLM-returned tool sets against valid permitted
  sets, preventing non-admin users from receiving admin tools even
  when the LLM hallucinates them

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Members with only a dark logo variant were filtered out of the carousel
entirely because the filter only checked logo_url.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The test lives in tests/addie/ which Jest picks up. Reverting from
vitest import back to @jest/globals so it runs correctly under Jest.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@bokelley
bokelley merged commit fa3210a into main Mar 25, 2026
11 checks passed
@bokelley
bokelley deleted the bokelley/fix-broken-logos branch March 25, 2026 22:53
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