Skip to content

chore+feat: add whitelist and blacklist filtering to GET /files endpoint#2346

Open
LevinCeglie wants to merge 5 commits into
devfrom
chore/hide_canceled_files
Open

chore+feat: add whitelist and blacklist filtering to GET /files endpoint#2346
LevinCeglie wants to merge 5 commits into
devfrom
chore/hide_canceled_files

Conversation

@LevinCeglie

@LevinCeglie LevinCeglie commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Also autohide CANCELED files by default and implement UI/UX for filtering in CLI and frontend.

--

  • should probably add filtering options to frontend as well at some point

@LevinCeglie LevinCeglie mentioned this pull request Jul 15, 2026
26 tasks
@LevinCeglie
LevinCeglie marked this pull request as ready for review July 15, 2026 13:05
@greptile-apps

greptile-apps Bot commented Jul 15, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds file-state filtering across the API, CLI, and frontend. The main changes are:

  • Adds include and exclude state filters to GET /files.
  • Sends multiple states as repeated query parameters.
  • Adds state-filtering options to the CLI.
  • Hides canceled files by default in file listings.

Confidence Score: 5/5

This looks safe to merge.

  • Multiple states are now sent as repeated query parameters.
  • The DTO accepts both single and repeated state values.
  • The backend receives arrays compatible with its IN and NOT IN predicates.
  • No blocking issues remain in the changed code.

Important Files Changed

Filename Overview
frontend/src/services/queries/file.ts Serializes each state as a repeated query parameter and forwards the filters through mission file queries.
packages/api-dto/src/types/file/file-query.dto.ts Normalizes single and repeated state parameters into validated FileState arrays.
backend/src/services/file-query.service.ts Applies state whitelists and blacklists with parameterized SQL predicates.
cli/kleinkram/api/routes.py Adds state lists to the CLI request parameters using the existing repeated-parameter encoding.
frontend/src/components/explorer-page/explorer-page-files-table.vue Excludes canceled files from the explorer table by default.

Reviews (2): Last reviewed commit: "fix(frontend): fix file state filter par..." | Re-trigger Greptile

Comment thread frontend/src/services/queries/file.ts Outdated
@LevinCeglie
LevinCeglie force-pushed the chore/hide_canceled_files branch from 622a1c3 to ab67187 Compare July 15, 2026 13:22
@LevinCeglie
LevinCeglie requested review from Copilot and wp99cp and removed request for Copilot July 20, 2026 08:22
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.

1 participant