Commit graph

11839 commits

Author SHA1 Message Date
Christian Fehmer
499754a933
ci: fix missing dependencies when running pr-check-other-json (@fehmer) (#6529) 2025-05-05 12:51:31 +02:00
Christian Fehmer
ca33892749
ci: run layouts tests on pr-check-other-json (@fehmer) (#6520)
- execute the layouts.spec.ts on pr-check-other-json
2025-05-05 11:42:29 +02:00
Christian Fehmer
72016eaab7
fix: compatibility banner blocked by ublock (@fehmer) (#6502)
!nuf
2025-05-05 11:40:07 +02:00
Matthew Lau
024e86e842
fix: stop broken background images from displaying (@mattlau1) (#6526)
### Description

If the specified background image is invalid, then we can hide it using
`this.style.display='none'`, which will also hide the default white
outline and broken image icon

Also fixed a typo in the notification for it (temporairly ->
temporarily)

Tested fix by entering invalid custom background URL in settings (i.e.
`https://tehtuhgsfdsfjsdg.com/test.jpg`)

Closes #6524 

<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->

<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234](https://github.com/monkeytypegame/monkeytype/pull/1234) -->

<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->

Thanks!! :)
2025-05-05 11:36:15 +02:00
Miodec
c7ac9ad6ff chore: stop update if element was not found
should fix an uncaught exception
2025-05-04 12:27:07 +02:00
Miodec
17c8f6d5d7 impr: show loading bar when fetching language/quotes to indicate background activity 2025-05-04 11:57:50 +02:00
Miodec
8ec109db8c chore: dont set page transition when restartin the test 2025-05-04 11:50:18 +02:00
Miodec
2b292b0423 chore: only save 50% of the error replays 2025-05-03 23:26:46 +02:00
Miodec
d02f41e2bd fix(quote search): uncaught errors when closing modal right after search input
!nuf
2025-05-03 23:09:21 +02:00
Miodec
5ba39c6336 refactor: rework theme picker button and tab approach
split some of the code into smaller functions
refactor some functions
fix styling
2025-05-03 22:58:29 +02:00
Miodec
d4d621e5a6 style: fix too big of a gap between tab buttons and theme buttons 2025-05-03 22:30:12 +02:00
Miodec
2c161e5cad chore: use vanilla js to try to fix weird stack size error 2025-05-03 14:24:01 +02:00
Christian Fehmer
2506b4f88d
impr(settings): settings group performance (@fehmer, @miodec) (#6509)
Co-authored-by: Miodec <jack@monkeytype.com>
2025-05-03 13:51:14 +02:00
Miodec
ac33789bd8 fix: catch errors when google sign up failed 2025-05-03 13:22:03 +02:00
Miodec
57ccfbb985 chore: optional chaining to avoid throwing errors 2025-05-03 13:07:54 +02:00
Miodec
3953d645b9 chore: add basic log when initializing test 2025-05-03 12:58:47 +02:00
Miodec
b806179137 fix: errors during word generation when custom text was empty
also migrate if an empty array was found in localstorage
2025-05-03 12:28:19 +02:00
Jack
b257a52f41
impr: add fallback and migrate to parsejsonwithschema (@miodec) (#6518)
!nuf
2025-05-03 12:14:35 +02:00
Miodec
fc2b051715 refactor: handle cases when grecaptcha failed to load 2025-05-03 12:02:51 +02:00
Miodec
16f3da057d fix: unhandled exception when cancelling google sign in 2025-05-03 12:02:51 +02:00
Miodec
949b61801c chore: check if caches exists 2025-05-03 12:02:51 +02:00
Miodec
07f2d8667d chore: try to use auto commit detection again 2025-05-03 12:02:51 +02:00
dependabot[bot]
79aa3a569f
build(deps-dev): bump vite from 6.3.0 to 6.3.4 in /frontend (#6510)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite)
from 6.3.0 to 6.3.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/releases">vite's
releases</a>.</em></p>
<blockquote>
<h2>v6.3.4</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/v6.3.4/packages/vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
<h2>v6.3.3</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/v6.3.3/packages/vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
<h2>v6.3.2</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/v6.3.2/packages/vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
<h2>create-vite@6.3.1</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/create-vite@6.3.1/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
<h2>v6.3.1</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/v6.3.1/packages/vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md">vite's
changelog</a>.</em></p>
<blockquote>
<h2><!-- raw HTML omitted -->6.3.4 (2025-04-30)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: check static serve file inside sirv (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19965">#19965</a>)
(<a
href="c22c43de61">c22c43d</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19965">#19965</a></li>
<li>fix(optimizer): return plain object when using <code>require</code>
to import externals in optimized dependenci (<a
href="efc5eab253">efc5eab</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19940">#19940</a></li>
<li>refactor: remove duplicate plugin context type (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19935">#19935</a>)
(<a
href="d6d01c2292">d6d01c2</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19935">#19935</a></li>
</ul>
<h2><!-- raw HTML omitted -->6.3.3 (2025-04-24)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: ignore malformed uris in tranform middleware (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19853">#19853</a>)
(<a
href="e4d520141b">e4d5201</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19853">#19853</a></li>
<li>fix(assets): ensure ?no-inline is not included in the asset url in
the production environment (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/1949">#1949</a>
(<a
href="16a73c05d3">16a73c0</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19496">#19496</a></li>
<li>fix(css): resolve relative imports in sass properly on Windows (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19920">#19920</a>)
(<a
href="ffab442704">ffab442</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19920">#19920</a></li>
<li>fix(deps): update all non-major dependencies (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19899">#19899</a>)
(<a
href="a4b500ef9c">a4b500e</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19899">#19899</a></li>
<li>fix(ssr): fix execution order of re-export (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19841">#19841</a>)
(<a
href="ed29dee2eb">ed29dee</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19841">#19841</a></li>
<li>fix(ssr): fix live binding of default export declaration and hoist
exports getter (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19842">#19842</a>)
(<a
href="80a91ff824">80a91ff</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19842">#19842</a></li>
<li>perf: skip sourcemap generation for renderChunk hook of
import-analysis-build plugin (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19921">#19921</a>)
(<a
href="55cfd04b10">55cfd04</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19921">#19921</a></li>
<li>test(ssr): test <code>ssrTransform</code> re-export deps and test
stacktrace with first line (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19629">#19629</a>)
(<a
href="9399cdaf8c">9399cda</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19629">#19629</a></li>
</ul>
<h2><!-- raw HTML omitted -->6.3.2 (2025-04-18)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: match default asserts case insensitive (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19852">#19852</a>)
(<a
href="cbdab1d6a3">cbdab1d</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19852">#19852</a></li>
<li>fix: open first url if host does not match any urls (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19886">#19886</a>)
(<a
href="6abbdce3d7">6abbdce</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19886">#19886</a></li>
<li>fix(css): respect <code>css.lightningcss</code> option in css
minification process (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19879">#19879</a>)
(<a
href="b5055e0dd4">b5055e0</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19879">#19879</a></li>
<li>fix(deps): update all non-major dependencies (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19698">#19698</a>)
(<a
href="bab4cb9224">bab4cb9</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19698">#19698</a></li>
<li>feat(css): improve lightningcss messages (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19880">#19880</a>)
(<a
href="c713f79b5a">c713f79</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19880">#19880</a></li>
</ul>
<h2><!-- raw HTML omitted -->6.3.1 (2025-04-17)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: avoid using <code>Promise.allSettled</code> in preload function
(<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19805">#19805</a>)
(<a
href="35c7f35e2b">35c7f35</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19805">#19805</a></li>
<li>fix: backward compat for internal plugin <code>transform</code>
calls (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19878">#19878</a>)
(<a
href="a152b7cbac">a152b7c</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/19878">#19878</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b040d547a1"><code>b040d54</code></a>
release: v6.3.4</li>
<li><a
href="c22c43de61"><code>c22c43d</code></a>
fix: check static serve file inside sirv (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19965">#19965</a>)</li>
<li><a
href="efc5eab253"><code>efc5eab</code></a>
fix(optimizer): return plain object when using <code>require</code> to
import externals ...</li>
<li><a
href="d6d01c2292"><code>d6d01c2</code></a>
refactor: remove duplicate plugin context type (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19935">#19935</a>)</li>
<li><a
href="db9eb97b2f"><code>db9eb97</code></a>
release: v6.3.3</li>
<li><a
href="e4d520141b"><code>e4d5201</code></a>
fix: ignore malformed uris in tranform middleware (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19853">#19853</a>)</li>
<li><a
href="55cfd04b10"><code>55cfd04</code></a>
perf: skip sourcemap generation for renderChunk hook of
import-analysis-build...</li>
<li><a
href="ffab442704"><code>ffab442</code></a>
fix(css): resolve relative imports in sass properly on Windows (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19920">#19920</a>)</li>
<li><a
href="16a73c05d3"><code>16a73c0</code></a>
fix(assets): ensure ?no-inline is not included in the asset url in the
produc...</li>
<li><a
href="9399cdaf8c"><code>9399cda</code></a>
test(ssr): test <code>ssrTransform</code> re-export deps and test
stacktrace with first ...</li>
<li>Additional commits viewable in <a
href="https://github.com/vitejs/vite/commits/v6.3.4/packages/vite">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vite&package-manager=npm_and_yarn&previous-version=6.3.0&new-version=6.3.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/monkeytypegame/monkeytype/network/alerts).

</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2025-05-02 19:50:40 +02:00
Miodec
141a84caa7 refactor: remove pointless rethrows causing loss of original error 2025-05-02 18:33:17 +02:00
Miodec
fb529ae53b chore: remove duplicated onerror listener 2025-05-02 18:33:17 +02:00
Miodec
2a95c2b6fb chore: drop third party frames 2025-05-02 18:33:17 +02:00
Christian Fehmer
be2d830446
fix: failed to fetch commandline when a version/hotfix is deployed (@fehmer) (#6507) 2025-05-02 18:33:00 +02:00
Miodec
4cca5809a8 fix: client version potentially being different during build
!nuf
2025-05-02 14:47:43 +02:00
Miodec
e5d8bd332f chore: always init sentry, dont send in dev mode, add debug logs to sentry 2025-05-02 14:34:56 +02:00
Miodec
33a90228f4 chore: remove duplicate console.error on rejection 2025-05-02 14:21:31 +02:00
Miodec
a99408a92f chore: remove error logging to analytics 2025-05-02 14:20:20 +02:00
Miodec
76859670ba chore: remove console.error from notifications 2025-05-02 14:19:40 +02:00
Miodec
0f211b2fb7 chore: fix repo name 2025-05-01 22:28:12 +02:00
Miodec
f4b9066bb5 chore: missing repo field 2025-05-01 21:48:34 +02:00
Miodec
827637c23d chore: set commits on sentry release
also lower trace sample rate
2025-05-01 21:40:47 +02:00
Miodec
c51acf39d2 chore: dont sample random sessions without errors 2025-04-30 18:46:16 +02:00
Miodec
255c4b944d fix: unable to link discord if user has no avatar 2025-04-30 18:41:03 +02:00
Miodec
9287e880d5 chore: temporairly try a different filtering behavior 2025-04-30 17:31:28 +02:00
Miodec
ee378f35f2 fix: key elements being too close to surrounding text 2025-04-30 16:31:08 +02:00
Miodec
055b7f0a84 chore: add a function to manually capture exceptions and send to sentry 2025-04-30 14:33:29 +02:00
Miodec
faffc78abc chore: only add sentry plugin when building from release package 2025-04-30 14:13:51 +02:00
Miodec
bdaa3b16ff chore: catch failed fetch requests to instatus api 2025-04-30 10:18:34 +02:00
Miodec
5d4f449000 chore: dont use turbo cache in release script 2025-04-30 09:17:45 +02:00
Miodec
53ca12fbb4 fix(arabic egypt): remove offensive word 2025-04-30 08:54:57 +02:00
Miodec
c8e964d0f6 refactor: add hotfix mode to release package 2025-04-30 08:25:04 +02:00
Miodec
c6620aba74 chore: register service worker manually, also catch errors 2025-04-30 08:09:07 +02:00
Miodec
c2f20290d7 chore: unmask notifications in sentry 2025-04-30 07:47:28 +02:00
Christian Fehmer
c2f6ec846b
fix: very slow generation of tests in large languages (@fehmer, @miodec) (#6506)
!nuf
2025-04-30 07:34:51 +02:00
Miodec
bbd5cf2ba6 chore: remove analytics logging 2025-04-29 23:27:35 +02:00
Miodec
93bcd3ca92 chore: missing optional chain 2025-04-29 21:41:24 +02:00