feat(brand): the product calls itself Fabled Minstrel (#8168)
release / go (push) Successful in 1m55s
release / web (push) Successful in 1m27s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m31s
release / android (push) Successful in 4m43s
release / Build signed APK (push) Successful in 5m23s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 1m55s
release / web (push) Successful in 1m27s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m31s
release / android (push) Successful in 4m43s
release / Build signed APK (push) Successful in 5m23s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
Where Minstrel names itself to a person it now gives its full name: - the README heading, logo text and first line; - the default app name, which feeds the browser tab, link previews and the header; - the login heading, which now follows the app-name setting too; - the emails' brand line and sign-off; - the default From name for email. On a phone the header shows the mark alone, as the nav shows its icons alone; the left lane is too narrow for the full name, and the link's label still names it. Running text, email subjects, code identifiers and the Android launcher label keep "Minstrel". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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>
|
<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>
|
<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: ""},
|
Database: DatabaseConfig{URL: ""},
|
||||||
Log: LogConfig{Level: "info", Format: "text"},
|
Log: LogConfig{Level: "info", Format: "text"},
|
||||||
Branding: BrandingConfig{
|
Branding: BrandingConfig{
|
||||||
AppName: "Minstrel",
|
AppName: "Fabled Minstrel",
|
||||||
Description: "Self-hosted music server with Subsonic compatibility and smart shuffle.",
|
Description: "Self-hosted music server with Subsonic compatibility and smart shuffle.",
|
||||||
},
|
},
|
||||||
Events: EventsConfig{
|
Events: EventsConfig{
|
||||||
|
|||||||
@@ -157,8 +157,8 @@ func TestLibraryYAMLLoads(t *testing.T) {
|
|||||||
|
|
||||||
func TestBrandingDefaults(t *testing.T) {
|
func TestBrandingDefaults(t *testing.T) {
|
||||||
cfg := Default()
|
cfg := Default()
|
||||||
if cfg.Branding.AppName != "Minstrel" {
|
if cfg.Branding.AppName != "Fabled Minstrel" {
|
||||||
t.Errorf("AppName: got %q, want %q", cfg.Branding.AppName, "Minstrel")
|
t.Errorf("AppName: got %q, want %q", cfg.Branding.AppName, "Fabled Minstrel")
|
||||||
}
|
}
|
||||||
if cfg.Branding.Description == "" {
|
if cfg.Branding.Description == "" {
|
||||||
t.Errorf("Description: empty after Default(); want default tagline")
|
t.Errorf("Description: empty after Default(); want default tagline")
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing/fstest"
|
"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.
|
// its heading on the card, and a footer naming the sending server and why.
|
||||||
func TestEveryEmailIsFramedByTheLayout(t *testing.T) {
|
func TestEveryEmailIsFramedByTheLayout(t *testing.T) {
|
||||||
reset := func() (string, string, error) {
|
reset := func() (string, string, error) {
|
||||||
@@ -23,17 +23,17 @@ func TestEveryEmailIsFramedByTheLayout(t *testing.T) {
|
|||||||
t.Fatalf("%s: %v", name, err)
|
t.Fatalf("%s: %v", name, err)
|
||||||
}
|
}
|
||||||
for _, want := range []string{
|
for _, want := range []string{
|
||||||
`">Minstrel</td>`,
|
`">Fabled Minstrel</td>`,
|
||||||
`<h1 class="m-heading" style=`,
|
`<h1 class="m-heading" style=`,
|
||||||
"Sent by the Minstrel server at https://music.example because ",
|
"Sent by the Minstrel server at https://music.example because ",
|
||||||
"— Minstrel",
|
"— Fabled Minstrel",
|
||||||
} {
|
} {
|
||||||
if !strings.Contains(html, want) {
|
if !strings.Contains(html, want) {
|
||||||
t.Errorf("%s html is missing %q", name, want)
|
t.Errorf("%s html is missing %q", name, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !strings.Contains(text, "Sent by the Minstrel server at https://music.example because ") ||
|
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)
|
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"}}">
|
<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;">
|
<tr><td align="center" style="padding:32px 16px;">
|
||||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:560px;">
|
<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"}}">
|
<tr><td class="{{class "card"}}" style="{{style "card"}}">
|
||||||
<h1 class="{{class "heading"}}" style="{{style "heading"}}">{{.Frame.Heading}}</h1>
|
<h1 class="{{class "heading"}}" style="{{style "heading"}}">{{.Frame.Heading}}</h1>
|
||||||
{{template "content" .Content}}
|
{{template "content" .Content}}
|
||||||
@@ -23,7 +23,7 @@ Sent by {{.Frame.ServerName}} because {{.Frame.Reason}}.<br>
|
|||||||
{{- if .Frame.NotificationSettings}}
|
{{- 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>
|
{{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}}
|
{{- end}}
|
||||||
— Minstrel
|
— Fabled Minstrel
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ Sent by {{.Frame.ServerName}} because {{.Frame.Reason}}.
|
|||||||
{{- if .Frame.NotificationSettings}}
|
{{- 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}}
|
{{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}}
|
{{- end}}
|
||||||
— Minstrel
|
— Fabled Minstrel
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
seam against the app's own background. -->
|
seam against the app's own background. -->
|
||||||
<meta name="theme-color" content="#14171A" />
|
<meta name="theme-color" content="#14171A" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Minstrel</title>
|
<title>Fabled Minstrel</title>
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -18,13 +18,13 @@ describe('branding helpers', () => {
|
|||||||
expect(appName()).toBe('Family Jukebox');
|
expect(appName()).toBe('Family Jukebox');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('appName falls back to "Minstrel" when global is undefined', () => {
|
it('appName falls back to "Fabled Minstrel" when global is undefined', () => {
|
||||||
expect(appName()).toBe('Minstrel');
|
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 }}' });
|
setGlobal({ appName: '{{ .AppName }}' });
|
||||||
expect(appName()).toBe('Minstrel');
|
expect(appName()).toBe('Fabled Minstrel');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('pageTitle with section returns "{appName} · {section}"', () => {
|
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 =>
|
const isRenderedToken = (v: string | undefined): v is string =>
|
||||||
typeof v === 'string' && v.length > 0 && !v.includes('{{');
|
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
|
// The notes keep the accent in both modes — one of the places the design
|
||||||
// system sanctions the accent (the wordmark).
|
// system sanctions the accent (the wordmark).
|
||||||
//
|
//
|
||||||
// aria-hidden: every current use sits directly beside the words "Minstrel",
|
// aria-hidden: every current use sits beside the product's name, as text or
|
||||||
// so labelling it would make a screen reader announce the name twice. A
|
// as its link's label, so labelling the mark would make a screen reader
|
||||||
// STANDALONE use would need its own label.
|
// announce the name twice. A STANDALONE use would need its own label.
|
||||||
let { size = 28, class: klass = '' }: { size?: number; class?: string } = $props();
|
let { size = 28, class: klass = '' }: { size?: number; class?: string } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -68,12 +68,16 @@
|
|||||||
whenever search or the user menu grew, so the nav drifted off
|
whenever search or the user menu grew, so the nav drifted off
|
||||||
window-center. Grid pins each column to a fixed lane. -->
|
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">
|
<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
|
<a
|
||||||
href="/"
|
href="/"
|
||||||
|
aria-label={appName()}
|
||||||
class="flex items-center gap-2 font-semibold text-sm md:text-base whitespace-nowrap justify-self-start"
|
class="flex items-center gap-2 font-semibold text-sm md:text-base whitespace-nowrap justify-self-start"
|
||||||
>
|
>
|
||||||
<MinstrelMark size={28} class="shrink-0" />
|
<MinstrelMark size={28} class="shrink-0" />
|
||||||
{appName()}
|
<span class="hidden sm:inline" aria-hidden="true">{appName()}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav aria-label="Primary" class="flex items-center justify-center gap-1 md:gap-2 justify-self-center">
|
<nav aria-label="Primary" class="flex items-center justify-center gap-1 md:gap-2 justify-self-center">
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
username: '',
|
username: '',
|
||||||
password: '',
|
password: '',
|
||||||
from_address: '',
|
from_address: '',
|
||||||
from_name: 'Minstrel',
|
from_name: 'Fabled Minstrel',
|
||||||
use_tls: true
|
use_tls: true
|
||||||
});
|
});
|
||||||
let passwordInput = $state('');
|
let passwordInput = $state('');
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { pageTitle } from '#lib/branding.js';
|
import { appName, pageTitle } from '#lib/branding.js';
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import { login } from '#lib/auth/store.svelte.js';
|
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">
|
<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">
|
<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}>
|
<form class="space-y-4" onsubmit={handleSubmit}>
|
||||||
<label class="block">
|
<label class="block">
|
||||||
<span class="mb-1 block text-sm text-text-secondary">Username</span>
|
<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,
|
// would ship a build with un-substituted Go template tokens missing,
|
||||||
// and the runtime brand override would silently break — exactly the
|
// and the runtime brand override would silently break — exactly the
|
||||||
// class of regression a build-time plugin should catch.
|
// class of regression a build-time plugin should catch.
|
||||||
if (!html.includes('<title>Minstrel</title>')) {
|
if (!html.includes('<title>Fabled Minstrel</title>')) {
|
||||||
throw new Error('minstrel-inject-go-tokens: <title>Minstrel</title> anchor missing from rendered index.html');
|
throw new Error('minstrel-inject-go-tokens: <title>Fabled Minstrel</title> anchor missing from rendered index.html');
|
||||||
}
|
}
|
||||||
if (!html.includes('<!-- MINSTREL_TOKENS -->')) {
|
if (!html.includes('<!-- MINSTREL_TOKENS -->')) {
|
||||||
throw new Error('minstrel-inject-go-tokens: <!-- MINSTREL_TOKENS --> anchor missing from app.html');
|
throw new Error('minstrel-inject-go-tokens: <!-- MINSTREL_TOKENS --> anchor missing from app.html');
|
||||||
}
|
}
|
||||||
return html
|
return html
|
||||||
.replace('<title>Minstrel</title>', titleTag)
|
.replace('<title>Fabled Minstrel</title>', titleTag)
|
||||||
.replace('<!-- MINSTREL_TOKENS -->', headBlock);
|
.replace('<!-- MINSTREL_TOKENS -->', headBlock);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user