14 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 3c985a07d6 feat(editor): quick start, next part, store links pasted anywhere, more stores and platforms
Editor:
- Quick start at the top: pick the channel profile and the game preset
  (remembered per device); replacing fields that hold something else asks
  first, everything offers Undo; "Update profile / preset" appears when the
  editor drifts from the one in use.
- Next part (number + 1) and New video (same game) clear what belonged to
  the last video: boss, timestamps, endings, pinned comment, sponsor…
  Applying a preset for another game or a template does the same first.
- Start over replaces Clear Draft and keeps the channel (profile fields);
  a new draft starts in the Default Output Language (it was always "en").
- A store link pasted anywhere — the page, the Game name field, another
  store's field — lands in the right store field, sets the platform for a
  game's first link and names the game from it (Roman numerals and
  well-known possessives restored: "Final Fantasy VII", "Baldur's Gate 3").
  Steam links keep their name slug and drop tracking parameters.
- Game-name suggestions from presets and history.

Catalogs:
- Stores: EA app, Ubisoft, Battle.net, Google Play, App Store, Meta Quest.
- Social: YouTube, Threads, Kick, Reddit, Bilibili; "X (Twitter)" with the
  X mark; threads.net and youtu.be links accepted.
- Cross-posting: YouTube Shorts, X (counted the way X counts — CJK,
  Vietnamese letters with diacritics and emoji count twice), Threads (one
  topic tag), Bluesky; hashtag caps per platform.
- Banks: MBV, VCBNeo, Vikki Bank (renamed OceanBank, CBBank, DongA Bank —
  saved old names get a one-click switch), Cake by VPBank, Timo.

Output:
- An empty channel name no longer leaves "…of Hades on ." — the channel
  phrase is dropped per language (8 locales, every template tested).
- Title alternatives are real title shapes with the user's separator and
  badge case; "Use this shape" sets them (new Title order setting:
  game first / video first); over-long ones can't be copied.
- Copy All can include the tags (setting); Batch picks Part or Demo part
  and continues from the editor's part number; Ctrl/Cmd+S saves the
  output to History.
- Social editor headings and hints translated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:29:44 +07:00
poli0981andClaude Opus 5.5 7e6c12152f fix(data): hardware names, YouTube's tag count, chapters, history duplicates, validation
Hardware
- GPU catalog rewritten with stable ids and official names: descriptions
  read "NVIDIA GeForce RTX 5080", "AMD Radeon RX 9070 XT", "Apple M4 Pro"
  instead of "NVIDIA RTX 5080" / "AMD RX 9070 XT" / "Apple Silicon M4 Pro".
  Cards that never shipped (RX 9080, RX 9090 XT, Arc B380) are gone;
  RTX 50/40/30 laptop GPUs, RX 9070 GRE, VRAM variants, Radeon/Intel
  integrated graphics, handheld APUs and Apple M5 (Pro/Max/Ultra) added.
  One searchable picker ("5080", "rog ally") replaces Brand › Series ›
  Model, with free text for anything else.
- Old `brand|series|model` values are migrated (editor v19, profiles v3,
  templates v2, and on load/import); unknown cards keep their full name.
- RAM: 24/48/192 GB, LPDDR4/4X/5/5X, optional speed ("32 GB DDR5-6000");
  no DDR6/DDR7; plain "DDR"; "48GB GB" fixed; changing the size no longer
  clears the type. OS: SteamOS, Bazzite, CachyOS, Nobara, openSUSE,
  Fedora 43/44; Linux reads "Ubuntu 24.04 LTS". CPU: suggestions, and
  Windows' "Intel(R) Core(TM) … CPU @ 3.60GHz" is tidied on blur.
- The rig block uses translated labels in a fixed order (CPU, GPU, RAM…)
  in both the description and the social captions.

Tags
- Measured the way YouTube counts (quotes around multi-word tags, one
  comma between): 15 of 51 real tag sets were over 500 by YouTube's count
  while showing under. Counters and the limit warning use the same count.
- Trimming keeps trying shorter tags after one that doesn't fit.
- "Elden Ring Steam", "itch.io gameplay" (was STEAM / ITCHIO); no platform
  tags for a publisher site; "best open world games" (was "openworld");
  RPG/simulation/card pools no longer carry other genres' tags.

Timestamps
- Keywords need a word boundary: "Final Fantasy VII" stays a title (was
  "Ending Fantasy VII"), "Introduction" stays whole.
- Accepts [0:00], 0:00 - label and editor frame counts; pt-BR and
  Indonesian keywords; a Tidy up button; a live check of YouTube's
  chapter rules (0:00 first, 3+, 10 s apart, in order).

Output and data
- History keeps one entry per video (updated in place) instead of one per
  Output visit; existing duplicates are folded (history v3). The History
  Limit is healed on every load.
- A field over its limit blocks only its own copy button (Copy All: title
  or description); a warning when YouTube would reject "<" or ">".
- Validation: Steam /sub/, /bundle/ and s.team links, GOG/Humble/xbox.com
  without www, regional Nintendo sites, Microsoft Store, Luna; social
  links with www./m./twitter.com; phone, YouTube Music and
  video-in-playlist links (normalised); email domains need a TLD; the live
  URL is validated; no bare "#" hashtag.
- The engine takes the year from the caller; "Ending N" follows the output
  language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 21:11:58 +07:00
poli0981andClaude Opus 5 6b6613cca0 fix(batch): render split contact emails in Batch, and make the drift impossible
Reported: with Settings → "Split contact email by purpose" ON, the Batch tab
showed only the old single "📧 Business inquiries:" line, while the Output tab
correctly showed the grouped 📧 BUSINESS / CONTACT block with all three
addresses.

Root cause is not in the engine. `renderAll` had three call sites, each
hand-copying the same twelve settings fields into an options object, and
BatchPage's copy was missing two: `splitContactEmail` and `showThirdPartyAds`
(plus `tEn`). An absent flag defaults to `false` inside `buildDescription`, so
the else-branch emitted the legacy single line — silently, with no type error
and no failing test, because the engine tests call `buildDescription` directly
with an explicit options object and never exercise the wiring.

Rather than add a third copy of the list, the mapping now lives in one place:

- `SettingsRenderOptions` (settings-derived) is split from
  `RenderOptionOverrides` (per-caller: `tEn`, `bilingualContentBlocks`), and
  `RenderOptions` is their intersection. Same shape as before for `renderAll`.
- New `useRenderOptions` / `buildRenderOptions` produce the settings half; all
  three call sites consume it and layer only their own overrides.

Two guards, both verified to fail when the original bug is reintroduced:

- Compile-time: `buildRenderOptions` builds a `Required<SettingsRenderOptions>`,
  so dropping a key is `TS2741: Property 'splitContactEmail' is missing`.
- Runtime: `tests/hooks/render-options-parity.test.ts` diffs the produced keys
  against `SETTINGS_DERIVED_RENDER_KEYS` in both directions and names the
  offending key in the failure message.

Also fixed by the same change, since Batch was dropping it too:
`showThirdPartyAds` — the SPONSORS & PARTNERS block now renders in Batch.

Batch deliberately still passes no `tEn`: its rows are one language each, so
the bilingual `EN · LOCAL` treatment would duplicate every content-warning line.

Note for the changelog: Batch descriptions get *longer* for anyone who had
either toggle on, because those blocks were being silently dropped.

Tests 621 → 629.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 10:41:33 +07:00
poli0981andClaude Opus 4.8 633298c049 feat: split contact email by purpose behind a toggle (v0.34.0)
Add a Settings "Split contact email by purpose" toggle (off by default).
When on, the editor exposes three email fields — Contact, Advertising,
and Game keys & playtest — and the description renders a grouped
"BUSINESS / CONTACT" block with one labeled line per non-empty field.
Off keeps the single "Business inquiries" line unchanged.

- New editor fields adEmail/gameKeyEmail (persist v17->v18); contactEmail
  is reused as the Contact line, so no saved data moves. The
  splitContactEmail toggle mirrors showThirdPartyAds end-to-end
  (settings persist v10->v11). Profiles persist v1->v2. All migrations
  are additive back-fills.
- +8 ui / +4 templates i18n keys across all six locales (983/563).
- 621 tests pass (613 + 8), typecheck/lint/locale validation green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 20:59:19 +07:00
poli0981andClaude Opus 4.8 da22625178 fix(engine): keep multi-language content blocks single-language (v0.29.3)
Multi-language Output tabs were rendering content warnings / tech notes / playthrough notes bilingually after v0.29.2 forwarded the shared `tEn` translator. New `bilingualContentBlocks` render option (default true) lets the multi-language hook keep those blocks single-language while the AI-translation disclaimer stays bilingual. Single-language output unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 20:33:04 +07:00
poli0981andClaude Opus 4.8 f86469485f feat(v0.24.0): cross-post captions, theme toggle, translation notice, Telegram
Adds a cross-post caption generator (TikTok 4000 / Instagram Reels 2200 / Facebook Reels 2200) with single + bulk modes and JSON import/export, a header dark/light theme toggle synced with Settings, an opt-in translation-quality notice for non-trusted (non EN/VI) output languages, and a Telegram social link. Fixes a stray 'Pick a DDR generation' warning on the OS Rig field via a pure validateCompositeField helper. Extracts a shared buildBilingualBulletSection helper reused across content warnings, tech notes, the translation notice, and the social-post builder. +28 tests (482 total). Gates green: typecheck, lint, validate:locales, knip, build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 12:28:42 +07:00
poli0981andClaude Opus 4.7 58fce6d8d2 feat(v0.21.0): +12 death-method warnings, video-vs-game copyright disclaimer, game-credit toggle, VI censoring sweep
Reduces YouTube auto-flag risk on Vietnamese descriptions, adds twelve method-specific
death/violence warnings, rewords the channel copyright line to disambiguate video
content from game IP, and adds an opt-in toggle for crediting the game's studio/publisher
in the description.

- F1: VI censoring sweep — 2-tier policy (asterisk + euphemism) applied consistently
  across warning labels/templates; fixes malformed `b* ng*y h*i` and uncensored `Bạo lực`.
- F2: +12 warnings (hanging_depiction, drowning_depiction, burning_alive, ...,
  defenestration) extend group `sensitive` (49→61). Total 175→187 across 9 groups.
- F3: Channel copyright reworded 1 line → 2-3 sentence disclaimer in all 6 locales.
  JA/KO/ZH now ship proper translations (no more EN fallback).
- F4: New `showGameCopyright` setting (default off) renders `© {publisher}` line right
  after store links. `pubDevName` promoted to first-class field in GameInfoForm,
  persists in GamePreset, decoupled from publisher store URL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 23:00:21 +07:00
poli0981andClaude Opus 4.7 4d974bbfc6 feat(v0.11): vendor-aware graphics, third-party ads block, bilingual content-warning checklist
Three independent v0.11 features in one PR:

- Vendor-aware upscaling & frame-gen options. NVIDIA exposes DLAA + 4
  quality bins and goes to x4 multi-frame-gen; AMD keeps FSR Native AA
  and caps at x3; Intel adds XeSS Ultra Quality and ships only x2.
  Description-builder uses vendor-keyed full labels ("NVIDIA DLAA",
  "AMD FSR Quality", "Intel XeSS Ultra Quality") so DLAA reads
  correctly without double-prefixing. Stale combos coerce to "none"
  on rehydrate (editor / template stores) and on profile / preset /
  template loads via normalizeEditorPatch.

- Third-party advertising block. New `showThirdPartyAds` toggle in
  Settings → Description renders a "🤝 SPONSORS & PARTNERS" section
  driven by a per-profile `thirdPartyAdText` Textarea. Multi-line
  preserved verbatim. Block gated on toggle ON AND text non-empty;
  the SettingsPage shows an inline hint pointing to Profiles → Edit
  when the toggle's on but the field's blank.

- Content-warning overhaul. Replaces the v0.7 WarningToggles (2
  booleans + 3-item checklist) with ContentWarningChecklist —
  searchable, collapsible-grouped checkboxes covering 44 items
  across Spoilers / Photosensitive / Phobias / Mental health /
  Mature & Sensitive. Description renders a unified bilingual block:
  "▸ ⚠️ CONTENT WARNINGS / CẢNH BÁO NỘI DUNG" header (bilingual
  when output language ≠ English), two-line intro, bullets paired
  via U+00B7 MIDDLE DOT (`• EN · local`). Vietnamese labels apply
  asterisk masking on YouTube-ToS-prone terms (`t* tử`,
  `x*m h*i t*nh d*c`, `g*ết người`); other locales use clinical
  wording. Selection order preserved.

Migrations:
- editor-store v8 → v9 (legacy boolean → checklist + ad text +
  vendor coercion).
- settings-store v8 → v9 (showThirdPartyAds default false).
- profile-store unversioned → v1 (thirdPartyAdText back-fill).
- template-store unversioned → v1 (vendor coercion on snapshots).

Verification:
- typecheck / lint / validate:locales clean.
- 310 / 310 tests green (9 new cases for vendor labels, bilingual
  rendering, censoring, ads gating, multi-line preservation, and
  selection order).
- Production build succeeds; main chunk 313 KB (under the 500 KB
  bundle constraint in CLAUDE.md).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 16:15:28 +07:00
poli0981andClaude Opus 4.7 c73c51472e feat(v0.7-phase1): title-format settings + reorganized Settings page (#30)
Add user-configurable title formatting so creators can switch the Batch
and Editor output to badge-first styles like "[2k] - Game - phần 1 -
Gameplay No Commentary". Reorganize the Settings page from 5 mixed
sections into 7 purpose-based sections so knobs are easier to locate.

Settings changes
- New nested `titleFormat: { badgePosition, separator, badgeCase }`
  config in SettingsData with defaults that reproduce v0.6 output
  byte-for-byte (middle / emDash / upper).
- Settings store v4 -> v5 with defensive sub-key merge in
  healSettings so a partial titleFormat object keeps working defaults.
- New `setTitleFormat(patch)` action.
- Page split into Appearance / Language & Defaults / Editor / Title /
  Description / Tags / History.

Engine changes
- buildTitle accepts an options bag (BuildTitleOptions) while still
  accepting the legacy boolean third arg, so title-variants.ts and any
  other existing caller keeps working unchanged.
- New composeTitle helper handles prefix / middle / suffix badge
  positions; empty-badge case collapses all three to identical output.
- Separator resolution prefers `title.separators.<id>` with fallback to
  the legacy `title.separator` key so partial locales still render.
- TitleFormatConfig + related types live in engine/types.ts (engine
  stays pure, store re-exports).

Renderer / call sites
- RenderOptions.titleFormat threads through template-renderer into
  buildTitle from useGeneratedOutput, useMultilangOutput, and BatchPage.
- Drive-by fix: useMultilangOutput was missing showSponsorCredit and
  the sponsor fields on its GeneratorInput; added both so multi-lang
  output matches single-lang.

Locales (6 languages)
- templates.json gains `title.separators.{emDash,hyphen,colon,pipe}`.
- ui.json gains the 14 new settings labels (titleFormatTitle,
  descriptionSettingsTitle, badgePosition{Prefix,Middle,Suffix},
  titleSeparator{EmDash,Hyphen,Colon,Pipe}, badgeCase{Upper,Lower}).
- _schema.json updated; `npm run validate:locales` passes 291/291 ui
  keys and 89/89 template keys per locale.

Tests
- 10 new title-builder cases (prefix/middle/suffix, lower-case, hyphen/
  colon/pipe separators, empty-badge collapse, legacy-separator
  fallback, legacy-boolean arg).
- 3 new settings-heal cases (v4 -> v5 back-fill, partial titleFormat
  merge, corrupt non-object titleFormat).
- Full suite: 156/156 pass.

Version
- package.json 0.6.0 -> 0.7.0-phase1. Tag + final 0.7.0 bump will land
  with phase 2 (pinned-comment templates + new description fields).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 21:22:42 +07:00
poli0981andClaude Opus 4.7 a5b2a16c29 feat(v0.6): sponsor / key-provider credit toggle (#28)
Adds a new optional "🎁 Thanks to {sponsor} for providing the
{platform} key of this game." line to the generated description, for
creators who get review / press keys from publishers or developers.

- Editor: new SponsorCreditEditor (sponsor name + key platform) inside
  the Attribution accordion. Editor store v2 → v3 with a trivial
  migration that back-fills empty strings for old drafts.
- Settings: new `showSponsorCredit` toggle under Tag Settings. Off by
  default so existing users see no behaviour change. Settings store
  v3 → v4; healSettings back-fills the new default.
- Engine: `buildDescription` / `renderAll` take a `showSponsorCredit`
  option. Renders only when the toggle is on AND BOTH sponsor fields
  are non-empty — partial data is treated as "not ready, skip" rather
  than rendered with holes. Positioned above the music section and
  donate block so the thank-you is visually prominent.
- i18n: added sponsor-section UI labels/placeholders, the
  `settings.showSponsorCredit` toggle label, and
  `description.sections.sponsorCredit` template across all 6 locales
  (en, vi, ja, es, ko, zh) + schema.
- Tests: 7 new description-builder cases (render / toggle-off / blank
  name / blank platform / trim / ordering / vi localization) + 1
  healSettings case for the v3 → v4 back-fill.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 10:48:51 +07:00
poli0981andClaude Opus 4.7 42bc7e8b6d feat(v0.5): A/B title variants, template cloning, copyright + usage policy
Phase 6 closes v0.5.0. Ships the last two roadmap features plus the two
description-footer additions the user requested mid-flight.

## A/B title variants

New `src/engine/title-variants.ts` exposes a pure `buildTitleVariants`
that reuses `buildTitle` and `buildQualityBadge` to produce 3 phrasings:

- default:      Game — Type [2K] — suffix
- typeFirst:    Type — Game [2K] — suffix
- qualityFirst: [2K] Game — Type — suffix

`qualityFirst` collapses to the default shape when no badge exists so
callers never see two identical variants.

UI: `VariantPicker` modal opens from the Output page's "Generate
alternatives" button. Each variant has its own CharCounter + Copy.

## Template cloning ("Save as Template")

New `src/store/template-store.ts` persists full-form snapshots of the
editor (`TemplateSnapshot` matches editor-store's partialize shape so
`loadProfile()` can restore everything). Dual-write to file-backed
storage alongside the other stores.

- Output page header gains "Save as Template" → modal prompting a
  name, saves the entire editor state.
- Profiles page gains a third tab "Templates" with list / apply /
  delete, plus export / import JSON — matches the existing preset
  tab pattern.

## Copyright footer (new)

`description-builder` appends section 13.5 between CTA and hashtags
when `showCopyright` is on AND `channelName` is non-empty:

  © 2026 TestChannel. All rights reserved.

`RenderOptions.showCopyright` (default true) threads through
`renderAll` → both hooks → BatchPage. Settings toggle added in Tags
section. Skipping when channelName is blank prevents orphan
"©  . All rights reserved." lines.

## Usage policy block (new)

Section 13.7 — localised fixed template behind `showUsagePolicy`
(default off). Uses the 5-bullet "how to reuse my footage" block
supplied by the user, translated to all 6 locales with plain-text
bullets (YouTube descriptions don't render markdown).

All 6 locales gain:

- `description.sections.copyright` (interpolates year + channelName)
- `description.sections.usagePolicyHeader` (e.g. 📋 USAGE POLICY)
- `description.sections.usagePolicy` (multi-line body)

## i18n

Schema grew to 273 ui + 84 templates keys. Added namespaces:
- `ui.output` — `generateAlternatives`, `saveAsTemplate`,
  `variants.{default, typeFirst, qualityFirst}`
- `ui.templates` — title, createNew, saveAsTemplate, templateName,
  templateNamePlaceholder, loadTemplate, deleteConfirm, emptyState,
  saveHint, savedAs, appliedToast, export/importTemplates
- `ui.settings` — showCopyright, showUsagePolicy

## Signature change

`buildDescription(input, t, hashtagCount)` → `buildDescription(input,
t, options?)` where options is `{ hashtagCount, showCopyright,
showUsagePolicy }`. All internal callers updated; no public API
exposed outside the engine.

## Version bump

`package.json`, `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml` →
`0.5.0`. CLAUDE.md updated to mention `title-variants.ts` and
`template-store.ts`.

## Tests

129 passing (+13 new):
- 7 title-variants tests — shape, ordering, badge on/off, fallback
  when no badge, mod name interpolation.
- 6 description-builder tests — copyright render/skip/no-channel,
  usage policy render/skip, footer order (CTA → copyright → policy
  → hashtags).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 21:17:08 +07:00
poli0981andClaude Opus 4.7 e5314ce09c feat(title): quality badge + mods and collectibles video types
Phase 3 of the v0.5 roadmap. Brings two related title-surface upgrades.

## Quality badge "[2K 60FPS]"

- New `buildQualityBadge` helper in title-builder renders a compact
  badge after the video-type segment when resolution/fps are above the
  defaults:
    1080p 60fps → no badge
    1440p 60fps → "[2K]"
    4K 120fps → "[4K 120FPS]"
    1080p 120fps → "[1080p 120FPS]" (resolution retained so a lonely
    fps isn't ambiguous)
  1440p maps to "2K" for title scannability; 720p and 4K pass through.
- Example output:
    Elden Ring — Part 5 [2K] — Gameplay No Commentary
- Settings toggle `showQualityBadge` (default true, in Tags section)
  lets creators opt out.
- `RenderOptions.showQualityBadge` threads through `renderAll`,
  `useGeneratedOutput`, `useMultilangOutput`, and the BatchPage render
  loop.

## Mods + Collectibles video types

Two new entries in VIDEO_TYPES for gameplay channels that frequently
make this kind of content:

- `mods` (icon 🧩): extra field `modName`. Title renders as
  "{{modName}} Mods" (e.g. "Requiem Mods"). Intro template names the
  mod. Tag pool: "mods", "modded gameplay", "mod showcase", etc.
- `collectibles` (icon ⭐): no extra fields. Title "All Collectibles".
  Tag pool covers 100% collectibles, completionist run, achievement
  guide.

GameInfoForm renders the modName input when the video type is `mods`.
`GeneratorInput.modName` is optional and threaded through both title
and description builders.

## i18n

All six locales (en/vi/ja/es/ko/zh) gain:
- `title.videoType.mods` + `.collectibles` (title templates)
- `description.intro.mods` + `.collectibles` (intro templates)
- `videoTypes.mods` + `.collectibles` (UI labels)
- `editor.modName` + `.modNamePlaceholder`
- `settings.showQualityBadge`

Schema bumped; validate:locales shows 237/237 ui + 80/80 templates.

## Tests

113 passing (+15 new). New coverage:
- 6 buildQualityBadge unit tests (all resolution/fps combinations)
- 6 buildTitle tests for badge placement, override, and both new
  video types
- 2 tag-generator tests for the new VIDEO_TYPE_TAGS entries

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 20:22:07 +07:00
poli0981andClaude Opus 4.6 5e7b258383 feat: Phase 3 — History, Batch, Multi-lang, Settings, Shortcuts
History system:
- history-store (Zustand + persist, configurable limit, auto-prune)
- HistoryPage with search/filter, expand/collapse, copy, delete
- Auto-save to history when viewing Output page

Batch mode:
- BatchPage generates multiple parts (start/end range)
- Copy individual or all combined outputs

Multi-language output:
- Language selector chips on OutputPage
- Tab-based display when multiple languages selected
- useMultilangOutput hook using i18n.getFixedT per language
- Copy all languages combined

Settings page:
- Theme toggle, default UI/output language, default genre
- Editor: auto-save draft, show char count, compact tag display
- Tags: multilingual tags, trending tags, hashtag count (1-3)
- History: configurable limit (10-500)
- Settings wired into engine via renderAll options

Keyboard shortcuts:
- Ctrl+Enter (navigate to output), Ctrl+Shift+C (copy all)
- Ctrl+S (save draft), Ctrl+/ (shortcut help modal)
- ShortcutHelpModal with all keybindings

Content expansion:
- 14 video types (+comparison, guide)
- 25 genres (+mmo, rhythm, puzzle, tower_defense, card_game, battle_royale, crpg, tactical, space, farming)
- 6 languages (EN/VI/JA + ES/KO/ZH) — 184 UI keys + 45 template keys each
- Tag pools for all new genres and video types

UX polish:
- Responsive layout (mobile-first with lg breakpoint)
- Lazy-loaded pages (React.lazy + Suspense)
- Scrollable tab bar
- showCharCount and compactTagDisplay settings in OutputPreview

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 22:42:32 +07:00
poli0981andClaude Opus 4.6 a763f7c78a feat: Phase 1 MVP scaffold — core engine, i18n, UI, CI/CD
Complete Phase 1 implementation of YTDescGen:
- Project setup: Vite 5 + React 18 + TypeScript strict + Tailwind CSS dark theme
- Config layer: 7 video types, 10 genres, 7 platforms, rig/social fields
- i18n: EN/VI/JA with separate UI and template namespaces + validation script
- Core engine: title-builder, description-builder, tag-generator (pure TS, zero React)
- 42 unit tests covering all engine functions
- Zustand stores: editor + settings with localStorage persistence
- UI: 6 primitives, 11 editor components, 4 output components, 3 layout components
- Pages: Editor (form + quick preview) and Output (title/desc/tags + copy)
- CI/CD: GitHub Actions for lint/typecheck/test/build + GitHub Pages deploy

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 21:46:59 +07:00