Skip to content

feat: Add brand hierarchy to brand.json builder - #978

Merged
bokelley merged 2 commits into
mainfrom
bokelley/brand-hierarchy
Feb 7, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/brand-hierarchy

Conversation

@bokelley

@bokelley bokelley commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds two-panel layout (tree navigator + detail editor) for managing brand portfolios with parent-child hierarchy
  • Auto-detects and loads existing brand.json files on domain entry, following house redirects
  • Fixes security issues (XSS), correctness bugs (removeBrand ordering, circular references), and replaces hardcoded hex colors with design system CSS variables

Test plan

  • Open brand.html, enter a domain, select "Multiple brands" → "Parent company domain"
  • Add root brand, add child brands via tree "+" button, verify hierarchy renders
  • Verify generated JSON includes keller_type and parent_brand fields
  • Enter a domain with existing brand.json — verify it loads and populates the builder
  • Verify brand agent form requires both URL and ID before generating JSON
  • Verify all CSS uses design system variables (no hardcoded hex)

🤖 Generated with Claude Code

bokelley and others added 2 commits February 7, 2026 10:20
Add two-panel layout (tree navigator + detail editor) for managing
brand portfolios with parent-child relationships. Key changes:

- Brand tree with visual hierarchy and Keller type badges
- Auto-detect and load existing brand.json files on domain entry
- Follow house redirects to resolve the full portfolio
- Auto-generate brand IDs from brand names
- Brand files dashboard showing required files per domain
- Always-visible parent brand selector for all brand types
- Primary Website field that auto-creates primary property

Also fixes from code review:
- XSS: escape API response data in verifyDeployment()
- XSS: add escapeAttr() for single-quote-safe attribute contexts
- Fix removeBrand ordering (find children before removing parent)
- Prevent infinite loops on circular parent_brand references
- Require both url and id for brand_agent variant per schema
- Replace all hardcoded hex colors with design system CSS variables
- Add missing property types (radio, streaming_audio) to dropdowns

Co-Authored-By: Claude Opus 4.6 <[email protected]>
No protocol version bump needed — UI-only changes to brand.html builder.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@bokelley
bokelley merged commit 208182a into main Feb 7, 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