diff --git a/src/lib/menu/tracker/create/CreateTracker.svelte b/src/lib/menu/tracker/create/CreateTracker.svelte index 41fb713..00a7adf 100644 --- a/src/lib/menu/tracker/create/CreateTracker.svelte +++ b/src/lib/menu/tracker/create/CreateTracker.svelte @@ -96,12 +96,6 @@
- - - - - - @@ -220,10 +214,6 @@ font-size: 15pt; } - thead > tr > th { - font-size: 1.25em; - } - td { display: flex; align-items: center; diff --git a/src/lib/menu/tracker/view/ViewTrackers.svelte b/src/lib/menu/tracker/view/ViewTrackers.svelte index 6d52455..66b77af 100644 --- a/src/lib/menu/tracker/view/ViewTrackers.svelte +++ b/src/lib/menu/tracker/view/ViewTrackers.svelte @@ -117,10 +117,12 @@ max: 0 } : undefined, + complete: false, method: createdHuntTracker.method, generation: createdHuntTracker.generation, versionGroup: createdHuntTracker.versionGroup, version: createdHuntTracker.version, + shinyCharm: createdHuntTracker.shinyCharm, pokemonSpecies: createdHuntTracker.pokemonSpecies.name, pokemon: createdHuntTracker.pokemon?.name === createdHuntTracker.pokemonSpecies.name @@ -130,8 +132,7 @@ createdHuntTracker.pokemonForm?.name === createdHuntTracker.pokemon?.name ? undefined : createdHuntTracker.pokemonForm?.name, - female: createdHuntTracker.female, - complete: false + female: createdHuntTracker.female } ]) diff --git a/src/routes/history/+page.svelte b/src/routes/history/+page.svelte index bb9ddc9..03014e1 100644 --- a/src/routes/history/+page.svelte +++ b/src/routes/history/+page.svelte @@ -1,82 +1,163 @@

History

-{#if $history.length} -
FieldValue
- - - - - - - - - - - - - - {#each $history as record} +
+ {#if $history.length} +

Click a record to view its details.

+
VersionMethodPokemonVarietyFormGenderCountMaximum
+ - - - - - - - - + + + + + - {/each} - -
{formatVersionName(record.version)}{record.method}{formatPokemonSpeciesName(record.pokemonSpecies)}{getPokemon(record)}{getPokemonForm(record)}{getGender(record)}{record.count}{getMaximum(record)}VersionMethodPokemonFormCount
-{:else} -

You don't have any shiny hunts in your history! Complete a shiny hunt to view your history.

-{/if} + + + {#each $history as record} + (selectedRecord = record)}> + + {formatVersionName(record.version)} + + + {record.method} + + + {getPokemon(record)} + + + {getPokemonForm(record)} + + + {record.count} + + + {/each} + + + + {#if selectedRecord} +
+ + + + + + + + + + + + + + + + + + + + {#if selectedRecord.shinyCharm !== undefined} + + + + + {/if} + {#if selectedRecord.chain} + + + + + {/if} + +
Generation{selectedRecord.generation}
Version{formatVersionName(selectedRecord.version)}
Method{selectedRecord.method}
Status{selectedRecord.complete ? 'Found' : 'Not Found'}
Shiny Charm{selectedRecord.shinyCharm ? 'Yes' : 'No'}
{getMaxChainHeader(selectedRecord)}{getMaxChain(selectedRecord)}
+
+ {/if} + {:else} +

+ You don't have any shiny hunts in your history! Complete a shiny hunt to view your history. +

+ {/if} +