Commit graph

82 commits

Author SHA1 Message Date
theiereman
98ff4b288b
impr: add character-counter class to avoid code duplication (theiereman) (#5482)
!nuf
2024-06-16 16:02:57 +02:00
Christian Fehmer
ccd2b1ef28
impr: add button to remove custom theme background (@fehmer) (#5488)
* impr: add button to remove theme background (@fehmer)

* update notification if custom background cannot be loaded. Always update remove button visibility

* update error message
2024-06-16 15:41:36 +02:00
Miodec
2d6d84a4d7 fix: update twitter link
!nuf
2024-06-12 16:27:21 +02:00
Miodec
bc3ecb25eb impr(result): add new crown states (error, warning, ineligible, normal) 2024-05-28 17:11:10 +02:00
Miodec
c421f22065 fix(account page): bad performance in safari
closes #5424
2024-05-23 13:30:21 +02:00
Christian Fehmer
59615fb02c
feat(account page): add test activity graph (fehmer, Singh233) (#5309)
* wip

* wip frontend

* cleanup

* wip

* refactoring

* wip

* first working version

* wip

* update calendar with new result

* add migration script

* dates are hard

* fix naming inconsistencies

* requested changes on migration

* timezones

* update date-fns, use date-fns/utc

* resolve cyclic dependency by extracting test activity calender into new file

* cleanup

* fix increment

* fix

* tests

* test coverage

* test migration

* migration more logging

* migration add unique index on uid if missing

* update legend styling

* 53 columns

* wip

* move dropdown and legend to the top
add dropdown border
yeet hotpink
invisible filler boxes
remove year from month format

* responsive update

* lowercase months

* handle current year, fix tests

* handle year change

* make days square again

* handle newly created users correctly

* move css

* add wrapper for easier styling
rework some font sizes/widths
reorder styles

* media queries

* align

* rework styling once more

* dont commit debug

* add days full to fill the space a bit

* show partial months

* hover on 0 tests

* start dynamic calendar on sunday

* no activity

* hover

* remove label on fillers

* remove label on fillers

* fix months, update tests for months

* adjust tests to new requirements

* cleanup

* fix migration

* impr(commandline): add "add/remove quote to favorites" commands

closes #5368

* chore: remove daily lb which is no longer in the backend

* fix: dropdown element flashing for couple frames on page load

* feat(language): add japanese romaji 1k (nthngnssmnnglss)

* fix: optional chaining

!nuf

* fix(words generator): infinite custom text tests not working correctly

* chore: missing languages in list and group files

* fix(language): remove duplicates

!nuf

* add readline sync to confirm

* gh action complaints

* unnecessary check

* premium only

* add years to drop down only if premium

* Update setup-tests.ts

* test fix

* cleanup

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-05-15 15:23:36 +02:00
Miodec
49f694a1a0 style(account page): move joined and streak hover messages to the right
closes #5376
2024-05-13 12:10:28 +02:00
wiichicken
8b95874cae
style(custom test duration popup): use special elements to highlight keys for consistency (wiichicken) (#5374) 2024-05-13 11:08:21 +02:00
Miodec
790fc8cb38 impr(large test stats): better positioning on all screen sizes 2024-05-04 19:28:06 +02:00
Jack
79f77b80eb
refactor: live stats (#5352) 2024-05-02 17:33:17 +02:00
Miodec
7f04503921 impr(max line width): setting the value to 0 will now always align the words to the width of the container 2024-04-30 21:00:02 +02:00
Miodec
2600f12716 refactor: move the full-width-padding class to a higher parent to avoid having to use it
instead, just use full-width inside that parent

!nuf
2024-04-30 20:17:29 +02:00
Miodec
b95c2e8575 impr(test page): make desktop test config visible on narrower widths 2024-04-30 12:53:44 +02:00
Miodec
a30c442081 chore: update message 2024-04-29 18:10:53 +02:00
Miodec
25fd805004 impr(custom text): add shuffle mode
with this, you can ensure you will encounter each word at least once
2024-04-27 11:43:38 +02:00
Miodec
607da30faa style: use new content-grid system on the result page
fixes result ad causing overflow on some widths
2024-04-27 00:26:54 +02:00
Miodec
4ed3b7d6c8 style(typing result): improve styling on narrow screens
also fix random elements causing grid issues
2024-04-27 00:02:08 +02:00
Miodec
36df36be73 feat: add max line width
controls how many characters per line (estimated) to display during the test
literally bullied into adding it back, hope you love me again
2024-04-26 20:01:32 +02:00
Miodec
155c348850 style(typing test): align mini progress with the words, not the content width 2024-04-26 19:35:14 +02:00
Miodec
779d34c7ea fix(typing test): incorrect input placement causing weird scrolling behavior 2024-04-26 18:22:21 +02:00
Miodec
20d6c39cff impr(typing test): allow test words to breakout from the container
this completely reworks the way main content is structured

closes #5335
2024-04-26 16:57:08 +02:00
Miodec
79e8566f95 refactor(config): remove "show live progress" and move it to "live progress style: off" 2024-04-25 12:58:08 +02:00
Jack
4039ed8b26
refactor: media queries (#5329) 2024-04-24 14:22:41 +02:00
Miodec
c8e61d5941 style: lowercase about buttons for styling consistency 2024-04-24 09:59:15 +02:00
Jack
ccc9a39a99
refactor: custom text logic and modal (#5327) 2024-04-23 16:58:00 +02:00
Miodec
9beda7debe refactor(custom text modal): use state instead of checking the dom directly all the time 2024-04-17 19:21:31 +02:00
Miodec
89920210d3 impr(account page): change tags, funbox and language filters to a multiselect dropdown
closes #5240
2024-04-12 15:35:03 +02:00
Miodec
05e06aec80 style: use negative to always span all no matter how many columns 2024-04-12 15:35:03 +02:00
Jack
ff7816aac0
refactor: custom text modal rework (#5278)
* start work on saved texts popup

* passing options through, async fill to not block animation

* handle apply

* custom text modal start

* full save custom text modal refactor

* remove import

* full finish on saved texts modal

* fill when chain re-shows it

* fix issues where opening chains within chains would show two modals

* extract type

* add support for passing data between modals

* dont leave the popup if no words were found

* use modalchaindata instead of setting popup state directly

* handling set and append modes in chain data

* move tab insertion code into the custom text modal file

* use chain data instead of state module

* move event handlers to a different file / to the setup function

* move file

* rename file

* rename id

* remove unused line

* add generics to incoming and outgoing modal chain data

* rework the way custom text textarea is handled

* update long custom text warning

* remove variable

* remember to update the state
2024-04-05 13:18:26 +02:00
Vaughn Gugger
e37bf192e3
impr(profile): add level percentage when hovering over progress bar (vjgtigers) (#5276) 2024-04-05 12:24:36 +02:00
Sanidhya Singh
39e611d276
refactor(utils): distribute color, numbers, strings and other group of functions into separate util files from misc.ts (sanidhyas3s) (#5254)
* fix: Prevent theme switch when opening theme commandline from the footer

fixes #5103

* refactor(utils/misc): move functions and adjust usages
also renamed some functions for clarity
for #5187

* refactor(utils/misc): move color utils into separate file & add docstring
for #5187

* refactor(utils/misc): separte out number-related utils and more
add docstring to the functions in `utils/numbers`
also, move `getDiscordAvatarUrl` back into misc
because it was causing mt to not open somehow
for #5187

* refactor(utils/misc): move get-text functions into separate file & add docstring for them
    for #5187

* refactor(utils/misc): move get-data type functions into separate file & add docstrings
    for #5187

* Fix cyclic dependency by moving function

* Move strings utils to separate file and other minor changes to utils

* Shift Date & Time util functions to a separate file and add docstrings

* Shift more string functions to string util file

* separate out Arrays functions from misc utils

* Rename some utility files and move some functions

* lowercase filename

* rename module imports

* move ddr stuff into its own file

* temp file rename

* file rename

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-04-03 22:12:48 +02:00
Miodec
0ce2f6afcf fix(settings): hide revoke all tokens section when signed out 2024-04-02 18:39:04 +02:00
Christian Fehmer
7635d37848
feat(authentication): add signin with github (fehmer) (#5239) 2024-04-02 18:33:20 +02:00
Christian Fehmer
a306ab4f32
impr(profile/account page): show leaderboard rank percentage (fehmer) (#5212) 2024-03-25 12:36:25 +01:00
Miodec
6f75abef70 refactor(ape keys modal): use new modal system 2024-03-24 23:01:33 +01:00
Miodec
6167506b89 refactor(word filter modal): use new modal system 2024-03-24 16:45:53 +01:00
Miodec
7f427a9643 refactor(simple modals): use new modal system 2024-03-22 20:53:22 +01:00
Miodec
5a354ef25d refactor(quote search modal): use new modal system 2024-03-20 16:08:31 +01:00
Miodec
c2b7204600 refactor(quote report modal): use new modal system 2024-03-19 16:09:23 +01:00
Miodec
28a4eac40e refactor(quote rate modal): use new modal system 2024-03-19 15:50:50 +01:00
Miodec
1a64a724c6 style: increase spacing a bit 2024-03-19 14:54:04 +01:00
Miodec
cc5406d88c style: lowercase footer buttons for more visual consistency 2024-03-18 13:10:14 +01:00
Miodec
3077daa71f refactor(quote approve modal): use new modal system 2024-03-18 12:59:53 +01:00
Miodec
429c580a74 impr(quote search modal): update placeholder text to indicate that you can search by quote id 2024-03-18 12:05:01 +01:00
Miodec
b339cd082c fix(custom word amount): not being able to start an infinite word test 2024-03-18 00:02:10 +01:00
Miodec
9ca32d3b6a refactor(quote submit modal): use new modal system 2024-03-18 00:01:06 +01:00
Miodec
d454783d11 refactor(google sign up modal): use new modal system 2024-03-17 20:47:21 +01:00
Miodec
9e064fd57c refactor(new filter preset modal): use new modal system 2024-03-17 02:10:30 +01:00
Miodec
1ceaa66287 refactor(custom test duration modal): use new modal system 2024-03-16 19:08:20 +01:00
Miodec
7faefcdd76 refactor(mobile test config modal): use new modal system 2024-03-16 18:44:18 +01:00