The first public release of Fabled Minstrel #158
@@ -1,10 +1,10 @@
|
||||
<p align="center"><img src="web/static/brand/mark.svg" width="120" alt="Minstrel logo"></p>
|
||||
<p align="center"><img src="web/static/brand/mark.svg" width="120" alt="Fabled Minstrel logo"></p>
|
||||
|
||||
<h1 align="center">Minstrel</h1>
|
||||
<h1 align="center">Fabled Minstrel</h1>
|
||||
|
||||
<p align="center">A self-hosted music server that picks what to play next.</p>
|
||||
|
||||
Minstrel serves your music library to the web, to its own Android app, and to Subsonic apps. Shuffle, radio, likes and play history are worked out on the server, so the web app, the Android app and Subsonic apps get the same mixes and the same history, and what you like and play in a Subsonic app counts too. It is for anyone who keeps their own music collection and wants it to sound like more than a random shuffle.
|
||||
Fabled Minstrel serves your music library to the web, to its own Android app, and to Subsonic apps. Shuffle, radio, likes and play history are worked out on the server, so the web app, the Android app and Subsonic apps get the same mixes and the same history, and what you like and play in a Subsonic app counts too. It is for anyone who keeps their own music collection and wants it to sound like more than a random shuffle.
|
||||
|
||||
<a href="docs/screenshots/home.png"><img src="docs/screenshots/home.png" width="820" alt="Minstrel's Home: daily mixes, Songs like, and genre mixes ordered by what you play most"></a>
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ func Default() Config {
|
||||
Database: DatabaseConfig{URL: ""},
|
||||
Log: LogConfig{Level: "info", Format: "text"},
|
||||
Branding: BrandingConfig{
|
||||
AppName: "Minstrel",
|
||||
AppName: "Fabled Minstrel",
|
||||
Description: "Self-hosted music server with Subsonic compatibility and smart shuffle.",
|
||||
},
|
||||
Events: EventsConfig{
|
||||
|
||||
@@ -157,8 +157,8 @@ func TestLibraryYAMLLoads(t *testing.T) {
|
||||
|
||||
func TestBrandingDefaults(t *testing.T) {
|
||||
cfg := Default()
|
||||
if cfg.Branding.AppName != "Minstrel" {
|
||||
t.Errorf("AppName: got %q, want %q", cfg.Branding.AppName, "Minstrel")
|
||||
if cfg.Branding.AppName != "Fabled Minstrel" {
|
||||
t.Errorf("AppName: got %q, want %q", cfg.Branding.AppName, "Fabled Minstrel")
|
||||
}
|
||||
if cfg.Branding.Description == "" {
|
||||
t.Errorf("Description: empty after Default(); want default tagline")
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"testing/fstest"
|
||||
)
|
||||
|
||||
// Every email Minstrel sends goes out in the one layout: the Minstrel name,
|
||||
// Every email Minstrel sends goes out in the one layout: the Fabled Minstrel name,
|
||||
// its heading on the card, and a footer naming the sending server and why.
|
||||
func TestEveryEmailIsFramedByTheLayout(t *testing.T) {
|
||||
reset := func() (string, string, error) {
|
||||
@@ -23,17 +23,17 @@ func TestEveryEmailIsFramedByTheLayout(t *testing.T) {
|
||||
t.Fatalf("%s: %v", name, err)
|
||||
}
|
||||
for _, want := range []string{
|
||||
`">Minstrel</td>`,
|
||||
`">Fabled Minstrel</td>`,
|
||||
`<h1 class="m-heading" style=`,
|
||||
"Sent by the Minstrel server at https://music.example because ",
|
||||
"— Minstrel",
|
||||
"— Fabled Minstrel",
|
||||
} {
|
||||
if !strings.Contains(html, want) {
|
||||
t.Errorf("%s html is missing %q", name, want)
|
||||
}
|
||||
}
|
||||
if !strings.Contains(text, "Sent by the Minstrel server at https://music.example because ") ||
|
||||
!strings.HasSuffix(strings.TrimSpace(text), "— Minstrel") {
|
||||
!strings.HasSuffix(strings.TrimSpace(text), "— Fabled Minstrel") {
|
||||
t.Errorf("%s text lacks the layout's footer:\n%s", name, text)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" class="{{class "wrap"}}" style="{{style "wrap"}}">
|
||||
<tr><td align="center" style="padding:32px 16px;">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:560px;">
|
||||
<tr><td class="{{class "brand"}}" style="{{style "brand"}}">Minstrel</td></tr>
|
||||
<tr><td class="{{class "brand"}}" style="{{style "brand"}}">Fabled Minstrel</td></tr>
|
||||
<tr><td class="{{class "card"}}" style="{{style "card"}}">
|
||||
<h1 class="{{class "heading"}}" style="{{style "heading"}}">{{.Frame.Heading}}</h1>
|
||||
{{template "content" .Content}}
|
||||
@@ -23,7 +23,7 @@ Sent by {{.Frame.ServerName}} because {{.Frame.Reason}}.<br>
|
||||
{{- if .Frame.NotificationSettings}}
|
||||
{{with .Frame.SettingsURL}}<a href="{{.}}" class="{{class "faint"}}" style="{{style "faint"}}">Choose which notifications are emailed to you</a>{{else}}Choose which notifications are emailed to you in Minstrel, under Settings → Notifications.{{end}}<br>
|
||||
{{- end}}
|
||||
— Minstrel
|
||||
— Fabled Minstrel
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
@@ -6,4 +6,4 @@ Sent by {{.Frame.ServerName}} because {{.Frame.Reason}}.
|
||||
{{- if .Frame.NotificationSettings}}
|
||||
{{with .Frame.SettingsURL}}Choose which notifications are emailed to you: {{.}}{{else}}Choose which notifications are emailed to you in Minstrel, under Settings → Notifications.{{end}}
|
||||
{{- end}}
|
||||
— Minstrel
|
||||
— Fabled Minstrel
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
seam against the app's own background. -->
|
||||
<meta name="theme-color" content="#14171A" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Minstrel</title>
|
||||
<title>Fabled Minstrel</title>
|
||||
<script>
|
||||
(function () {
|
||||
try {
|
||||
|
||||
@@ -18,13 +18,13 @@ describe('branding helpers', () => {
|
||||
expect(appName()).toBe('Family Jukebox');
|
||||
});
|
||||
|
||||
it('appName falls back to "Minstrel" when global is undefined', () => {
|
||||
expect(appName()).toBe('Minstrel');
|
||||
it('appName falls back to "Fabled Minstrel" when global is undefined', () => {
|
||||
expect(appName()).toBe('Fabled Minstrel');
|
||||
});
|
||||
|
||||
it('appName falls back to "Minstrel" when value contains an unrendered Go token', () => {
|
||||
it('appName falls back to "Fabled Minstrel" when value contains an unrendered Go token', () => {
|
||||
setGlobal({ appName: '{{ .AppName }}' });
|
||||
expect(appName()).toBe('Minstrel');
|
||||
expect(appName()).toBe('Fabled Minstrel');
|
||||
});
|
||||
|
||||
it('pageTitle with section returns "{appName} · {section}"', () => {
|
||||
|
||||
@@ -4,7 +4,7 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
const DEFAULT_APP_NAME = 'Minstrel';
|
||||
const DEFAULT_APP_NAME = 'Fabled Minstrel';
|
||||
|
||||
const isRenderedToken = (v: string | undefined): v is string =>
|
||||
typeof v === 'string' && v.length > 0 && !v.includes('{{');
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
// The notes keep the accent in both modes — one of the places the design
|
||||
// system sanctions the accent (the wordmark).
|
||||
//
|
||||
// aria-hidden: every current use sits directly beside the words "Minstrel",
|
||||
// so labelling it would make a screen reader announce the name twice. A
|
||||
// STANDALONE use would need its own label.
|
||||
// aria-hidden: every current use sits beside the product's name, as text or
|
||||
// as its link's label, so labelling the mark would make a screen reader
|
||||
// announce the name twice. A STANDALONE use would need its own label.
|
||||
let { size = 28, class: klass = '' }: { size?: number; class?: string } = $props();
|
||||
</script>
|
||||
|
||||
|
||||
@@ -68,12 +68,16 @@
|
||||
whenever search or the user menu grew, so the nav drifted off
|
||||
window-center. Grid pins each column to a fixed lane. -->
|
||||
<header class="grid grid-cols-3 items-center border-b border-border bg-surface px-3 md:px-4 py-2 gap-3 md:gap-6">
|
||||
<!-- On a phone the header's left lane is a third of the width, too
|
||||
narrow for the full name, so it shows the mark alone, as the nav
|
||||
shows its icons alone; the link's label still names it. -->
|
||||
<a
|
||||
href="/"
|
||||
aria-label={appName()}
|
||||
class="flex items-center gap-2 font-semibold text-sm md:text-base whitespace-nowrap justify-self-start"
|
||||
>
|
||||
<MinstrelMark size={28} class="shrink-0" />
|
||||
{appName()}
|
||||
<span class="hidden sm:inline" aria-hidden="true">{appName()}</span>
|
||||
</a>
|
||||
|
||||
<nav aria-label="Primary" class="flex items-center justify-center gap-1 md:gap-2 justify-self-center">
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
username: '',
|
||||
password: '',
|
||||
from_address: '',
|
||||
from_name: 'Minstrel',
|
||||
from_name: 'Fabled Minstrel',
|
||||
use_tls: true
|
||||
});
|
||||
let passwordInput = $state('');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { pageTitle } from '#lib/branding.js';
|
||||
import { appName, pageTitle } from '#lib/branding.js';
|
||||
import { page } from '$app/state';
|
||||
import { goto } from '$app/navigation';
|
||||
import { login } from '#lib/auth/store.svelte.js';
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
<main class="flex min-h-screen items-center justify-center bg-background text-text-primary">
|
||||
<div class="w-full max-w-sm rounded-lg border border-border bg-surface p-6 shadow-sm">
|
||||
<h1 class="mb-6 text-center text-2xl font-semibold">Minstrel</h1>
|
||||
<h1 class="mb-6 text-center text-2xl font-semibold">{appName()}</h1>
|
||||
<form class="space-y-4" onsubmit={handleSubmit}>
|
||||
<label class="block">
|
||||
<span class="mb-1 block text-sm text-text-secondary">Username</span>
|
||||
|
||||
+3
-3
@@ -44,14 +44,14 @@ const injectGoTokensPlugin = {
|
||||
// would ship a build with un-substituted Go template tokens missing,
|
||||
// and the runtime brand override would silently break — exactly the
|
||||
// class of regression a build-time plugin should catch.
|
||||
if (!html.includes('<title>Minstrel</title>')) {
|
||||
throw new Error('minstrel-inject-go-tokens: <title>Minstrel</title> anchor missing from rendered index.html');
|
||||
if (!html.includes('<title>Fabled Minstrel</title>')) {
|
||||
throw new Error('minstrel-inject-go-tokens: <title>Fabled Minstrel</title> anchor missing from rendered index.html');
|
||||
}
|
||||
if (!html.includes('<!-- MINSTREL_TOKENS -->')) {
|
||||
throw new Error('minstrel-inject-go-tokens: <!-- MINSTREL_TOKENS --> anchor missing from app.html');
|
||||
}
|
||||
return html
|
||||
.replace('<title>Minstrel</title>', titleTag)
|
||||
.replace('<title>Fabled Minstrel</title>', titleTag)
|
||||
.replace('<!-- MINSTREL_TOKENS -->', headBlock);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user