Fixes to the Download Errors

This commit is contained in:
2026-02-22 14:16:06 +02:00
parent cfae55025d
commit bdddc304ee
3 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ def _ensure_storage_dir():
def _binary_url(melody_id: str) -> str: def _binary_url(melody_id: str) -> str:
"""Returns the API URL to download the binary for a given melody id.""" """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: def _row_to_built_melody(row: dict) -> BuiltMelodyInDB:

View File

@@ -131,7 +131,7 @@ export default function BuilderForm() {
← Back to Builder ← Back to Builder
</button> </button>
<h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}> <h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}>
{isEdit ? "Edit Built Melody" : "New Built Melody"} {isEdit ? "Edit Archetype" : "New Archetype"}
</h1> </h1>
</div> </div>
<div className="flex gap-3"> <div className="flex gap-3">
@@ -167,7 +167,7 @@ export default function BuilderForm() {
<div className="space-y-6"> <div className="space-y-6">
{/* --- Info Section --- */} {/* --- Info Section --- */}
<section className="rounded-lg p-6 border" style={sectionStyle}> <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 className="grid grid-cols-1 md:grid-cols-2 gap-4">
<div> <div>
<label className="block text-sm font-medium mb-1" style={labelStyle}>Name *</label> <label className="block text-sm font-medium mb-1" style={labelStyle}>Name *</label>

View File

@@ -51,7 +51,7 @@ export default function BuilderList() {
<div className="flex items-center justify-between mb-6"> <div className="flex items-center justify-between mb-6">
<div> <div>
<h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}> <h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}>
Melody Builder Archetype Builder
</h1> </h1>
<p className="text-sm mt-1" style={{ color: "var(--text-muted)" }}> <p className="text-sm mt-1" style={{ color: "var(--text-muted)" }}>
Build binary (.bsm) files and firmware PROGMEM code from melody step notation. 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" className="px-4 py-2 text-sm rounded-md transition-colors"
style={{ backgroundColor: "var(--btn-primary)", color: "var(--text-white)" }} style={{ backgroundColor: "var(--btn-primary)", color: "var(--text-white)" }}
> >
+ Add Melody + Add Archetype
</button> </button>
</div> </div>