powered-by footer: link to smooth-operator GitHub + hide-branding attribute#23
Merged
Conversation
…ribute The full-page header tag and composer footer said 'powered by smooth-operator' as plain text; make it a link to the public smooth-operator repo (opens in a new tab). Add a 'hide-branding' element attribute (hideBranding config key) to hide the branding in both render paths — default shown. The 'Restore my chats' footer affordance is kept independent of the toggle. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 56d4eec The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Problem
The "powered by smooth-operator" branding (the full-page header tag and the composer footer) was plain text — not a link — and there was no way to hide it.
Solution
.poweredtag and the footer branding now link to https://github.com/SmooAI/smooth-operator (verified viagh repo view),target="_blank" rel="noopener noreferrer", styled to inherit the tag's subtle color (no default blue/underline; underline on hover).hide-branding(config keyhideBranding, defaultfalse→ shown), following the existingstart-openpattern (added toOBSERVED, read viahasAttribute, threaded throughresolveConfig). Works declaratively and viaconfigure()/mountChatWidget(). Hides branding in both render paths.hide-brandingin the README attributes table.Verification
pnpm check(typecheck + test + build) all green. Added 5 tests insrc/element.test.tscovering the footer link (href/target/rel), the header tag link, and thehide-brandingtoggle across attribute +configure()paths — 113 tests pass.Attribute:
hide-branding. Config key:hideBranding. GitHub URL: https://github.com/SmooAI/smooth-operator🤖 Generated with Claude Code