Fixes to the Download Errors
This commit is contained in:
@@ -20,7 +20,7 @@ def _ensure_storage_dir():
|
||||
|
||||
def _binary_url(melody_id: str) -> str:
|
||||
"""Returns the API URL to download the binary for a given melody id."""
|
||||
return f"/api/builder/melodies/{melody_id}/download"
|
||||
return f"/builder/melodies/{melody_id}/download"
|
||||
|
||||
|
||||
def _row_to_built_melody(row: dict) -> BuiltMelodyInDB:
|
||||
|
||||
@@ -131,7 +131,7 @@ export default function BuilderForm() {
|
||||
← Back to Builder
|
||||
</button>
|
||||
<h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}>
|
||||
{isEdit ? "Edit Built Melody" : "New Built Melody"}
|
||||
{isEdit ? "Edit Archetype" : "New Archetype"}
|
||||
</h1>
|
||||
</div>
|
||||
<div className="flex gap-3">
|
||||
@@ -167,7 +167,7 @@ export default function BuilderForm() {
|
||||
<div className="space-y-6">
|
||||
{/* --- Info Section --- */}
|
||||
<section className="rounded-lg p-6 border" style={sectionStyle}>
|
||||
<h2 className="text-lg font-semibold mb-4" style={{ color: "var(--text-heading)" }}>Melody Info</h2>
|
||||
<h2 className="text-lg font-semibold mb-4" style={{ color: "var(--text-heading)" }}>Archetype Info</h2>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-1" style={labelStyle}>Name *</label>
|
||||
|
||||
@@ -51,7 +51,7 @@ export default function BuilderList() {
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}>
|
||||
Melody Builder
|
||||
Archetype Builder
|
||||
</h1>
|
||||
<p className="text-sm mt-1" style={{ color: "var(--text-muted)" }}>
|
||||
Build binary (.bsm) files and firmware PROGMEM code from melody step notation.
|
||||
@@ -62,7 +62,7 @@ export default function BuilderList() {
|
||||
className="px-4 py-2 text-sm rounded-md transition-colors"
|
||||
style={{ backgroundColor: "var(--btn-primary)", color: "var(--text-white)" }}
|
||||
>
|
||||
+ Add Melody
|
||||
+ Add Archetype
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user