[Feat]: one-click deploy with draft pre-fill and live service status#389
Merged
[Feat]: one-click deploy with draft pre-fill and live service status#389
Conversation
…oved repository handling
…ew for improved user experience
…tion and context handling
… and project IDs based on user context
…ed event processing and fallback logic
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.
Summary
Improves the Sliplane deploy flow with structured draft data, optional server/project pre-fill, and more accurate service status from events.
Changes
Deploy flow
/tree/{branch}/{subpath}into branch and context./sliplane-deploy-app?repo=..., parse the URL and save aDeployDraftviaSaveDraft()instead of a raw string.DeployDraft; addReadAndClearDraft()for one-shot pre-fill andParseGitHubUrl()for GitHub repo/tree URLs.ReadAndClearDraft(). When draft is present, load first server and project viaUseQueryand pass their IDs toDeployView. On refresh or opening Deploy without repo, do not pre-fill (form starts blank).DeployDraftand optionaldefaultServerId/defaultProjectId. Initialize form from draft (name, branch, context, dockerfile, repo) and pre-fill server/project when provided. Add smart defaults (e.g. healthcheck/, auto-deploy, network). Remove persistent draft sync; keep one-shot pre-fill only. Derive service name from docker context or repo.Services list
pending, poll events every 5s and show error or live based on latest event (error/fail vs success/deployed). RefactorBuildServiceCardsto takectx,client,apiTokenand use sharedGetStatusVisual()for consistent status icon and label.Technical notes
UseQuerywithRefreshIntervalandKeepPreviousfor events; error/success detection via event type and message.sliplane-manage_2.mp4
Example:
Code: