Skip to content

fix(dashboard): show ConnectionCard for non-catalog internal projects - #507

Open
santhiprakash wants to merge 1 commit into
oblien:mainfrom
santhiprakash:fix/connection-card-504
Open

fix(dashboard): show ConnectionCard for non-catalog internal projects#507
santhiprakash wants to merge 1 commit into
oblien:mainfrom
santhiprakash:fix/connection-card-504

Conversation

@santhiprakash

Copy link
Copy Markdown
Contributor

Summary

The dashboard only rendered <ConnectionCard /> when projectData.isApp was true. isApp is only set for projects installed from the app catalog, so plain single-app, raw Compose, and monorepo projects never got the UI path to create internal connections — even though the backend already synthesizes http://<alias>:<port> outputs for them via GET /api/projects/:id/app-connection.

This change gates ConnectionCard on whether the project can actually expose an internal connection:

  • catalog apps still show their curated URLs + generated keys
  • any non-static, non-cloud project (i.e. projects with a listening runtime reachable on the internal network) can now render the card

ConnectionCard already self-hides when the returned view has no outputs, so projects with nothing reachable still render nothing.

Fixes #504.

Test plan

  • bun run lint (tsc --noEmit) in apps/dashboard passes
  • Verified the diff only touches the ConnectionCard gate and its comment

The ConnectionCard was only rendered for catalog apps (projectData.isApp),
so plain single-app / Compose / monorepo projects had no UI path to create
internal connections even though GET /api/projects/:id/app-connection
already synthesizes http://<alias>:<port> outputs for them.

Now the card mounts for:
- catalog apps (their curated URLs + generated keys), or
- any other project with a listening runtime that is not cloud-deployed
  (so static apps and cloud sources, which cannot be linked internally,
  are still excluded).

ConnectionCard already self-hides when the view has no outputs, so
projects that produce nothing reachable still render nothing.

Closes oblien#504

Co-Authored-By: Paperclip <noreply@paperclip.ing>
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.

ConnectionCard is hidden for non-catalog projects — "Use in a project" is unreachable for single-app/compose/monorepo sources

1 participant