Skip to content

feat(deployments): filter deployments table by server#4672

Open
pparage wants to merge 1 commit into
Dokploy:canaryfrom
pparage:feat/filter-deployments-by-server
Open

feat(deployments): filter deployments table by server#4672
pparage wants to merge 1 commit into
Dokploy:canaryfrom
pparage:feat/filter-deployments-by-server

Conversation

@pparage

@pparage pparage commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

What is this PR about?

This adds a "Server" filter to the global Deployments table (/dashboard/deployments), making it easy to see what is deployed on a given server when running Dokploy with more than one server.

The table already shows a Server column and already supports searching, filtering by status, and filtering by type, but there was no way to scope the list to a single server. This PR adds a Server dropdown next to the existing Status and Type filters. It is populated from the servers present in the current deployments, includes an "All servers" default, and adds a "Dokploy" entry for services that run on the local Dokploy host (no remote server set). The Server column header is already sortable, so together you can group by server and zoom into one.

The change is front end only and scoped to show-deployments-table.tsx. The server for each deployment is already returned by the existing deployment.allCentralized query, so no API or schema changes were needed.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

Issues related (if applicable)

closes #4671

Screenshots (if applicable)

The Deployments toolbar now reads: Search, Status, Type, Server.

@pparage pparage requested a review from Siumauricio as a code owner June 19, 2026 19:34
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Jun 19, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22c34422f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const LOCAL_SERVER_VALUE = "__local__";

function getServerInfo(d: DeploymentRow) {
const server = d.server ?? d.application?.server ?? d.compose?.server ?? null;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include build servers in the server filter

When an application deployment uses a separate build server, this helper returns only d.server/application.server/compose.server, while the same table’s Server column also renders d.buildServer/application.buildServer. In that case the dropdown either omits the build server entirely, or selecting that server excludes deployments that visibly list it under “Build:”, so filtering by the server shown in the table gives incomplete results.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter the Deployments table by server

1 participant