Skip to content

fix: content proposal broken due to missing title column in users table#1295

Merged
bokelley merged 4 commits into
mainfrom
bokelley/addie-escalation-cleanup
Mar 1, 2026
Merged

fix: content proposal broken due to missing title column in users table#1295
bokelley merged 4 commits into
mainfrom
bokelley/addie-escalation-cleanup

Conversation

@bokelley

@bokelley bokelley commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Root cause

getUserInfo queried SELECT first_name, last_name, title, email FROM users but the users table (migration 079_users_table.sql) has no title column.

Test plan

🤖 Generated with Claude Code

bokelley and others added 4 commits March 1, 2026 13:29
…itle)

The users table has never had a title column, causing all content
submissions via propose_content to fail with "column 'title' does not exist".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix logo not rendering on profile cards and member directory: hosted
  brand.json may have logos at the top level (simple format) rather
  than nested under brands[0] (house_portfolio). Apply the same
  brands[0] -> top-level fallback pattern everywhere brand data is
  read from hosted_brands (http.ts x3, member-profiles.ts).

- Fix has_manifest false negative in resolve_brand tool: when
  resolveBrand() returns null (e.g. AAO-hosted brands whose
  authoritative_location pointer chain doesn't resolve via
  validateDomain), check hosted_brands as a fallback before
  discovered brands. Hosted brands have a real manifest so
  has_manifest is always true.

- Fix authoritative_location redirect in BrandManager: use hostname
  only when following the redirect (was using hostname + pathname,
  creating nonsensical URLs that validateDomain can't handle).

- Fix Set up brand link going to dashboard instead of brand setup:
  existing members sent to /onboarding?step=brand get redirected to
  /dashboard by the onboarding flow's hasCompanyOrgs guard. Link
  now goes directly to /brand/builder which is the correct tool.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Revert brand-manager.ts authoritative_location change — it does not
  fix the redirect chain for hosted brands (still returns null). The
  fallback in brand-tools.ts is the correct fix; the manager change
  only added a misleading comment.
- Fix brand-tools.ts comment: "Check hosted brands first" → "before
  falling back to the discovered-brand registry"
- Remove dead authorTitle = undefined in content.ts — replace with
  inline null at the two call sites

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bokelley bokelley force-pushed the bokelley/addie-escalation-cleanup branch from daa7a34 to 764a359 Compare March 1, 2026 18:29
@bokelley bokelley merged commit 8b0affc into main Mar 1, 2026
6 checks passed
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