From 65705ebda0651629c1dbec57a010cb4d903b284b Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:53:22 -0600 Subject: [PATCH] feat: logs --- .vscode/settings.json | 1 + docs/changelogs/1.25.3.md | 26 +++++++++++++++++++ package.json | 2 +- .../components/Tankopedia/CalloutsSection.tsx | 14 ++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 docs/changelogs/1.25.3.md diff --git a/.vscode/settings.json b/.vscode/settings.json index 96c8fd3e8..ebfaec4a7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -54,6 +54,7 @@ "debugflags", "deburr", "decalmask", + "decompressor", "defence", "degressive", "devkrieg", diff --git a/docs/changelogs/1.25.3.md b/docs/changelogs/1.25.3.md new file mode 100644 index 000000000..25b218cfa --- /dev/null +++ b/docs/changelogs/1.25.3.md @@ -0,0 +1,26 @@ +# BlitzKit 1.25.3 + +## Features + +- Added a "popular tanks" list under the Tankopedia link on the homepage +- The render engine has been sped up by about 50% thanks to cheaper lighting +- Added a caliber discriminator for the antagonist gun selector in the Tankopedia sandbox +- Added 30+ new stats to the Session tool +- Added relative stat bars to the Tankopedia tank pages + - This compares each stat against other tanks of the same class & tier, tier, or every other tank +- Added a recently viewed tanks list to the Tankopedia tank pages + +## Fixes + +- The shot result card is now displayed in the sandbox even on mobile devices now +- Removed ad settings and referenced from the policies prompt +- Removed draco compression as it usually only saved about 0.7mb per tank but added an extra 1mb to the decompressor +- The tank type colors are back in the tank search +- Frames are once again rendered when posing tanks +- Removed the "ghost column" in the Session tool +- The "total" cell is now sticky too much-like the tank name cells +- The reset button in the tank search now resets the sort as well +- The provisions list is now centered on smaller screens +- The navbar can once again be scrolled +- Provisions and consumables are no longer off by 1 + - Allow up to 24 hours for this to update as BlitzKit re-syncs with the game diff --git a/package.json b/package.json index ec4fe6ac5..17404b5fe 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "blitzkit", "private": true, - "version": "1.25.2", + "version": "1.25.3", "description": "🎉 Tools for everything World of Tanks Blitz", "type": "module", "types": "./types.d.ts", diff --git a/packages/website/src/components/Tankopedia/CalloutsSection.tsx b/packages/website/src/components/Tankopedia/CalloutsSection.tsx index 78aac456a..06e7b9e83 100644 --- a/packages/website/src/components/Tankopedia/CalloutsSection.tsx +++ b/packages/website/src/components/Tankopedia/CalloutsSection.tsx @@ -1,10 +1,24 @@ import { MinusCircledIcon } from '@radix-ui/react-icons'; import { Callout, Flex } from '@radix-ui/themes'; +import { uniq } from 'lodash-es'; +import { useEffect } from 'react'; import { Duel } from '../../stores/duel'; +import { TankopediaPersistent } from '../../stores/tankopediaPersistent'; import { ExperimentIcon } from '../ExperimentIcon'; +import { MAX_RECENTLY_VIEWED } from '../TankSearch/constants'; export function CalloutsSection() { const tank = Duel.use((state) => state.protagonist.tank); + const mutateTankopediaPersistent = TankopediaPersistent.useMutation(); + + useEffect(() => { + mutateTankopediaPersistent((draft) => { + draft.recentlyViewed = uniq([tank.id, ...draft.recentlyViewed]).slice( + 0, + MAX_RECENTLY_VIEWED, + ); + }); + }, [tank]); if (!tank.testing && !tank.deprecated) return null;