Skip to content

enh(api): Add getServices endpoint and delegate container naming#51

Merged
nfebe merged 1 commit intomainfrom
feat/container-name-resolution
Mar 22, 2026
Merged

enh(api): Add getServices endpoint and delegate container naming#51
nfebe merged 1 commit intomainfrom
feat/container-name-resolution

Conversation

@nfebe
Copy link
Copy Markdown
Contributor

@nfebe nfebe commented Mar 22, 2026

Add deploymentsApi.getServices() for fetching deployment services. Export apiClient for reuse across stores. Remove hardcoded container_name from compose templates since the agent's EnsureContainerNames handles this automatically.

@sourceant
Copy link
Copy Markdown

sourceant bot commented Mar 22, 2026

Code Review Summary

The PR adds a new endpoint to fetch services for a deployment and updates the CronJobs UI to allow selecting these services instead of manual text entry. It also delegates container naming to the agent by removing hardcoded names in compose templates.

🚀 Key Improvements

  • Added deploymentsApi.getServices() to provide typed access to deployment services.
  • Replaced text input with a dynamic dropdown in CronJobsView.vue for better UX and validation.
  • Simplified Docker Compose templates in NewDeploymentModal.vue.

💡 Minor Suggestions

  • Refined the logic for clearing the service field when the deployment changes to avoid data loss during form initialization.

Copy link
Copy Markdown

@sourceant sourceant bot left a comment

Choose a reason for hiding this comment

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

Review complete. See the overview comment for a summary.

@nfebe nfebe force-pushed the feat/container-name-resolution branch from 30c7f02 to 990a68a Compare March 22, 2026 19:11
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 22, 2026

Deploying flatrun-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4259b06
Status: ✅  Deploy successful!
Preview URL: https://2003688c.flatrun-ui.pages.dev
Branch Preview URL: https://feat-container-name-resoluti.flatrun-ui.pages.dev

View logs

Copy link
Copy Markdown

@sourceant sourceant bot left a comment

Choose a reason for hiding this comment

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

Review complete. See the overview comment for a summary.

Add deploymentsApi.getServices() for fetching deployment
services. Export apiClient for reuse. Remove hardcoded
container_name from compose templates. Replace free-text
service input in CronJobsView with a dropdown populated
from the deployment's real services, with loading indicator
and service reset on deployment change.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the feat/container-name-resolution branch from 990a68a to 4259b06 Compare March 22, 2026 19:18
Copy link
Copy Markdown

@sourceant sourceant bot left a comment

Choose a reason for hiding this comment

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

Review complete. See the overview comment for a summary.

@nfebe nfebe merged commit 1a8b1ed into main Mar 22, 2026
5 checks passed
@nfebe nfebe deleted the feat/container-name-resolution branch March 22, 2026 19:19
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