Commit Graph

3893 Commits

Author SHA1 Message Date
Remmy Cat Stock
ad61df057c
Load gear translations needed for build cards on index route 2022-10-31 00:14:48 +01:00
William Lam
3099db8914
Hide Highlights section if the user has exactly 1 result on their profile
* Issue 1068:  Hide Highlights section if the user has exactly 1 result on their profile

* Moved the logic so that we only hide the "Choose Highlights" button if the user has exactly 1 result & they have exactly 1 highlight selected

* Updated logic to hide the Highlights section if the user only has 1 total result

* Prettier fix
2022-10-30 15:59:36 +01:00
William Lam
d9689694b4
UserComboBox only one result if exact discord ID match (#1075)
* Passed a FUSE_OPTIONS object to the Fuse() object.
- We can now adjust how "strict" the search is.

* Refactored Combobox to accept an optional fuseOptions object as a prop

* Fixed fuseOptions prop data type & added a default initialized value of {}
- Moved the USER_COMBOBOX_FUSE_OPTIONS outside of the function
2022-10-30 16:34:18 +02:00
William Lam
924ae8bfff
Fix abilities appearing clickable when they aren't (#1057)
* Issue 1036: non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon

* Revert "Issue 1036: non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon"

This reverts commit a0de4e0047.

* Issue 1036: Non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon.
- Done correctly by conditionally choosing to render a <button /> or <div /> HTML element for ability icons everywhere Ability() was invoked by passing in readonly

* Removed stray console.warn() line, added a brief comment

* Removed unnecessary tabIndex adjustment for AbilityTag element if it is readonly (since it is no longer rendered as a button if it is readonly)
- We now also condtionally give type="button" to AbilityTag only if it is actually a button

* Conditionally set AbilitiesSelector's Ability JSX elements to readonly if the ability is "UNKNOWN"

* Fixed failed check for Prettier in CI pipeline

* Ability component now only chooses the readonly class if no onClick function is passed into it
- Exception: if the ability is "UNKNOWN", it will be forced to readonly

* Fixed Prettier error in CI pipeline

* Fixed Typecheck error in BuildCard.tsx

* Fixed Prettier CI pipeline error again

* Was checking for an undefined type incorrectly. Now the logic works properly

* Fixed Prettier error

* Cleaned up classname declaration syntax to React's shorthand
2022-10-30 10:38:03 +02:00
Frederik
d98d9f5768
Update Danish translation (#1069)
* Added translations for object dmg calculator

Added translation for the Object DMG calc

changes translations to make them more correct.
fixed minor typos and misspellings.

* Added translations

Added Danish translations for following lines

pages.object-damage-calculator
actions.loading
actions.clear
actions.selectAll
actions.search
maps.template
maps.template.none
maps.template.event
maps.template.presets
maps.template.yourRecentEvents
maps.template.preset.ANARCHY
maps.template.preset.ALL
maps.template.preset.onlyMode
forms.errors.noSearchMatches
errors.genericReload

* Added translation for ojb calc

Added translation for the following line
"object-damage-calculator.description"

* Added mode long desc translation

Added translations for the following lines

MODE_LONG_TW
MODE_LONG_SZ
MODE_LONG_TC
MODE_LONG_RM
MODE_LONG_CB

* Fix

* Prettify

* Added translation for torpedo explanation

Added translation for 
"torpedoExplanation":

* Update translation-progress.md

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-10-30 10:33:48 +02:00
Kalle
c1d113905c Upgrade deps 2022-10-30 02:19:21 +03:00
Kalle
e97fcd4e99 Remove Cypress tests
Planned to be replaced with Playwright maybe?
Just removing in the meanwhile so they don't confuse people.
Or that people won't accidentally develop new.
2022-10-30 02:15:15 +03:00
Kalle
1667048496 Fix JP translations for "duration" 2022-10-30 01:53:32 +03:00
Kalle
b407127b36 Build card gear name title on hover 2022-10-29 21:46:39 +03:00
Kalle
0af5f262f5 Fix wpn in build card not showing title on hover 2022-10-29 21:07:06 +03:00
Kalle
60a0495b9d Support for blob 4 shots in analyzer
+ fixed L-3 showing curling damage in multiples.
+ fixed "1 hit" typoed to "1 hits"

Closes #1065
2022-10-29 21:04:34 +03:00
Kalle
0ad6af0a23 Make npm run cf also create translation-json 2022-10-29 20:37:00 +03:00
Kalle
7af8e7a9db Add slosher class weapons damages 2022-10-29 20:36:48 +03:00
Kalle
bfc3cbfc87 Fix Hydra wrong dmg multipliers
Closes #1055
2022-10-29 12:42:40 +03:00
Kalle
518b778052 Add check that translation-progress.md is updates 2022-10-29 11:33:29 +03:00
Kalle
aeb8d2b070 Improve error message when lang json parsing fails 2022-10-29 11:25:17 +03:00
Frederik
f89a67cdf6
Update Danish translations (#1059)
* Added translations for object dmg calculator

Added translation for the Object DMG calc

changes translations to make them more correct.
fixed minor typos and misspellings.

* Added translations

Added Danish translations for following lines

pages.object-damage-calculator
actions.loading
actions.clear
actions.selectAll
actions.search
maps.template
maps.template.none
maps.template.event
maps.template.presets
maps.template.yourRecentEvents
maps.template.preset.ANARCHY
maps.template.preset.ALL
maps.template.preset.onlyMode
forms.errors.noSearchMatches
errors.genericReload

* Added translation for ojb calc

Added translation for the following line
"object-damage-calculator.description"

* Added mode long desc translation

Added translations for the following lines

MODE_LONG_TW
MODE_LONG_SZ
MODE_LONG_TC
MODE_LONG_RM
MODE_LONG_CB

* Fix

* Prettify

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-10-29 11:11:46 +03:00
Kalle
cef0bf73d5 Update dutch translation 2022-10-29 10:58:46 +03:00
Kalle
085ef8abe5
Run checks on PR made (#1063)
* Run checks on PR made

* Prettify

* Refine criteria

* Bruh
2022-10-29 10:44:35 +03:00
Igor
327df35380
Disable double torpedos in analyzer (#1058)
* Note about torpedo

* no magic numbers -> constant
2022-10-29 10:17:27 +03:00
Kalle
e20b1b92b4 Remove note about WIP from README 2022-10-29 10:14:26 +03:00
Kalle
743a89bfc7 Preload translations to avoid layout flashing
Closes #869
2022-10-29 10:08:19 +03:00
Kalle
b775d70985 Add check of valid translations jsons to GA 2022-10-29 00:33:07 +03:00
Kalle
4eb0775532 Fix problems with translations jsons 2022-10-29 00:26:50 +03:00
Kalle
7397664e37 Add validation against i18n json duplicate keys 2022-10-29 00:25:18 +03:00
Kalle
132df15b9a
Merge pull request #1054 from aisuzuki/update-translation
Update translation  (JA)
2022-10-28 22:57:21 +03:00
Ai Suzuki
e0380392d5 add more translation 2022-10-28 11:39:14 +02:00
Ai Suzuki
bc73ace835 Merge branch 'master' into update-translation 2022-10-28 11:22:23 +02:00
Ai Suzuki
5e18d61fb6 update 2022-10-28 11:13:01 +02:00
Ai Suzuki
d13ae0e6a6 brash up translation + additional translations 2022-10-28 11:09:04 +02:00
Kalle
6019b0f906 Perf optimization: prefetch pages without loader 2022-10-28 09:26:45 +03:00
Kalle
edc12bec84
Merge pull request #1056 from ElementUser/bug/1043
Issue 1043: changed <div> tag to <h1> tag for semantic HTML for top-most UI buttons on active page
2022-10-28 08:51:23 +03:00
Remmy Cat Stock
d5677cf7e8
Remove useOnce hook 2022-10-27 23:12:48 +02:00
Remmy Cat Stock
9d6c86b5ab
Fix theme switching via cookie during development 2022-10-27 22:29:31 +02:00
William Lam
e44e64dab2 Issue 1043: changed <div> tag to <h1> tag for semantic HTML on the top-most UI buttons for an active page 2022-10-27 16:24:04 -04:00
Kalle
aaaf6b318c Add front page translations for preloading 2022-10-27 23:18:55 +03:00
Kalle
29896aa76c Add Hydra Splatling shots to pop RM test 2022-10-27 20:29:44 +03:00
Kalle
fbe1c61356
Merge pull request #1047 from Sendouc/map-pool-templates
Map pool templates
2022-10-27 20:29:35 +03:00
Ai Suzuki
8937502fa9 refine transalation 2022-10-27 19:14:25 +02:00
Ai Suzuki
d8ea1a9277 update list 2022-10-27 18:59:04 +02:00
Ai Suzuki
18986dccee first commit 2022-10-27 18:47:42 +02:00
Kalle
b340f32ae3 Fix theme cookie not saved after session closing 2022-10-27 18:12:36 +03:00
Kalle
6bacfe9717 Add Hydra full charge to prioritized damage types 2022-10-27 17:59:58 +03:00
Remmy Cat Stock
ef185902bf
Update translation-progress.md 2022-10-27 13:32:20 +02:00
Remmy Cat Stock
d1b1367651
Add event search to map pool templates 2022-10-27 13:31:37 +02:00
Remmy Cat Stock
0a85ad08d2
Add recent events to map pool templates 2022-10-27 13:31:37 +02:00
Remmy Cat Stock
63154e507e
Initial support for map pool templates 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
edd3a1d91b
Improve MapPoolSelector UI 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
3b18598288
Introduce utility MapPool class 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
de9aefa996
Unify MapPoolSelector components 2022-10-27 13:31:36 +02:00