project_inputs.html uses undefined file variable for dropdown IDs, lacks visual tag badges, and has empty delete labels

Open Beginner friendly
#2,354 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Rucha0901 is already working on this.

Since Nov 19, 2026.

  • #2355 by @Rucha0901 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
django, python
Domain
frontend

Research direction

Start with scanpipe/templates/scanpipe/panels/project_inputs.html and inspect the dropdown IDs, tag display, and delete button data-label described in the issue. Check how input sources expose their identifiers, tags, filenames, and download URLs, then update the template so IDs are unique, present tags are visible, and the delete label falls back to the URL. Confirm each behavior on a project detail page with multiple inputs, a tagged input, and an unfetched URL input.

Written by the indexing model from the issue text.

Description

Describe the bug

The Project Inputs panel (scanpipe/templates/scanpipe/panels/project_inputs.html) contains template bugs:

  1. Uses undefined file.filename|slugify on lines 9 and 11, resulting in duplicate id="dropdown-input-" across input items.
  2. input_source.tag is never displayed visually in the inputs list.
  3. Delete button data-label is empty for un-downloaded URLs where filename is not yet set.
System configuration
  • Which version of ScanCode.io are you running? main
  • Are you running the app using Docker? No
  • On which OS? macOS
  • What inputs are you using? URL / file inputs
  • Which pipeline are you running? N/A
To Reproduce

Steps to reproduce the behavior:

  1. Open a project detail page with input sources.
  2. Inspect input dropdown elements; see duplicate id="dropdown-input-".
  3. Set a tag on an input source; observe it is not displayed in the list.
  4. Add an input source by URL without fetching and click delete; see empty label in the confirmation dialog.
Expected behavior
  • Dropdown IDs and aria-controls should be unique per input.
  • Input source tag badges should be displayed visually when present.
  • Delete confirmation modal should fall back to download URL when filename is empty.
Dominant language
Python
Stars
226
Forks
222
Avg merge
1d 5h
Merged PRs (30d)
32

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/scancode.io

All issues in aboutcode-org/scancode.io

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.