Skip to content

docs: improve JSDoc/TypeDoc documentation — remove inline comments, add missing public API docs#1919

Merged
pethers merged 24 commits into
mainfrom
copilot/improve-typedoc-jsdoc-patterns
May 11, 2026
Merged

docs: improve JSDoc/TypeDoc documentation — remove inline comments, add missing public API docs#1919
pethers merged 24 commits into
mainfrom
copilot/improve-typedoc-jsdoc-patterns

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 11, 2026

  • Analyze TypeDoc/JSDoc patterns in codebase
  • Remove @public tags (redundant in TypeDoc) across all type files
  • Add/improve JSDoc on exported items in src/types/ (constants, colors, ui, typography, index)
  • Remove inline comments inside method bodies in src/utils/ (deviceDetection, effectUtils, physicalAttributeValidation, player3DHelpers, math, haptics, etc.)
  • Improve JSDoc across util files (responsiveLayoutHelpers, mobileLayoutHelpers, sharedPhysicsConfig)
  • Batch 2: src/systems/ inline comment removal and JSDoc improvements
  • Batch 3: src/audio/ documentation
  • Batch 4: src/components/ documentation
  • Create pull request

pethers added 13 commits May 11, 2026 21:18
- Remove all @public JSDoc tags from src/types/ and src/utils/
- Remove standalone/EOL inline comments from function bodies
- Convert top-level // comments to proper JSDoc blocks in constants files
- Expand JSDoc on effectUtils.ts exported functions with @param/@returns/@category/@korean
- Clean // Fix: stub comments from constants/index.ts barrel

No logic changes. TypeScript check: 0 errors.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added types TypeScript type improvements three-components labels May 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

Copilot AI and others added 3 commits May 11, 2026 20:15
- Remove redundant comments that restate what code obviously does
  across CombatSystem.ts, EffectCalculator.ts, VitalPointSystem.ts,
  LayoutSystem.ts, PlayerEffectManager.ts, and sub-system files
- Preserve WHY-explaining comments, Korean-language comments,
  math formula explanations, and architectural rationale
- Upgrade bare // comments in game.ts to proper JSDoc blocks
  with @module, @category, and per-interface descriptions
- Replace doubled comments before enums in effects.ts with
  single JSDoc /** */ doc-comments
- Improve module-level JSDoc in types.ts and index.ts
  (remove auto-generated notice, add meaningful descriptions)

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
- Fix '맸통' → '몸통' (torso) in physicalAttributeValidation.ts
- Fix '쳌둥벽력' → '천둥벽력' (Thunder Strike) in technique.ts
- Fix '팔괴' → '팔괘' (Eight Trigrams) in controlMapping.ts and player-visual.ts
- Fix '공' → '곤' (Gon/Earth trigram) comment in player-visual.ts
- Fix '출혁' → '출혈' (blood loss) in player-visual.ts (two occurrences)
- Fix '머향하기상태/콜백' → '몸향하기상태/콜백' in player-visual.ts
- Fix '뉕3D속성' → '눈3D속성' (eye props) in facial.ts
- Fix '섈3D속성' → '입3D속성' (mouth props) in facial.ts
- Fix '펼기' → '펴기' (open hand) in hand-animation.ts (two occurrences)
- Fix '무술출캘' → '무술출처' (martial art origin) in hand-animation.ts
- Fix '부착뉴' → '부착뼈' (attached bones) in clothing.ts
- Fix '뉴맵' → '뼈맵' (bone map) in clothing.ts
- Fix '흥괴' → '흑괘' (Black Trigram) in PhysicsTypes.ts
- Fix 'colour' → 'color' in ui.ts (four occurrences)

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

- Add class-level JSDoc to AudioManager with @example and @korean tags
- Remove redundant inline comments restating obvious code behavior
- Remove stale dev-note '// Fix:' comment in crossfade method
- Replace '// Additional methods' / '// New optimized methods' section
  markers with proper method-level JSDoc where absent
- Remove auto-generated filepath comment from index.ts
- Remove redundant '// Re-export types that were missing' comment
- Add getter JSDoc to isInitialized property

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

@github-actions github-actions Bot added graphics Graphics and rendering (PixiJS) ui User interface improvements needs-tests Needs test coverage labels May 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

@github-actions github-actions Bot added the component-ui UI component changes label May 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

🎯 Accessibility Test Results

WCAG 2.1 Level AA Compliance Tests

  • ✅ Color contrast validation (4.5:1 for text, 3:1 for UI)
  • ✅ ARIA labels and roles validation
  • ✅ Keyboard navigation structure validation
  • ✅ Focus indicators validation
  • ✅ Dialog and menu semantics validation
  • ✅ Progress bars and timers validation

Components Tested

  • Accessibility utilities (keyboard nav, focus management)
  • Bilingual ARIA labels (Korean-English)
  • Button groups (VirtualDPad pattern)
  • Radiogroups (StanceWheel pattern)
  • Dialogs (PauseMenu pattern)
  • Progress bars (HealthBar, StaminaBar pattern)
  • Timers (CombatTimer pattern)

Test Framework

  • Tool: axe-core via jest-axe
  • Standard: WCAG 2.1 Level AA
  • Test Runner: Vitest

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

@github-actions
Copy link
Copy Markdown
Contributor

📸 Automated UI Screenshots

📋 Screenshots Captured (8)

# Screenshot
1 01-splash-screen.png - 01 splash screen.png
2 02-intro-screen-menu.png - 02 intro screen menu.png
3 03-intro-screen-archetype-selector.png - 03 intro screen archetype selector.png
4 04-controls-screen.png - 04 controls screen.png
5 05-philosophy-screen.png - 05 philosophy screen.png
6 06-training-screen.png - 06 training screen.png
7 07-combat-screen-practice.png - 07 combat screen practice.png
8 08-combat-screen-versus.png - 08 combat screen versus.png

📦 Download Screenshots

📥 Download all screenshots from workflow artifacts

Screenshots are preserved as workflow artifacts for 30 days.


🤖 Generated by Playwright automation

@pethers pethers marked this pull request as ready for review May 11, 2026 21:01
Copilot AI review requested due to automatic review settings May 11, 2026 21:01
@pethers pethers merged commit 2403a41 into main May 11, 2026
15 checks passed
@pethers pethers deleted the copilot/improve-typedoc-jsdoc-patterns branch May 11, 2026 21:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

Copilot stopped work on behalf of pethers due to an error May 11, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audio Audio and sound effects component-ui UI component changes graphics Graphics and rendering (PixiJS) needs-tests Needs test coverage three-components types TypeScript type improvements ui User interface improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants