Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds customizable branding to the SDS Gateway to distinguish different deployment instances, along with front-end improvements and a critical debouncing fix for capture search. The branding system allows operators to configure institution names, site identifiers, and optional branding images through environment variables, which are then displayed in the navbar, page titles, and homepage.
Changes:
- Fixed search debouncing using AbortController to cancel stale requests and prevent race conditions
- Added branding system with configurable site names, institution names, and optional branding images
- Improved UI consistency across captures and datasets pages with better visual hierarchy
- Added vertical dividers in navbar and restricted authenticated-only links to authenticated users
Reviewed changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| gateway/sds_gateway/context_processors.py | Added branding context processor to expose branding settings to all templates |
| gateway/sds_gateway/test_context_processors.py | Added tests for the new branding context processor |
| gateway/config/settings/base.py | Defined branding settings and helper function to resolve brand image paths |
| gateway/config/settings/production.py | Added SDS_SITE_FQDN to ALLOWED_HOSTS |
| gateway/config/settings/local.py | Added SDS_SITE_FQDN to ALLOWED_HOSTS |
| gateway/.envs/example/django.env | Added example branding environment variables for development |
| gateway/.envs/example/django.prod-example.env | Added example branding environment variables for production |
| gateway/sds_gateway/templates/base.html | Updated navbar with branding, added vertical dividers, restricted links to authenticated users |
| gateway/sds_gateway/templates/pages/home.html | Added branding display with institution names and optional brand image banner |
| gateway/sds_gateway/templates/pages/about.html | Added optional brand image background to description section |
| gateway/sds_gateway/templates/users/dataset_list.html | Changed title from "My Datasets" to "Datasets" for consistency |
| gateway/sds_gateway/templates/users/partials/my_datasets_tab.html | Updated comments for consistency |
| gateway/sds_gateway/templates/users/file_list.html | Restructured layout, added date auto-fill logic, improved search UI |
| gateway/sds_gateway/static/js/components.js | Implemented AbortController pattern for request cancellation in SearchManager |
| gateway/sds_gateway/static/js/file-list.js | Updated to use AbortController signal, added minimum loading time, improved button state management |
| gateway/sds_gateway/static/css/variables.css | Added homepage color variable for institution highlighting |
| gateway/sds_gateway/static/css/spectrumx_theme.css | Added styles for brand images, navbar branding, and institution highlighting |
| gateway/docs/changelog.md | Added comprehensive deployment instructions for operators |
| .pre-commit-config.yaml | Increased max file size check from default to 1MB |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6dc0f80 to
8e1352c
Compare
81c6993 to
d7f1573
Compare
srucker01
approved these changes
Feb 19, 2026
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.
.envvariables to help distinguishing SDS deployments.