feat: first back recording and display (#12)
All checks were successful
pipeline / lint-and-format (push) Successful in 4m35s
pipeline / build-and-push-images (push) Successful in 1m39s

Record first backs, group them by item sets and show the most popular ones, with gold and %, in the frontend.
This commit is contained in:
2026-04-28 20:10:20 +02:00
parent 7712abe3f0
commit db2ca353c5
6 changed files with 452 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import { getCoreItems, getLateGameItems } from '~/utils/buildHelpers'
import BuildVariantSelector from '~/components/build/BuildVariantSelector.vue'
import CompactRuneSelector from '~/components/build/CompactRuneSelector.vue'
import ItemRow from '~/components/build/ItemRow.vue'
import FirstBack from '~/components/build/FirstBack.vue'
const props = defineProps<{
builds: Builds
@@ -122,6 +123,13 @@ function selectBuild(index: number): void {
/>
</div>
<!-- First Back Section -->
<FirstBack
v-if="currentBuild.firstBacks && currentBuild.firstBacks.length > 0"
:first-backs="currentBuild.firstBacks"
:item-map="itemMap"
/>
<!-- Core Items Tree (children of start item) -->
<div v-if="currentBuild.items?.children?.length" class="item-row">
<span class="item-row-label">Core</span>