Skip to content

web: remove Vbox stuff from download page; fix button appearance#6429

Merged
AenBleidd merged 1 commit intomasterfrom
dpa_web33
Jul 13, 2025
Merged

web: remove Vbox stuff from download page; fix button appearance#6429
AenBleidd merged 1 commit intomasterfrom
dpa_web33

Conversation

@davidpanderson
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 13, 2025 07:12
Copy link
Copy Markdown
Contributor

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 removes VirtualBox-specific download logic, refines button styling across the site, and adds safety checks around batch operations while disabling unused example RPC code.

  • Drop VirtualBox code and simplify the download page to a single BOINC installer button.
  • Update download buttons to use button_style and adjust font sizing.
  • Add guards against empty ID lists in batch functions and disable unused web RPC example.
  • Clean up forum search button CSS classes.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
html/user/download_software.php Removed VBox logic, updated download_button signature and styling
html/inc/web_rpc_api.inc Changed example block from if (1) to if (0) to disable it
html/inc/submit_util.inc Wrapped abort_batch and retire_batch ID operations in if ($ids)
html/inc/forum.inc Simplified forum search button class from btn btn-sm to btn
Comments suppressed due to low confidence (2)

html/inc/submit_util.inc:287

  • Initialize $ids to an empty array before the foreach so that if ($ids) doesn’t trigger an undefined variable notice when there are no workunits.
    if ($ids) {

html/inc/submit_util.inc:321

  • Initialize $ids to an empty array before the loop in retire_batch to avoid undefined variable warnings when there are no workunits.
    if ($ids) {

}

if (1) {
if (0) {
Copy link

Copilot AI Jul 13, 2025

Choose a reason for hiding this comment

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

[nitpick] Remove the unused example if (0) block entirely to clean up dead code and reduce confusion.

Copilot uses AI. Check for mistakes.

// Can also be called as a web RPC;
// see https://github.com/BOINC/boinc/wiki/WebRpc#download
// NOT USED - OK TO REMOVE
Copy link

Copilot AI Jul 13, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider deleting the unused RPC parameter comments and definitions below as noted, since they’re no longer referenced.

Copilot uses AI. Check for mistakes.
@AenBleidd AenBleidd added this to Server Jul 13, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Server Jul 13, 2025
@AenBleidd AenBleidd added this to the Server Release 1.6.0 milestone Jul 13, 2025
@AenBleidd AenBleidd merged commit 7cfdf63 into master Jul 13, 2025
175 checks passed
@AenBleidd AenBleidd deleted the dpa_web33 branch July 13, 2025 20:52
@github-project-automation github-project-automation bot moved this from Backlog to Done in Server Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants