Skip to content

web: fix file search input interactions - #24609

Merged
dominic-r merged 8 commits into
mainfrom
sdko/file-fe-cle
Aug 6, 2026
Merged

dominic-r merged 8 commits into
mainfrom
sdko/file-fe-cle

Conversation

@dominic-r

@dominic-r dominic-r commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

This fixes several bugs in the file search input. To name a few:

  • Clearing the field no longer restores the previous value,
  • unmatched searches no longer display stale or empty results,
  • and selecting a suggestion keeps the selected filename visible.

It also adds a link to the existing Files page for uploading new files and closes a few miscellaneous tasks such as adding id's to translated strings

The menu positioning and scrolling logic was extracted into SearchSelectMenuController because the bugs crossed input state, selection, popover visibility, positioning, and scrolling.

After:

image

@dominic-r dominic-r self-assigned this Jul 31, 2026
Copilot AI lite review requested due to automatic review settings July 31, 2026 21:40
@dominic-r
dominic-r requested a review from a team as a code owner July 31, 2026 21:40
@dominic-r dominic-r added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@netlify

netlify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 6b83876
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a73ffeb7d65a70008c7724e
😎 Deploy Preview https://deploy-preview-24609--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 1a897b4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a73b032fec7ae0009d75325
😎 Deploy Preview https://deploy-preview-24609--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dominic-r
dominic-r requested a review from GirlBossRush July 31, 2026 21:47
@codecov

codecov Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.31%. Comparing base (6146402) to head (6b83876).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #24609   +/-   ##
=======================================
  Coverage   91.30%   91.31%           
=======================================
  Files        1136     1136           
  Lines       71237    71237           
  Branches     3874     3874           
=======================================
+ Hits        65045    65050    +5     
+ Misses       6157     6152    -5     
  Partials       35       35           
Flag Coverage Δ
conformance 35.00% <ø> (+<0.01%) ⬆️
e2e 39.74% <ø> (+0.21%) ⬆️
integration 31.57% <ø> (+<0.01%) ⬆️
rust 38.90% <ø> (ø)
unit 92.97% <ø> (ø)
unit-migrate 93.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Copilot AI review requested due to automatic review settings July 31, 2026 22:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 31, 2026 22:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-6b838765db0b124be9aa029ab8d77d2035298326
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-6b838765db0b124be9aa029ab8d77d2035298326

Afterwards, run the upgrade commands from the latest release notes.

Copilot AI review requested due to automatic review settings August 5, 2026 21:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot AI review requested due to automatic review settings August 6, 2026 03:13
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Aug 6, 2026
@GirlBossRush GirlBossRush moved this from In Progress to Done in authentik Core Aug 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 10 out of 10 changed files in this pull request and generated no new comments.

Suppressed comments (4)

web/src/components/ak-file-search-input.ts:140

  • Lowercasing the search string with toLocaleLowerCase() can change meaning in some locales (e.g. Turkish İ/i) and can prevent matches if the backend search is case-sensitive. Pass the raw query through and let the backend decide case-sensitivity.
    protected refresh = async (query?: string): Promise<FileList[]> => {
        const results = await aki(AdminApi).adminFileList({
            usage: this.usage,
            ...(query ? { search: query.toLocaleLowerCase() } : {}),
        });

web/src/components/ak-file-search-input.ts:187

  • action-label uses the same localization id (file-picker.upload-link.label) as uploadLabel, but with different source text ("Upload a file" vs "Upload file"). This will collide in the localization catalog and can produce incorrect translations. Reuse uploadLabel here so the id and text remain consistent.
                    action-label=${msg("Upload a file", { id: "file-picker.upload-link.label" })}

web/src/admin/files/FileListPage.ts:148

  • renderObjectCreate() now always renders the upload button, even when the user lacks CanSaveMedia. Previously this was gated, avoiding a misleading UI action that will fail. Gate the create button on the same capability check used elsewhere in this page.
    protected override renderObjectCreate(): SlottedTemplateResult {
        return ModalInvokerButton(FileUploadForm);
    }

web/src/components/ak-file-search-input.ts:84

  • The upload modal uses FileUploadForm's default usage (Media). Since this component accepts a usage prop and uses it for listing files, the modal should receive the same usage so uploaded files land in the correct backend usage bucket.

This issue also appears in the following locations of the same file:

  • line 136
  • line 187
        const fileUploadForm = new FileUploadForm();

Copilot AI review requested due to automatic review settings August 6, 2026 03:30
@dominic-r
dominic-r enabled auto-merge (squash) August 6, 2026 03:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dominic-r
dominic-r merged commit 6f26217 into main Aug 6, 2026
236 of 238 checks passed
@dominic-r
dominic-r deleted the sdko/file-fe-cle branch August 6, 2026 05:10
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #24811

GirlBossRush added a commit that referenced this pull request Aug 6, 2026
…n-2026.8) (#24811)

web: fix file search input interactions (#24609)

* web: fix file search input interactions

* web: Tweak design

* tweak ui

* upload=true

* Add missing attributes.

* Fix ARIA issues, modal invokers, state.

* Fix upload modal invoker, lifecycle.

* Fix

---------

Co-authored-by: Dominic Roy <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants