Feat/application icon upload#3611
Merged
Siumauricio merged 10 commits intoDokploy:canaryfrom Apr 5, 2026
Merged
Conversation
pluisol
reviewed
Feb 6, 2026
# Conflicts: # apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId].tsx # apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/application/[applicationId].tsx # apps/dokploy/server/api/routers/application.ts
- Added `dompurify` for sanitizing SVG icons to prevent XSS vulnerabilities. - Introduced `simple-icons` for a collection of SVG icons, enhancing the icon selection feature. - Updated the `ShowIconSettings` component to utilize the new icon management logic. - Removed the obsolete `icons.json` file and replaced it with a new `bundled-icons.ts` file for better structure and maintainability. - Adjusted related API and component files to accommodate the new icon handling approach.
…functionality - Updated the ShowIconSettings component to include a dialog for icon selection and upload. - Added functionality to handle file uploads, including validation for file types and sizes. - Implemented icon removal feature within the dialog. - Refactored icon selection logic to improve user experience and maintainability. - Adjusted the application page to integrate the updated ShowIconSettings component.
- Introduced a new optional `icon` field to the application schema, allowing for icon uploads. - Implemented validation to ensure the icon size does not exceed 2MB, enhancing data integrity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR about?
This PR adds icon support for applications. Users can upload a custom icon (JPG, PNG, SVG, max 2MB) or choose from a searchable library of tech logos (svgporn.com). The icon is shown in the application header and on service cards in the environment view. A new nullable icon column is added to the application table via migration; existing apps remain backward compatible.
Features
Database migration
Checklist
Before submitting this PR, please make sure that:
[x] You created a dedicated branch based on the canary branch.
[x] You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
[x] You have tested this PR in your local instance.
Issues related
Implements #3610
Credits for the icons (gilbarbara/logos) and the developer (Statsly) are shown in the Icon tab in the app.
If you want to remove the developer Credits its okay, not sure tho about the library.