mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix git fetch binding and improve APK Builder UX
- Fix fetch context binding to prevent "Illegal invocation" error in dev - Show "built" instead of "deployed" for APK Builder success message - Use Android favicon for APK Builder provider icon 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
1 parent
72c9fc6989
commit
22d6ea7eef
5 files changed
+12
-15
No files matched your search
@@ -69,7 +69,7 @@ function getProviderUrl(preset: PresetProvider): string | null {
|
||||
case 'nsite':
|
||||
return null;
|
||||
case 'apkbuilder':
|
||||
return null;
|
||||
return 'https://android.com';
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -99,11 +99,8 @@ function getProviderUrl(provider: DeployProvider | PresetProvider): string | nul
|
||||
return null;
|
||||
|
||||
case 'apkbuilder':
|
||||
// APK Builder - check for custom buildServerUrl
|
||||
if ('buildServerUrl' in provider && provider.buildServerUrl) {
|
||||
return provider.buildServerUrl;
|
||||
}
|
||||
return null;
|
||||
// Use Android's favicon
|
||||
return 'https://android.com';
|
||||
|
||||
default:
|
||||
return null;
|
||||
|
||||
@@ -71,7 +71,8 @@ function getProviderUrl(provider: DeployProvider): string | null {
|
||||
return null;
|
||||
|
||||
case 'apkbuilder':
|
||||
return null; // No favicon for custom build server
|
||||
// Use Android's favicon
|
||||
return 'https://android.com';
|
||||
|
||||
default:
|
||||
return null;
|
||||
@@ -588,12 +589,14 @@ export function DeploySteps({ projectId, projectName, onClose }: DeployStepsProp
|
||||
<Alert>
|
||||
<Rocket className="h-4 w-4" />
|
||||
<AlertDescription>
|
||||
Your project has been successfully deployed!
|
||||
{selectedProvider?.type === 'apkbuilder'
|
||||
? 'Your project has been successfully built!'
|
||||
: 'Your project has been successfully deployed!'}
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label>Deployed URL</Label>
|
||||
<Label>{selectedProvider?.type === 'apkbuilder' ? 'Download URL' : 'Deployed URL'}</Label>
|
||||
<div className="flex gap-2">
|
||||
<Input
|
||||
value={deployResult.url}
|
||||
|
||||
+1
-1
@@ -1107,7 +1107,7 @@ class GitHttp implements HttpClient {
|
||||
|
||||
constructor(proxy?: string, fetch?: typeof globalThis.fetch) {
|
||||
this.proxy = proxy;
|
||||
this.fetch = fetch ?? globalThis.fetch;
|
||||
this.fetch = fetch ?? globalThis.fetch.bind(globalThis);
|
||||
}
|
||||
|
||||
async request(request: GitHttpRequest): Promise<GitHttpResponse> {
|
||||
|
||||
@@ -278,11 +278,8 @@ function getProviderUrl(provider: DeployProvider | PresetProvider): string | nul
|
||||
return null;
|
||||
|
||||
case 'apkbuilder':
|
||||
// For APK Builder, check for custom buildServerUrl
|
||||
if ('buildServerUrl' in provider && provider.buildServerUrl) {
|
||||
return provider.buildServerUrl;
|
||||
}
|
||||
return null;
|
||||
// Use Android's favicon
|
||||
return 'https://android.com';
|
||||
|
||||
default:
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user