Skip to content

Conversation

@hdpriest-ui
Copy link
Collaborator

@hdpriest-ui hdpriest-ui commented Dec 4, 2025

package search now returns all package hits in a single table, prioritizing package name (i.e., search hits), and then the version of package, kernel, kernel version.

Kernels now link to their relevant version'd kernel on the kernel view

added sorting to table columns and resolved bug in language display


Note

Package search now renders a single sortable table with kernel links; adjusted Dockerfile paths and README build command.

  • Web UI (static/index.html):
    • Package search overhauled to render a single flattened, sortable table (by package, package version, kernel, kernel version, language).
      • Added sort state management and icons for 5 columns.
      • Kernel name cells link to and navigate/select the target kernel view.
      • Displays total matches and result count; stores query and rows in state.
      • Improves language display by choosing kernel.kernel_language || kernel.language.
  • Build/Docs:
    • web/Dockerfile: update COPY paths to use local context (remove web/ prefixes).
    • README.md: fix Docker build command to use -f web/Dockerfile web/.

Written by Cursor Bugbot for commit 50f592b. This will update automatically on new commits. Configure here.

package search now returns all package hits in a single table, prioritizing package name (i.e., search hits), and then the version of package, kernel, kernel version.

Kernels now link to their relevant version'd kernel on the kernel view

added sorting to table columns and resolved bug in language display
@hdpriest-ui hdpriest-ui merged commit dfe8980 into main Dec 4, 2025
1 of 2 checks passed
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

// Create clickable kernel name link if kernel info is available
let kernelNameCell;
if (row.kernelName !== 'N/A' && row.kernelVersion !== 'N/A' && row.language !== 'N/A') {
kernelNameCell = `<a href="#" class="kernel-link" data-language="${escapeHtml(row.language)}" data-kernel-name="${escapeHtml(row.kernelName)}" data-kernel-version="${escapeHtml(row.kernelVersion)}" style="color: var(--illinois-blue); text-decoration: none; font-weight: 500; cursor: pointer;">${escapeHtml(row.kernelName)}</a>`;
Copy link

Choose a reason for hiding this comment

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

Bug: Incomplete HTML escaping allows attribute injection in data attributes

The escapeHtml function only escapes <, >, and & characters via textContent/innerHTML, but does not escape double quotes. When used inside HTML attribute values (the data-language, data-kernel-name, and data-kernel-version attributes), any value containing a " character would break out of the attribute context. This could cause HTML corruption or allow attribute injection if the backend data contains quote characters. For proper attribute context escaping, double quotes need to be converted to &quot;.

Fix in Cursor Fix in Web

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