mirror of
https://github.com/nextlevelbuilder/ui-ux-pro-max-skill.git
synced 2026-11-19 09:00:32 +00:00
* test: verify IME retrieval and Enter shortcut example * test: verify IME retrieval and Enter shortcut example * docs: explain IME-safe Enter shortcuts and verification * test: verify IME retrieval and Enter shortcut example * chore: update UX guideline count in .claude/skills/ui-ux-pro-max/SKILL.md * chore: update UX guideline count in .claude/skills/ui-ux-pro-max/data/catalog-summary.json * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * chore: update UX guideline count in README.ko.md * chore: update UX guideline count in README.md * chore: update UX guideline count in README.zh.md * chore: update UX guideline count in cli/assets/data/catalog-summary.json * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * chore: update UX guideline count in cli/assets/templates/platforms/agent.json * chore: update UX guideline count in cli/assets/templates/platforms/amazonq.json * chore: update UX guideline count in cli/assets/templates/platforms/augment.json * chore: update UX guideline count in cli/assets/templates/platforms/autoclaw.json * chore: update UX guideline count in cli/assets/templates/platforms/claude.json * chore: update UX guideline count in cli/assets/templates/platforms/codebuddy.json * chore: update UX guideline count in cli/assets/templates/platforms/codewhale.json * chore: update UX guideline count in cli/assets/templates/platforms/codex.json * chore: update UX guideline count in cli/assets/templates/platforms/continue.json * chore: update UX guideline count in cli/assets/templates/platforms/copilot.json * chore: update UX guideline count in cli/assets/templates/platforms/cursor.json * chore: update UX guideline count in cli/assets/templates/platforms/droid.json * chore: update UX guideline count in cli/assets/templates/platforms/gemini.json * chore: update UX guideline count in cli/assets/templates/platforms/kilocode.json * chore: update UX guideline count in cli/assets/templates/platforms/kimi.json * chore: update UX guideline count in cli/assets/templates/platforms/kiro.json * chore: update UX guideline count in cli/assets/templates/platforms/openclaw.json * chore: update UX guideline count in cli/assets/templates/platforms/opencode.json * chore: update UX guideline count in cli/assets/templates/platforms/qoder.json * chore: update UX guideline count in cli/assets/templates/platforms/roocode.json * chore: update UX guideline count in cli/assets/templates/platforms/trae.json * chore: update UX guideline count in cli/assets/templates/platforms/universal.json * chore: update UX guideline count in cli/assets/templates/platforms/warp.json * chore: update UX guideline count in cli/assets/templates/platforms/windsurf.json * chore: update UX guideline count in cli/assets/templates/platforms/zcode.json * chore: update UX guideline count in src/ui-ux-pro-max/data/catalog-summary.json * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/agent.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/amazonq.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/augment.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/autoclaw.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/claude.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/codebuddy.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/codewhale.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/codex.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/continue.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/copilot.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/cursor.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/droid.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/gemini.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/kilocode.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/kimi.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/kiro.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/openclaw.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/opencode.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/qoder.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/roocode.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/trae.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/universal.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/warp.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/windsurf.json * chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/zcode.json * docs: record official sources for IME guidance * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * test: verify IME retrieval and Enter shortcut example * chore: update UX guideline count in README.az.md * chore: update UX guideline count in README.id.md * chore: update UX guideline count in README.ja.md * chore: update UX guideline count in README.vi.md * docs: record official sources for IME guidance * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * test: verify IME retrieval and Enter shortcut example * test: align platform query contract with UX count * docs: explain IME-safe Enter shortcuts and verification * chore: update UX guideline count in skill.json * docs: record official sources for IME guidance * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * test: verify IME retrieval and Enter shortcut example * chore: update UX guideline count in stack/README.md * chore: update UX guideline count in stack/docs/STACK.md * feat: add IME composition Enter guidance * docs: include IME Enter guidance in quick reference * chore: refresh runtime fingerprint for IME guidance * test: verify IME retrieval and Enter shortcut example * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * test: verify IME retrieval and Enter shortcut example * docs: include IME Enter guidance in quick reference * test: align platform query contract with UX count * docs: explain IME-safe Enter shortcuts and verification * feat: add IME composition Enter guidance * chore: refresh runtime fingerprint for IME guidance * test: verify IME retrieval and Enter shortcut example * docs: include IME Enter guidance in quick reference
84 lines
5.2 KiB
TypeScript
84 lines
5.2 KiB
TypeScript
import { expect, test } from '@playwright/test';
|
||
import { loadAllPlatformConfigs, renderSkillFile } from '../../src/utils/template.js';
|
||
|
||
const DESCRIPTION =
|
||
'UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 80 searchable styles (51 active), 192 product palettes and reasoning profiles, 74 font pairings, 120 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.';
|
||
|
||
test('all platform metadata uses one accurate activation description', async () => {
|
||
const configs = await loadAllPlatformConfigs();
|
||
expect(configs.size).toBe(25);
|
||
for (const [platform, config] of configs) {
|
||
expect(config.description, platform).toBe(DESCRIPTION);
|
||
if (config.frontmatter?.description) {
|
||
expect(config.frontmatter.description, platform).toBe(DESCRIPTION);
|
||
}
|
||
}
|
||
});
|
||
|
||
test('rendered guides expose the deterministic query contract', async () => {
|
||
const configs = await loadAllPlatformConfigs();
|
||
for (const [platform, config] of configs) {
|
||
const content = await renderSkillFile(config);
|
||
expect(content, platform).toContain('## Query Contract');
|
||
expect(content, platform).toContain('one dominant intent');
|
||
expect(content, platform).toContain('2–5 meaningful terms');
|
||
expect(content, platform).toContain('Retry once');
|
||
expect(content, platform).toContain('Do not persist unverified output');
|
||
expect(content, platform).toContain('explicit accessibility outcome terms');
|
||
expect(content, platform).toContain('semantic UX outcome first, then the detected stack');
|
||
expect(content, platform).toContain('orphan heading line balance' + '" --domain ux');
|
||
expect(content, platform).toContain('badge chip label wraps' + '" --domain ux');
|
||
expect(content, platform).toContain('live badge count screen reader' + '" --domain ux');
|
||
expect(content, platform).toContain('rapid chip animation interrupted' + '" --domain ux');
|
||
expect(content, platform).toContain('chip badge overflow nowrap' + '" --stack html-tailwind');
|
||
expect(content, platform).toContain('React/Next.js performance');
|
||
expect(content, platform).toContain('Native/app interface guidance');
|
||
expect(content, platform).not.toContain('React Native perf | `react`');
|
||
expect(content, platform).not.toContain('Searches domains in parallel');
|
||
expect(content, platform).not.toContain('Always start with `--design-system`');
|
||
}
|
||
});
|
||
|
||
test('rendered examples encode mode, retry, and persistence boundaries', async () => {
|
||
const config = await loadAllPlatformConfigs().then(configs => configs.get('codex'));
|
||
expect(config).toBeDefined();
|
||
const content = await renderSkillFile(config!);
|
||
expect(content).toContain('keyboard focus modal' + '" --domain ux');
|
||
expect(content).toContain('rerender memo list' + '" --domain react');
|
||
expect(content).toContain('virtualized list' + '" --stack react-native');
|
||
expect(content).toContain('--output-dir "<project-root>"');
|
||
expect(content).toContain('Read an existing `MASTER.md` before deciding whether `--force` is justified');
|
||
});
|
||
|
||
test('quick-reference copy matches whether the section is inlined', async () => {
|
||
const configs = await loadAllPlatformConfigs();
|
||
const danglingTag = /\{\{#(NO)?QR\}\}|\{\{\/(NO)?QR\}\}/;
|
||
|
||
for (const [platform, config] of configs) {
|
||
const content = await renderSkillFile(config);
|
||
expect(content, platform).not.toMatch(danglingTag);
|
||
|
||
if (config.sections.quickReference) {
|
||
expect(content, platform).toContain('## Quick Reference');
|
||
expect(content, platform).toContain('`ime-composition-enter`');
|
||
expect(content, platform).toContain('rely on the Quick Reference sections above');
|
||
expect(content, platform).toContain('Quick Reference checklist above');
|
||
expect(content, platform).toContain('Quick Reference → relevant section');
|
||
expect(content, platform).toContain('Quick Reference §6:');
|
||
expect(content, platform).toContain('apply the relevant Quick Reference sections and focused searches');
|
||
expect(content, platform).toContain('Run through Quick Reference **§1–§3**');
|
||
expect(content, platform).not.toContain('use the Search Reference, Common Rules, and Pre-Delivery Checklist in this skill');
|
||
} else {
|
||
expect(content, platform).not.toContain('## Quick Reference');
|
||
expect(content, platform).not.toContain('Quick Reference sections above');
|
||
expect(content, platform).not.toContain('Quick Reference checklist above');
|
||
expect(content, platform).not.toContain('Quick Reference →');
|
||
expect(content, platform).not.toContain('Quick Reference §');
|
||
expect(content, platform).toContain('use the Search Reference, Common Rules, and Pre-Delivery Checklist in this skill');
|
||
expect(content, platform).toContain('Step 3 (`ux` domain) + Common Rules');
|
||
expect(content, platform).toContain('`"color-dark-mode color-accessible-pairs" --domain ux`');
|
||
expect(content, platform).toContain('apply focused domain searches and the Common Rules below');
|
||
}
|
||
}
|
||
});
|