Skip to content

[pull] master from monkeytypegame:master#872

Merged
pull[bot] merged 5 commits into
Uncodedtech:masterfrom
monkeytypegame:master
May 12, 2026
Merged

[pull] master from monkeytypegame:master#872
pull[bot] merged 5 commits into
Uncodedtech:masterfrom
monkeytypegame:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 12, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

chinmaydwivedi and others added 5 commits May 12, 2026 13:54
…ydwivedi) (#7837)

## Summary
- **Efficient friends leaderboard count**: Replaced full document fetch
+ `.length` with a `$count` aggregation stage in `getCount()` for the
friends-only path.
- **Atomic PB update**: Merged two separate `updateOne` calls in
`checkIfPb()` into a single update, so `personalBests` and optional
`lbPersonalBests` are written together.
- **Remove debug console.log**: Removed the `console.log` in
`addImportantLog()` that printed event name, payload, and UID.

## Files Changed
| File | Change |
|------|--------|
| `backend/src/dal/leaderboards.ts` | Friends count now uses `$count`
aggregation |
| `backend/src/dal/user.ts` | Atomic PB update (streak migration guard
retained) |
| `backend/src/dal/logs.ts` | Remove debug `console.log` |

## Test Plan
- [x] Verify friends leaderboard count returns correct values with
`$count`
- [x] Verify PB updates persist both `personalBests` and
`lbPersonalBests` in one update
- [x] Run existing test suite (`pnpm test-be`)

## Notes
- Tests were not run in this local environment because the repo requires
Node `>=24 <25` and the current environment is Node `v20.16.0`.

Co-authored-by: Jack <jack@monkeytype.com>
…er on input (@AzureNightlock) (#7851)

### Description
This PR: Fixes the first character being skipped on input by only
clearing the form when the page isn't open.

Changes Made:
* form.reset() runs only when isOpen is false, Hence clearing the form
when the user leaves the page. When the user comes back to the page, the
form is cleared instead of clearing when the user first enters the page

Additional Changes Made:
* Removed the unused catch parameter ("e") from onChangeAsync.
* showIndicator doesn't show up when the field is blank

### Checks

- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

Closes #7850

Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
…7849)

### Current Behavior for Reduced Motion

1. keep  - Letters stay (No change)                   
2. hide  - Letters vanish instantly (No change)
3. fade - Letters stay **(Effect is lost)**                   
4. dots -  Letters become dots instantly  (has a Fallback)

### Changes
This PR makes sure that `fade` effect works for reduced motion by adding
it to the global exclude list for reduced motion.

Closes #7847
@pull pull Bot locked and limited conversation to collaborators May 12, 2026
@pull pull Bot added the ⤵️ pull label May 12, 2026
@pull pull Bot merged commit a4cfbb4 into Uncodedtech:master May 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants