Skip to content

Commit a50ea2f

Browse files
committed
tweak(panel/playerDrops): sorting env changes as DESC
1 parent 243f128 commit a50ea2f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

panel/src/pages/PlayerDropsPage/DrilldownCard.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import DrilldownOverviewSubcard from "./DrilldownOverviewSubcard";
1111
import { DisplayLodType, DrilldownRangeSelectionType } from "./PlayerDropsPage";
1212
import InlineCode from "@/components/InlineCode";
1313
import DrilldownResourcesSubcard from "./DrilldownResourcesSubcard";
14+
import { DynamicNewItem } from "@/components/DynamicNewBadge";
1415

1516

1617
export function DrilldownCardLoading({ isError }: { isError?: boolean }) {
@@ -113,6 +114,9 @@ const DrilldownCardInner = function DrilldownCard({
113114
<div className="flex items-center space-x-2">
114115
<div className='hidden xs:block'><ShapesIcon className="size-4" /></div>
115116
<h2 className="font-mono text-sm">Environment Changes</h2>
117+
<DynamicNewItem featName="playerDropsEnvChangesReversed" durationDays={14}>
118+
<span className="text-2xs text-warning-inline/80">Note: This list now shows the most recent changes first.</span>
119+
</DynamicNewItem>
116120
</div>
117121
</div>
118122
<DrilldownChangesSubcard changes={windowData.changes} />

panel/src/pages/PlayerDropsPage/DrilldownChangesSubcard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default function DrilldownChangesSubcard({ changes }: DrilldownChangesSub
107107
};
108108

109109
const sortedChanges = useMemo(() => {
110-
return changes.sort((a, b) => a.ts - b.ts);
110+
return changes.sort((a, b) => b.ts - a.ts);
111111
}, [changes]);
112112

113113
if (!changes.length) {

0 commit comments

Comments
 (0)