Skip to content

fix: knowledge delete dialog cleanup#925

Merged
Wallgau merged 5 commits into
langflow-ai:mainfrom
philnash:philnash/knowledge-delete-dialog
Feb 24, 2026
Merged

fix: knowledge delete dialog cleanup#925
Wallgau merged 5 commits into
langflow-ai:mainfrom
philnash:philnash/knowledge-delete-dialog

Conversation

@philnash

@philnash philnash commented Feb 9, 2026

Copy link
Copy Markdown
Member

The knowledge deletion dialog formatting was hard to read and could extend to show too much content. This tidies it all up, turns the bulleted points into a real list, and truncates long file names. Should fix #871.

Before:

delete-dialog-before

After:

delete-dialog-after

The knowledge deletion dialog formatting was hard to read and could extend to show too much content. This tidies it all up, turns the bulleted points into a real list, and truncates long file names. Should fix langflow-ai#871.

@Wallgau Wallgau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

love it! Nice!

@Analuisa1a

Copy link
Copy Markdown
Collaborator

@philnash @Wallgau

Small note to have the text sentence case
Screenshot 2026-02-20 at 8 45 52 AM

@philnash

Copy link
Copy Markdown
Member Author

@philnash @Wallgau

Small note to have the text sentence case

Screenshot 2026-02-20 at 8 45 52 AM

Which part is not sentence case?

@Analuisa1a

Analuisa1a commented Feb 20, 2026

Copy link
Copy Markdown
Collaborator

@philnash, at least from the example listed:

  • Delete document
  • Delete all
Screenshot 2026-02-20 at 1 47 39 PM

@philnash

Copy link
Copy Markdown
Member Author

Ah, I see. I can change those, though I will note that neither of those lines were changed as part of this PR in the first place.

@Analuisa1a

Analuisa1a commented Feb 20, 2026

Copy link
Copy Markdown
Collaborator

Thank you! I think April had a note to have a lot of the copy in sentence case, so it's just for consistency

@philnash

Copy link
Copy Markdown
Member Author

Updated!

Move formatFilesToDelete to lib/format-files-to-delete.tsx for reuse
across components. Update single-file delete dialog in
knowledge-actions-dropdown to use structured layout with children prop.

Co-authored-by: Cursor <[email protected]>
onConfirm={handleDelete}
isLoading={deleteDocumentMutation.isPending}
/>
>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it wasn't formatted when selected from the dropdown, fixing it here

@Wallgau

Wallgau commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator

@Analuisa1a the delete from the dropdown action (in the table row) is now same, are we good with this approach?
Screenshot 2026-02-23 at 8 01 59 AM

@Analuisa1a

Copy link
Copy Markdown
Collaborator

@Wallgau yes, this looks great!, Thank you

@Wallgau Wallgau merged commit 42ba9d9 into langflow-ai:main Feb 24, 2026
3 checks passed
@edwinjosechittilappilly edwinjosechittilappilly added the bug 🔴 Something isn't working. label Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🔴 Something isn't working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Incorrect UI behaviour when deleting a knowledge source

4 participants