From 88fcc039dbbe7b9a7c4b328606288fe0ff648a2f Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 4 Jan 2026 02:52:12 -0800 Subject: [PATCH] add job grid cell components - JobIconCell: job portrait thumbnail - JobTierCell: row tier badge - JobProficienciesCell: weapon proficiency icons - JobFeaturesCell: master/ultimate/accessory badges --- .../database/cells/JobFeaturesCell.svelte | 55 +++++++++++++++++++ .../database/cells/JobIconCell.svelte | 29 ++++++++++ .../cells/JobProficienciesCell.svelte | 26 +++++++++ .../database/cells/JobTierCell.svelte | 33 +++++++++++ 4 files changed, 143 insertions(+) create mode 100644 src/lib/components/database/cells/JobFeaturesCell.svelte create mode 100644 src/lib/components/database/cells/JobIconCell.svelte create mode 100644 src/lib/components/database/cells/JobProficienciesCell.svelte create mode 100644 src/lib/components/database/cells/JobTierCell.svelte diff --git a/src/lib/components/database/cells/JobFeaturesCell.svelte b/src/lib/components/database/cells/JobFeaturesCell.svelte new file mode 100644 index 00000000..b32ce6cf --- /dev/null +++ b/src/lib/components/database/cells/JobFeaturesCell.svelte @@ -0,0 +1,55 @@ + + + + +
+ {#if row.masterLevel} + Master + {/if} + {#if row.ultimateMastery} + Ultimate + {/if} + {#if row.accessory} + Accessory + {/if} +
+ + diff --git a/src/lib/components/database/cells/JobIconCell.svelte b/src/lib/components/database/cells/JobIconCell.svelte new file mode 100644 index 00000000..984c259b --- /dev/null +++ b/src/lib/components/database/cells/JobIconCell.svelte @@ -0,0 +1,29 @@ + + + + +
+ {row.name?.en +
+ + diff --git a/src/lib/components/database/cells/JobProficienciesCell.svelte b/src/lib/components/database/cells/JobProficienciesCell.svelte new file mode 100644 index 00000000..d069dc43 --- /dev/null +++ b/src/lib/components/database/cells/JobProficienciesCell.svelte @@ -0,0 +1,26 @@ + + + + +
+ {#if row.proficiency?.[0]} + + {/if} + {#if row.proficiency?.[1]} + + {/if} +
+ + diff --git a/src/lib/components/database/cells/JobTierCell.svelte b/src/lib/components/database/cells/JobTierCell.svelte new file mode 100644 index 00000000..86527ae6 --- /dev/null +++ b/src/lib/components/database/cells/JobTierCell.svelte @@ -0,0 +1,33 @@ + + + + +
+ {tierName} +
+ +