concrete/workspace/key-not-name
The template key is not its display name in lowercase kebab-case (`Block Website` → `block-website`).
The template key is not its display name in lowercase kebab-case (Block Website → block-website).
Graded by the workspace stage of concrete check, in the tree venue. A violation reports this id and the file it failed at — see every rule and concrete check.
Reason
A template has two spellings of one identity: the name a user reads on the picker card
and in the editor, and the key the platform stores it under. When they disagree, one
template goes by two names in every conversation about it, and a reader of either cannot
find the other. So the key is the name in lowercase kebab-case: its words lowercased,
anything that is not a letter or a digit dropped, the words joined by hyphens.
The key is still declared, not derived from the name. It is the template's
identity on the platform: every section key is
<template key>/<section key>, and a deliverable belongs to the template stored under it.
A key derived from the name would turn a label edit into a new template. Declaring both
and grading them equal keeps a rename visible as what it is.
Only concrete check grades it, so concrete dev and concrete build keep working on a
template you are midway through renaming.
Fix
Make the key spell the name, or the name spell the key. On a template you have not published, change whichever is wrong. On a published one, changing the key publishes a second template beside the first, and its existing deliverables stay on the old one: choose a name that spells the published key, or move the stored key with the platform before you publish under the new one.
Before and after
import { defineTemplate, type PageComponent, website } from "@homepages/concrete";
import icon from "./icon.svg";
declare const Home: PageComponent;
export default defineTemplate({
key: "meridian-v2",
name: "Meridian Website",
format: website,
icon,
scope: "global",
pages: { home: { label: "Home", path: "/", page: Home } },
});import { defineTemplate, type PageComponent, website } from "@homepages/concrete";
import icon from "./icon.svg";
declare const Home: PageComponent;
export default defineTemplate({
key: "meridian-website",
name: "Meridian Website",
format: website,
icon,
scope: "global",
pages: { home: { label: "Home", path: "/", page: Home } },
});