fix: remove MIT note from /license, fix Buy/Sell Gear button on /map, expand stash storage locations

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-06-16 11:21:45 +07:00
parent 805edd86ca
commit 9fc39651ca
4 changed files with 26 additions and 11 deletions

View file

@ -28,7 +28,7 @@ export interface StashItem {
// Rarity override (for special items)
rarity?: 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
// Physical storage location
storageLocation?: 'home' | 'warehouse' | 'friends' | 'parents' | 'wardrobe' | 'other';
storageLocation?: 'home' | 'car' | 'skatepark' | 'warehouse' | 'storage_unit' | 'van' | 'friends' | 'parents' | 'wardrobe' | 'backpack' | 'sponsor' | 'other';
}
export interface Stash {

View file

@ -85,10 +85,7 @@ export default function LicensePage() {
</div>
</div>
{/* MIT note */}
<p className="text-center text-gray-600 text-xs mt-8">
The source code is also available under the MIT license for those who need it.
</p>
</div>
</Layout>
);

View file

@ -1015,10 +1015,10 @@ export default function MapPage() {
<span className="hidden md:inline">{t('shops.addShop')}</span>
</Button>
</Link>
<Link to="/create-listing" className="flex-shrink-0 hidden sm:block">
<Link to="/marketplace" className="flex-shrink-0 hidden sm:block">
<Button size="sm" variant="outline" className="gap-1.5 border-2 border-orange-500/50 hover:bg-orange-500/10 text-orange-400 font-bold h-8 px-2 sm:px-3">
<ShoppingBag className="h-4 w-4" />
<span className="hidden md:inline">{t('marketplace.sellGear')}</span>
<span className="hidden md:inline">Buy/Sell Gear</span>
</Button>
</Link>
<Link to="/create-tour" className="flex-shrink-0 hidden sm:block">

View file

@ -230,10 +230,16 @@ function StashItemCard({ item, onEdit, onDelete, onListOnMarketplace, isWTB = fa
<span className="text-[10px] px-1.5 py-0.5 rounded-full border border-[#ff6600]/30 text-[#ff6600] font-bold uppercase tracking-wide">
{{
home: '🏠 Home',
car: '🚗 Car',
skatepark: '🛹 Skatepark',
warehouse: '🏭 Warehouse',
storage_unit: '🔒 Storage Unit',
van: '🚐 Van',
friends: "👫 Friend's",
parents: "👨‍👩‍👦 Parents'",
wardrobe: '🚪 Wardrobe',
backpack: '🎒 Backpack',
sponsor: '🤝 Sponsor',
other: '📦 Other',
}[item.storageLocation]}
</span>
@ -749,10 +755,16 @@ function AddItemDialog({ onAdd, mode = 'stash' }: { onAdd: (item: Omit<StashItem
<div className="grid grid-cols-3 gap-2">
{([
{ value: 'home', label: '🏠 Home' },
{ value: 'warehouse', label: '🏭 Warehouse' },
{ value: 'car', label: '🚗 Car' },
{ value: 'backpack', label: '🎒 Backpack' },
{ value: 'wardrobe', label: '🚪 Wardrobe' },
{ value: 'van', label: '🚐 Van' },
{ value: 'skatepark', label: '🛹 Skatepark' },
{ value: 'friends', label: "👫 Friend's" },
{ value: 'parents', label: "👨‍👩‍👦 Parents'" },
{ value: 'wardrobe', label: '🚪 Wardrobe' },
{ value: 'warehouse', label: '🏭 Warehouse' },
{ value: 'storage_unit', label: '🔒 Storage Unit' },
{ value: 'sponsor', label: '🤝 Sponsor' },
{ value: 'other', label: '📦 Other' },
] as const).map(({ value, label }) => (
<button
@ -1566,10 +1578,16 @@ export default function StashPage() {
{([
{ value: 'all', label: 'All' },
{ value: 'home', label: '🏠 Home' },
{ value: 'warehouse', label: '🏭 Warehouse' },
{ value: 'car', label: '🚗 Car' },
{ value: 'backpack', label: '🎒 Backpack' },
{ value: 'wardrobe', label: '🚪 Wardrobe' },
{ value: 'van', label: '🚐 Van' },
{ value: 'skatepark', label: '🛹 Skatepark' },
{ value: 'friends', label: "👫 Friend's" },
{ value: 'parents', label: "👨‍👩‍👦 Parents'" },
{ value: 'wardrobe', label: '🚪 Wardrobe' },
{ value: 'warehouse', label: '🏭 Warehouse' },
{ value: 'storage_unit', label: '🔒 Storage Unit' },
{ value: 'sponsor', label: '🤝 Sponsor' },
{ value: 'other', label: '📦 Other' },
] as const).map(({ value, label }) => (
<button