Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(society): list open looks first in the look picker

rubenluetke10-beepbecfdb9fe750
diff --git a/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx b/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx
index f26573f08d..f5d2edbd62 100644
--- a/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx
@@ -64,7 +64,8 @@ export function AccessoryPicker({ value, onChange, agentId }: { value: Companion
className={`${tile} text-xs text-muted-foreground ${!worn[slot] ? "border-foreground bg-secondary" : "border-border hover:bg-secondary"}`}>
{t("society.companion.none")}
</button>
- {ACCESSORY_IDS_BY_SLOT[slot].map(id => {
+ {/* Open looks first, then the rest in the order the agent will earn them. */}
+ {[...ACCESSORY_IDS_BY_SLOT[slot]].sort((a, b) => (looks.unlocks?.[a] ?? 0) - (looks.unlocks?.[b] ?? 0)).map(id => {
const name = t(`society.companion.items.${id}`);
const active = worn[slot] === id;
const open = wearable(id);