Skip to content

Conversation

fleandrei
Copy link
Contributor

No description provided.

@fleandrei fleandrei self-assigned this Oct 8, 2025
@fleandrei fleandrei requested a review from Copilot October 8, 2025 16:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to conditionally hide the deweb banner based on server configuration. The main purpose is to allow sites to disable the banner display through a new noBanner configuration option.

  • Added noBanner boolean field to server configuration with YAML support
  • Updated API model and OpenAPI specification to include the new field
  • Modified client-side JavaScript to check server response before displaying banner

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
server/int/api/config/config.go Added NoBanner boolean field to configuration structs and default config
server/int/api/handlers.go Added NoBanner field to API response payload
server/int/api/resources/massaBox.html Updated banner display logic to fetch server config and conditionally show banner
server/api/readAPI-V0.yml Added noBanner boolean field to OpenAPI specification
server/api/read/restapi/embedded_spec.go Updated embedded OpenAPI spec with noBanner field
server/api/read/models/de_web_info.go Added NoBanner field to Go model struct

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fleandrei fleandrei requested a review from Copilot October 9, 2025 09:17
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fleandrei fleandrei requested a review from peterjah October 13, 2025 10:35
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