From efb75ffb7ce49063d2fa541f5bd1905f738b4db5 Mon Sep 17 00:00:00 2001 From: Iacami Gevaerd Date: Mon, 13 Nov 2023 12:19:30 -0300 Subject: [PATCH] feat: add Brazilian grades to frontend (#1023) fixes #1022 --- package.json | 2 +- src/js/grades/Grade.ts | 12 ++++++++++++ yarn.lock | 8 ++++---- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 72c8e91de..0be264236 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@hookform/resolvers": "^3.1.1", "@lexical/react": "^0.7.5", "@math.gl/web-mercator": "3.6.2", - "@openbeta/sandbag": "^0.0.48", + "@openbeta/sandbag": "^0.0.51", "@radix-ui/react-alert-dialog": "^1.0.0", "@radix-ui/react-dialog": "^1.0.0", "@radix-ui/react-dropdown-menu": "^2.0.1", diff --git a/src/js/grades/Grade.ts b/src/js/grades/Grade.ts index 05c8802a1..5243fca5b 100644 --- a/src/js/grades/Grade.ts +++ b/src/js/grades/Grade.ts @@ -47,6 +47,18 @@ const gradeContextToGradeScales = { aid: GradeScales.FRENCH, snow: GradeScales.FRENCH, // is this the same as alpine? ice: GradeScales.FRENCH // is this the same as alpine? + }, + BR: { + trad: GradeScales.BRAZILIAN_CRUX, + sport: GradeScales.BRAZILIAN_CRUX, + bouldering: GradeScales.VSCALE, + tr: GradeScales.BRAZILIAN_CRUX, + deepwatersolo: GradeScales.BRAZILIAN_CRUX, + alpine: GradeScales.BRAZILIAN_CRUX, + mixed: GradeScales.BRAZILIAN_CRUX, + aid: GradeScales.AID, + ice: GradeScales.WI, + snow: GradeScales.WI } } diff --git a/yarn.lock b/yarn.lock index e34753aaa..b9e557eec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1805,10 +1805,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@openbeta/sandbag@^0.0.48": - version "0.0.48" - resolved "https://registry.yarnpkg.com/@openbeta/sandbag/-/sandbag-0.0.48.tgz#d876ae47634c287be1f71858576a9f826f8ee270" - integrity sha512-QyTGG9Y+c+2TY+EbdUByAAr1u7qyqZ4H1ZM0TztetJU/a7TLjdMoR32yaRY8uSFvm3f1sP0zn0ffhlLiICDdlg== +"@openbeta/sandbag@^0.0.51": + version "0.0.51" + resolved "https://registry.yarnpkg.com/@openbeta/sandbag/-/sandbag-0.0.51.tgz#21ce618d2414dc0b8d4f31ef260ac2ebad5a43c8" + integrity sha512-qMVohgqRdFjXH8a3aSEZa6zemwSpak/HMttR/pqvclDIXqgPKzWvjFRA3o/YDGieI/19P4dtizLo91TKx0smGQ== "@panva/hkdf@^1.0.2": version "1.1.1"