Skip to content

Commit

Permalink
Merge pull request #10354 from bjacobel/harmonizable
Browse files Browse the repository at this point in the history
Add Deepsight-related Organizer columns
  • Loading branch information
bhollis authored Apr 27, 2024
2 parents f6fc148 + 5d1f4b3 commit e603f3a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,8 @@
"CustomTotal": "Custom Total",
"MasterworkTier": "Masterwork Tier",
"MasterworkStat": "Masterwork Stat",
"Level": "Level",
"Harmonizable": "Harmonizable",
"KillTracker": "Kill Tracker",
"Loadouts": "Loadouts",
"Notes": "Notes",
Expand Down
17 changes: 17 additions & 0 deletions src/app/organizer/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { TagValue, tagConfig } from 'app/inventory/dim-item-info';
import { D1Item, DimItem, DimSocket } from 'app/inventory/item-types';
import { storesSelector } from 'app/inventory/selectors';
import { source } from 'app/inventory/spreadsheets';
import { isHarmonizable } from 'app/inventory/store/deepsight';
import { getEvent, getSeason } from 'app/inventory/store/season';
import { getStatSortOrder } from 'app/inventory/store/stats';
import { getStore } from 'app/inventory/stores-helpers';
Expand Down Expand Up @@ -535,6 +536,22 @@ export function getColumns(
header: t('Organizer.Columns.MasterworkStat'),
value: (item) => getMasterworkStatNames(item.masterworkInfo),
}),
destinyVersion === 2 &&
isWeapon &&
c({
id: 'level',
header: t('Organizer.Columns.Level'),
value: (item) => item.craftedInfo?.level,
defaultSort: SortDirection.DESC,
}),
destinyVersion === 2 &&
isWeapon &&
c({
id: 'harmonizable',
header: t('Organizer.Columns.Harmonizable'),
value: (item) => isHarmonizable(item),
cell: (value) => (value ? <AppIcon icon={faCheck} /> : undefined),
}),
destinyVersion === 2 &&
isWeapon &&
c({
Expand Down

0 comments on commit e603f3a

Please sign in to comment.