Skip to content

refactor: test events phase 2 (@miodec)#8036

Draft
Miodec wants to merge 78 commits into
masterfrom
test-events-phase2
Draft

refactor: test events phase 2 (@miodec)#8036
Miodec wants to merge 78 commits into
masterfrom
test-events-phase2

Conversation

@Miodec

@Miodec Miodec commented May 30, 2026

Copy link
Copy Markdown
Member

Yeet everything, derive from events.

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label May 30, 2026
@kiirod

kiirod commented May 30, 2026

Copy link
Copy Markdown

Wow

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

frontend/src/ts/test/replay-ui.ts:55

  • deriveReplayActions() infers word submission only from wordIndex changes, so a final word commit (space/newline) with no subsequent input event never emits submitCorrectWord/submitErrorWord. This breaks replay rendering (wordCount) and correctness coloring for the last word. Use the existing input event flag commitsWord to emit submit actions at the commit event time.

Comment thread frontend/src/ts/test/events/stats.ts
Comment thread frontend/src/ts/input/handlers/insert-text.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants