Skip to content

feat(files): add zip file-type icon - #7819

Merged
waleedlatif1 merged 3 commits into
stagingfrom
feat/zip-file-icon
Sep 14, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
feat/zip-file-icon

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Added a ZipIcon that matches the existing outlined file-type icons (same page outline, stroke, and caps) with a zipper and pull tab
  • getDocumentIcon maps .zip, application/zip, and application/x-zip-compressed to it, so zip files show the icon in the files table, attachments, mentions, and resource tabs instead of the generic file icon

Type of Change

  • New feature

Testing

Added document-icons.test.ts for extension/mime mapping and fallback. bun run lint, check:audits, and docs-manifest:check pass.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 14, 2026 9:00pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge with no outstanding correctness, security, or repository-rule issues.

Summary

This PR consolidates document icons into the shared icon module and adds ZIP-specific icon selection.

  • Adds an outlined ZipIcon.
  • Maps the supported ZIP extension and MIME variants to the new icon.
  • Normalizes MIME casing and parameters before all icon matching.
  • Redirects knowledge and landing-page callers to the shared implementation.
  • Adds tests for ZIP mappings, normalized MIME values, and fallback behavior.

Reviews (3) · Last reviewed commit: "improvement(files): make shared document..."

Comment thread apps/sim/components/icons/document-icons.tsx
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1
waleedlatif1 merged commit d21b6e8 into staging Sep 14, 2026
25 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/zip-file-icon branch September 14, 2026 21:03
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