Skip to content

Conversation

@DJJones66
Copy link
Contributor

✨ 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: ui

    • Type: object

    • Default Value:

      { "text": "Powered by BrainDrive", "link": "https://community.braindrive.ai" }
    • Scopes: system, user

  • Added a default user-level setting entry for powered_by_settings.

Frontend (Sidebar.tsx)

  • Introduced useSettings integration to load powered_by_settings.

  • Added logic to parse both stringified JSON and object values.

  • Defined a PoweredBy type with default fallback values.

  • Rendered a footer component at the bottom of the sidebar:

    • Displays the powered-by text.
    • Wraps it in a link (<a>) opening in a new tab.
    • Styled using MUI Box with divider border and caption typography.

✅ Benefits

  • Allows administrators to configure branding for the sidebar footer without code changes.
  • Default value ensures the app always has a clear “Powered by BrainDrive” attribution.
  • Cleaner UI structure: navigation scrolls independently, footer remains fixed at the bottom.

📸 Visual Overview

  • Before: Sidebar contained navigation only.
  • After: Sidebar includes a footer section displaying “Powered by …” with a link.

🧪 Testing Steps

  1. Run backend migrations/initializer to ensure new setting is applied.

  2. Launch the app and open the sidebar.

  3. Verify default footer shows:

    Powered by BrainDrive
    

    linking to https://community.braindrive.ai.

  4. Change the powered_by_settings value in settings:

    { "text": "Powered by ExampleCorp", "link": "https://example.com" }
  5. Reload UI → confirm new text and link are displayed.


📎 Related Context

  • Enhances system branding and customization.
  • Prepares groundwork for future UI theming and organizational branding features.

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.

2 participants