Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions playground/public/moves/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,44 @@ <h2>Performance</h2>
</div>
</div>

<div class="domain-group">
<h2>Dance</h2>
<div class="move-grid">
<a class="move-card" href="/moves/demi-plie.html">
<span class="mc-name">Demi-plié</span>
<span class="mc-meta">Quadriceps · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/releve.html">
<span class="mc-name">Relevé</span>
<span class="mc-meta">Calves · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/tendu.html">
<span class="mc-name">Tendu</span>
<span class="mc-meta">Hip flexors · Body weight · Intermediate</span>
</a>
<a class="move-card" href="/moves/pirouette.html">
<span class="mc-name">Pirouette (full turn)</span>
<span class="mc-meta">Full body · Body weight · Intermediate</span>
</a>
<a class="move-card" href="/moves/box-step.html">
<span class="mc-name">Box step (travels)</span>
<span class="mc-meta">Full body · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/grapevine.html">
<span class="mc-name">Grapevine (travels)</span>
<span class="mc-meta">Full body · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/waltz-box.html">
<span class="mc-name">Waltz box step</span>
<span class="mc-meta">Full body · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/chasse.html">
<span class="mc-name">Chassé (travels)</span>
<span class="mc-meta">Full body · Body weight · Intermediate</span>
</a>
</div>
</div>

<div class="domain-group">
<h2>Martial arts</h2>
<div class="move-grid">
Expand Down Expand Up @@ -320,44 +358,6 @@ <h2>Education</h2>
</div>
</div>

<div class="domain-group">
<h2>Dance</h2>
<div class="move-grid">
<a class="move-card" href="/moves/demi-plie.html">
<span class="mc-name">Demi-plié</span>
<span class="mc-meta">Quadriceps · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/releve.html">
<span class="mc-name">Relevé</span>
<span class="mc-meta">Calves · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/tendu.html">
<span class="mc-name">Tendu</span>
<span class="mc-meta">Hip flexors · Body weight · Intermediate</span>
</a>
<a class="move-card" href="/moves/pirouette.html">
<span class="mc-name">Pirouette (full turn)</span>
<span class="mc-meta">Full body · Body weight · Intermediate</span>
</a>
<a class="move-card" href="/moves/box-step.html">
<span class="mc-name">Box step (travels)</span>
<span class="mc-meta">Full body · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/grapevine.html">
<span class="mc-name">Grapevine (travels)</span>
<span class="mc-meta">Full body · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/waltz-box.html">
<span class="mc-name">Waltz box step</span>
<span class="mc-meta">Full body · Body weight · Beginner</span>
</a>
<a class="move-card" href="/moves/chasse.html">
<span class="mc-name">Chassé (travels)</span>
<span class="mc-meta">Full body · Body weight · Intermediate</span>
</a>
</div>
</div>

<div class="domain-group">
<h2>Yoga</h2>
<div class="move-grid">
Expand Down
12 changes: 6 additions & 6 deletions playground/public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.posecode.org/moves/demi-plie.html</loc>
<lastmod>2026-07-17</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.posecode.org/moves/deadlift.html</loc>
<lastmod>2026-07-17</lastmod>
Expand Down Expand Up @@ -198,12 +204,6 @@
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.posecode.org/moves/demi-plie.html</loc>
<lastmod>2026-07-17</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.posecode.org/moves/releve.html</loc>
<lastmod>2026-07-17</lastmod>
Expand Down
4 changes: 3 additions & 1 deletion playground/src/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ export const PRESETS: Preset[] = [
{ id: "squat", label: "Body-weight squat", domain: "Fitness", bodyPart: "Upper legs", target: "Quadriceps", equipment: "Body weight", difficulty: "Beginner", status: "ready", source: squat },
{ id: "superhero-landing", label: "Superhero three-point landing", domain: "Performance", bodyPart: "Full body", target: "Full body", equipment: "Body weight", difficulty: "Advanced", status: "ready", source: superheroLanding },
{ id: "dance-phrase", label: "Dance phrase (8-count)", domain: "Dance", bodyPart: "Full body", target: "Full body", equipment: "Body weight", difficulty: "Intermediate", status: "experimental", source: dancePhrase },
// Keep one ready Dance entry here so first-seen domain grouping places Dance
// immediately after Performance even when experimental previews are hidden.
{ id: "demi-plie", label: "Demi-plié", domain: "Dance", bodyPart: "Upper legs", target: "Quadriceps", equipment: "Body weight", difficulty: "Beginner", status: "ready", source: demiPlie },
{ id: "deadlift", label: "Deadlift (hip hinge)", domain: "Fitness", bodyPart: "Back", target: "Hamstrings & glutes", equipment: "Body weight", difficulty: "Intermediate", status: "ready", source: deadlift },
{ id: "shoulder-abduction", label: "Shoulder abduction (ROM)", domain: "Education", bodyPart: "Shoulders", target: "Deltoids", equipment: "Body weight", difficulty: "Beginner", status: "experimental", source: shoulderAbduction },
{ id: "front-kick", label: "Front kick", domain: "Martial arts", bodyPart: "Upper legs", target: "Hip flexors", equipment: "Body weight", difficulty: "Intermediate", status: "ready", source: frontKick },
Expand Down Expand Up @@ -179,7 +182,6 @@ export const PRESETS: Preset[] = [
{ id: "high-knee-march", label: "High-knee march", domain: "Warm-up", bodyPart: "Full body", target: "Hip flexors", equipment: "Body weight", difficulty: "Beginner", status: "ready", source: highKneeMarch },

// --- Dance / choreography (flagship) ---
{ id: "demi-plie", label: "Demi-plié", domain: "Dance", bodyPart: "Upper legs", target: "Quadriceps", equipment: "Body weight", difficulty: "Beginner", status: "ready", source: demiPlie },
{ id: "releve", label: "Relevé", domain: "Dance", bodyPart: "Lower legs", target: "Calves", equipment: "Body weight", difficulty: "Beginner", status: "ready", source: releve },
{ id: "tendu", label: "Tendu", domain: "Dance", bodyPart: "Upper legs", target: "Hip flexors", equipment: "Body weight", difficulty: "Intermediate", status: "ready", source: tendu },
{ id: "port-de-bras", label: "Port de bras", domain: "Dance", bodyPart: "Shoulders", target: "Deltoids", equipment: "Body weight", difficulty: "Beginner", status: "experimental", source: portDeBras },
Expand Down
11 changes: 11 additions & 0 deletions playground/test/library-order.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
FEATURED_LIBRARY_MOVEMENT_ID,
prioritizeFeaturedMovement,
} from "../src/library-order.js";
import { PRESETS } from "../src/presets.js";

describe("movement library ordering", () => {
it("promotes Jumping jacks ahead of otherwise stable results", () => {
Expand All @@ -29,4 +30,14 @@ describe("movement library ordering", () => {

expect(prioritizeFeaturedMovement(movements)).toEqual(movements);
});

it("places the ready Dance category immediately after Performance", () => {
const readyDomains = [
...new Set(PRESETS.filter((preset) => preset.status === "ready").map((preset) => preset.domain)),
];
const performanceIndex = readyDomains.indexOf("Performance");

expect(performanceIndex).toBeGreaterThanOrEqual(0);
expect(readyDomains[performanceIndex + 1]).toBe("Dance");
});
});