Commit graph

279 commits

Author SHA1 Message Date
Boris Nezlobin
e8b92ed802
fix(about): "amount" to "number" (borisnezlobin) (#4856) 2023-12-11 12:55:34 +01:00
Miodec
896680c80b refactor: update wording on the quore report popup
also highlighted one sentence in red
2023-11-30 13:59:28 +00:00
Miodec
70ea09ac45 style: fix extra empty space at the bottom of the settings page 2023-11-28 15:32:20 +00:00
Miodec
779ec58dab refactor: use button elements instead of divs
also use data- prefix for custom attributes
2023-11-27 14:19:21 +00:00
Miodec
ff80d6eea8 refactor: use button and form elements instead of classes 2023-11-22 15:02:23 +00:00
Miodec
f4e5574c91 fix: button not styled correctly 2023-11-22 14:58:56 +00:00
Miodec
f5576adc9a refactor: use button element instead of class 2023-11-22 14:51:12 +00:00
Miodec
978d066fd9 refactor: use button instead of div 2023-11-21 14:36:32 +00:00
Miodec
b7f8c946df refactor: use button instead of div 2023-11-21 14:22:56 +00:00
Christian Fehmer
1d4d7dab87
feat: Allow more results for premium users (fehmer, Miodec) (#4778)
* feat: Unlimited history for premium users UI

* disable button while loading, show spinner

* optional chaining

* add isPremium to /users, remove check from frontend

* add /results max batch size to configuration

* result batching ui v1

* rename variables, update button based on state, update text

* Return allowed results in /results if limit is partly overshooting the max limit

* use br instead of margin

* let result batches code handle button disabling

* hide title

* limit max width

* hide section when below batch size

* update limit color based on the % of limit used

* bring back loaded bar

* remove unused css

* fix alignemtn

* remove text for now

* add result getting log

* always hiding for non premium users for now

* Add server configuration users.premium.enabled, throw error on /results if premium user exceeds regular limit and premium is globally disabled

* Disable premium feature globally by default

* cleanup open todos

* Don't use premium user max limit on /results if premium feature is disabled on server

* fix merge issue

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-20 16:17:20 +00:00
Miodec
41aa5c61e2 refactor: fix accessibility of edit profile button
done by converting the popup to a form
converting class button to a button type submit
listening to form submit
2023-11-17 15:35:44 +00:00
Miodec
abe8383591 refactor: use a button element instead of a class 2023-11-17 15:11:59 +00:00
Miodec
a4efbdd714 refactor: use button element instead of a class 2023-11-17 14:59:35 +00:00
Miodec
7a15394c8c refactor: convert divs to buttons 2023-11-06 15:16:00 +00:00
Miodec
daaab016e2 impr(account page): add button which hides results on the account graph
when results are hidden, accuracy scale will be maximised to fit the graph height
2023-11-06 15:08:48 +00:00
Miodec
7ce8c16274 chore: hide video ad buttons for now
video ads have not been updated to work with the new ad provider

closes #4727
2023-10-20 12:43:24 +01:00
Miodec
fa5029f905 chore: lowercase buttons and headings for consistency
Also use buttons instead of divs for accessibility
2023-10-19 20:50:17 +01:00
Miodec
894ff4bf7d impr(settings): optimise preset section for keyboard navigation 2023-10-18 18:52:28 +01:00
Miodec
8b9ff44aae impr(settings): optimised tags section for keyboard navigation 2023-10-18 15:09:39 +01:00
Aaron
3a4d8effdb
fix(server): rework 'revoke all tokens' flow (hattorius) (#4717)
* Remove tokens from cache

* Async method not necessary

* Whoops

* Better naming

* smol name change

* uncomment settings section

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-10-16 16:57:14 +01:00
Miodec
d8a4dbac94 impr: renamed timer/progress to live progress 2023-10-16 15:11:29 +01:00
Miodec
64904f0c3a chore: hide section which is not working at the moment 2023-10-03 12:58:56 +01:00
W0LFB0MB
fa01558876
impr(sound): add support for various error sounds (W0LFB0MB) (#4679)
* Add files via upload

* Delete frontend/static/sound/error/triangle.wav

* Delete frontend/static/sound/error/damage.wav

* modified error sound code to support multiple sound options and added two error sound alternatives

* added compatability for previous users of the error sound, converts legacy true/false config values to 1 or off

* fixed opiton names and values in commandline

* fix: auto switch theme behavior & footer theme indicator (#4677)

* fix: auto switch theme behavior & footer indicator

Changing manually to a preset or custom theme now
turns auto switch theme mode off with a notification.
And now the auto switch mode does override the custom
theme as well (statement in settings also updated) if it
is the later one set.
Fixes #4659, that is the footer theme is now correctly
displayed with auto switch themes as well.

* removed unnecessary function

---------

Co-authored-by: Miodec <jack@monkeytype.com>

* fixed off config value

* moved compatibilty code to replaceLegacyValues

---------

Co-authored-by: Sanidhya Singh <sanidhyas3s@gmail.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2023-10-02 16:09:30 +01:00
Sanidhya Singh
5844f1da5a fix: auto switch theme behavior & footer theme indicator (sanidhyas3s, miodec) (#4677)
* fix: auto switch theme behavior & footer indicator

Changing manually to a preset or custom theme now
turns auto switch theme mode off with a notification.
And now the auto switch mode does override the custom
theme as well (statement in settings also updated) if it
is the later one set.
Fixes #4659, that is the footer theme is now correctly
displayed with auto switch themes as well.

* removed unnecessary function

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-10-02 13:48:26 +01:00
Miodec
59be910857 refactor: swap button placement 2023-10-02 12:02:12 +01:00
Miodec
e0bb96e008 refactor: test config
- added function which instantly loads current state and updates dom (used when showing test page)
 - focus is applied through main instead of by directly adding and removing a class
 - reworked performance by storing dom elements
 - improved animation smoothness by grabbing actual width of punc and num
 - removed unused code
 - not updating when not on the test page
2023-09-27 23:00:17 +01:00
Miodec
4a1a7ea456 style: remove icon margins causing height change 2023-09-27 12:34:02 +01:00
Miodec
7440f70b04 style: move result ad below the "sign in to save result" message 2023-09-26 16:36:39 +01:00
Miodec
2a006ddf5f refactor: use button instead of div for settings group titles 2023-09-26 16:28:05 +01:00
Miodec
102d97c416 fix(settings page): account section link remained visible even when not signed in 2023-09-26 16:03:18 +01:00
Miodec
c39fdb0263 fix: tab navigation not working on the result page in safari 2023-09-25 16:32:21 +01:00
Miodec
0aab73ad67 refactor: change icon buttons to text buttons for consistency 2023-09-25 12:57:50 +01:00
Miodec
ef4964ca1a chore: more consistent casing 2023-09-25 12:54:45 +01:00
Shuja-Mahmood
aee1cc1581
impr(custom text): add checkbox to toggle control character replacing (Shuja-Mahmood) (#4648) 2023-09-25 12:51:29 +01:00
Miodec
413c6d72d6 refactor: redo the way focus is handled for popup 2023-09-25 11:50:24 +01:00
Christian Fehmer
5439d3966f
impr: increase favicon quality by using svg (fehmer) (#4652) 2023-09-25 11:41:04 +01:00
Miodec
c76b2f40e8 refactor: use id instead of class 2023-09-23 12:17:49 +01:00
Miodec
54457006ec refactor: use button instead of div
Reduce css.
Remove keypress event listeners.
Remove tabindex overrides.
Moved sign in tip below the buttons so that tab navigation makes sense.
2023-09-20 18:38:58 +01:00
Miodec
c97a5d7502 refactor: fix version button wrapped in two buttons 2023-09-20 11:54:03 +01:00
Miodec
724403d361 refactor: use nav instead of a div 2023-09-19 23:53:13 +01:00
Miodec
6610542d5f refactor: use footer instead of a div with an id 2023-09-19 23:51:20 +01:00
Miodec
46c0555202 chore: missing class 2023-09-19 23:47:33 +01:00
Miodec
d1cb222735 chore: rename file 2023-09-19 23:45:52 +01:00
Miodec
5a06954f02 refactor: use button instead of div 2023-09-19 23:44:48 +01:00
Miodec
13d041e055 chore: remove tabindex 2023-09-19 23:40:28 +01:00
Miodec
513dfc63ff chore: use textButton for now to fix theme issues 2023-09-19 23:32:47 +01:00
Miodec
412d415207 refactor: use header instead of div with id 2023-09-19 23:31:13 +01:00
Miodec
cb449cfd2b chore: rename file 2023-09-19 23:08:28 +01:00
Miodec
13e08a716e refactor: use button instead of div 2023-09-19 22:57:52 +01:00
Miodec
ef15ee85c5 refactor: remove tabindex overrrides 2023-09-19 22:50:33 +01:00