Skip to content

feat: Add optional gallery header image #3491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 26, 2025
Merged

feat: Add optional gallery header image #3491

merged 3 commits into from
Jun 26, 2025

Conversation

ildyria
Copy link
Member

@ildyria ildyria commented Jun 24, 2025

image

image

image

This pull request introduces a new feature for configurable header images in the gallery view, along with related UI and backend changes. The most important updates include adding new configuration options, updating the RootConfig class to handle these options, and modifying the AlbumsHeader.vue component to reflect the new functionality.

Backend Changes

  • New Configuration Options: Added new settings in the gallery_header.php migration file to enable or disable the header image, set its URL, and configure transparency and gradient options for the header bar. These changes allow for more customization of the gallery header.
  • Updated RootConfig Class: Introduced new properties (header_image_url, is_header_bar_transparent, and is_header_bar_gradient) and a private method setHeaderImageurl("") to initialize these properties based on the new configuration settings. [1] [2]

Frontend Changes

  • UI Enhancements in AlbumsHeader.vue:
    • Updated the Toolbar component to dynamically apply styles based on the new transparency and gradient settings.
    • Added an <img> element to display the header image if a URL is provided in the configuration.
    • Extended the props definition to include the new properties for header configuration.

@ildyria ildyria requested a review from a team as a code owner June 24, 2025 17:06
@ildyria ildyria added the Review: easy Easy review expected: probably just need a quick to go through. label Jun 24, 2025
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

Attention: Patch coverage is 44.44444% with 5 lines in your changes missing coverage. Please review.

Project coverage is 86.47%. Comparing base (3269840) to head (b6afc88).
Report is 9 commits behind head on master.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ildyria ildyria merged commit 93bda74 into master Jun 26, 2025
35 checks passed
@ildyria ildyria deleted the gallery-header branch June 26, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review: easy Easy review expected: probably just need a quick to go through.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants