PR: Add “Powered By” Branding to Settings and Sidebar #60
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.
✨ PR: Add “Powered By” Branding to Settings and Sidebar
Summary
This PR introduces a configurable “Powered By” footer in the application’s UI. The text and link are now defined in settings and rendered at the bottom of the sidebar, ensuring both flexibility and consistency across environments.
🔧 Changes Made
Backend (
settings_initializer.py)Added a new setting definition
powered_by_settings:Category:
uiType:
objectDefault Value:
{ "text": "Powered by BrainDrive", "link": "https://community.braindrive.ai" }Scopes:
system,userAdded a default user-level setting entry for
powered_by_settings.Frontend (
Sidebar.tsx)Introduced
useSettingsintegration to loadpowered_by_settings.Added logic to parse both stringified JSON and object values.
Defined a
PoweredBytype with default fallback values.Rendered a footer component at the bottom of the sidebar:
<a>) opening in a new tab.Boxwith divider border and caption typography.✅ Benefits
📸 Visual Overview
🧪 Testing Steps
Run backend migrations/initializer to ensure new setting is applied.
Launch the app and open the sidebar.
Verify default footer shows:
linking to
https://community.braindrive.ai.Change the
powered_by_settingsvalue in settings:{ "text": "Powered by ExampleCorp", "link": "https://example.com" }Reload UI → confirm new text and link are displayed.
📎 Related Context