Skip to content

feat: customise default theme#9243

Merged
Gnanasundari24 merged 7 commits intomainfrom
customize-default-theme
Sep 9, 2025
Merged

feat: customise default theme#9243
Gnanasundari24 merged 7 commits intomainfrom
customize-default-theme

Conversation

@JeevaRamu0104
Copy link
Contributor

@JeevaRamu0104 JeevaRamu0104 commented Sep 2, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Screen.Recording.2025-09-02.at.4.04.45.PM.mov

FE PR : juspay/hyperswitch-control-center#3505
This pull request makes significant updates to the dashboard configuration and theming system. The main changes include a major refactor of the dashboard.toml file to reorganize endpoints and feature flags, and the introduction of a new dashboard_theme.json file to centralize and modernize theme settings. These changes improve maintainability, flexibility, and clarity in how the dashboard's appearance and features are configured.

Configuration and Feature Management:

  • Refactored config/dashboard.toml:
    • Removed the [default.theme] section and moved theme-related settings to a new JSON file.
    • Updated and reorganized [default.endpoints] with new URLs and additional keys for certificates, analytics, and third-party integrations.
    • Expanded [default.features] with new feature flags (e.g., branding, mixpanel, feedback, global_search, transaction_view, custom_webhook_headers, etc.) and restructured existing flags for better clarity and future scalability.
    • Added [default.merchant_config.whitelist] and [default.merchant_config.blacklist] sections to support granular merchant-specific feature access control.

Theming and UI Customization:

  • Added config/dashboard_theme.json:
    • Introduced a new JSON-based theme configuration with structured settings for colors, sidebar, typography, buttons, borders, and spacing.
    • Centralized all UI theming options to make it easier to update the dashboard's look and feel without modifying TOML files.
    • Provided placeholders for faviconUrl and logoUrl to further support branding customization.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@JeevaRamu0104 JeevaRamu0104 self-assigned this Sep 2, 2025
@JeevaRamu0104 JeevaRamu0104 requested a review from a team as a code owner September 2, 2025 10:42
@semanticdiff-com
Copy link

semanticdiff-com bot commented Sep 2, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  config/dashboard.toml Unsupported file format
  config/dashboard_theme.json  0% smaller
  docker-compose.yml  0% smaller

@JeevaRamu0104 JeevaRamu0104 requested a review from a team as a code owner September 2, 2025 12:21
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Sep 9, 2025
Merged via the queue into main with commit bfdea04 Sep 9, 2025
21 of 25 checks passed
@Gnanasundari24 Gnanasundari24 deleted the customize-default-theme branch September 9, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: customise the default theme

6 participants