Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: correct TSV import double-counting drink servings and update quick-add presets
Adam Eivya7aa70422174
diff --git a/.changelog/v1.11.x.md b/.changelog/v1.11.x.mdindex a0992f9b46..9f1f3e1ee3 100644--- a/.changelog/v1.11.x.md+++ b/.changelog/v1.11.x.md@@ -23,6 +23,7 @@ Alcohol data table: view and edit all imported drink entries with inline editing## Fixes+- **TSV import drink count bug** — import was storing raw serving count alongside already-multiplied total oz, causing double-counted standard drinks across 390 entries; fixed import to always set count=1 since oz already represents total, and corrected all existing data- **Eye prescription display** now correctly reads flat field names (`leftSphere`, `rightCylinder`, etc.) instead of broken nested object access — prescriptions were showing as empty cards with only dates## Removeddiff --git a/client/src/components/meatspace/tabs/AlcoholTab.jsx b/client/src/components/meatspace/tabs/AlcoholTab.jsxindex 229ca9dc0b..54d814e122 100644--- a/client/src/components/meatspace/tabs/AlcoholTab.jsx+++ b/client/src/components/meatspace/tabs/AlcoholTab.jsx@@ -6,13 +6,9 @@ import AlcoholChart from '../AlcoholChart';import StandardDrinkCalculator from '../StandardDrinkCalculator';const COMMON_DRINKS = [- { name: 'Beer (12oz)', oz: 12, abv: 5 },- { name: 'IPA (16oz)', oz: 16, abv: 6.5 },- { name: 'Wine (5oz)', oz: 5, abv: 12 },- { name: 'Spirit (1.5oz)', oz: 1.5, abv: 40 },- { name: 'Cocktail (6oz)', oz: 6, abv: 15 },- { name: 'Hard Seltzer (12oz)', oz: 12, abv: 5 },- { name: 'Guinness (14.9oz)', oz: 14.9, abv: 4.2 }+ { name: 'Guinness (14.9oz)', oz: 14.9, abv: 4.2 },+ { name: 'Old Fashioned (2oz)', oz: 2, abv: 40 },+ { name: 'N/A Beer (12oz)', oz: 12, abv: 0.4 }];const RISK_COLORS = {@@ -53,7 +49,7 @@ export default function AlcoholTab() {const [oz, setOz] = useState('');const [abv, setAbv] = useState('');const [count, setCount] = useState(1);- const [date, setDate] = useState('');+ const [date, setDate] = useState(new Date().toISOString().split('T')[0]);// Inline edit stateconst [editingKey, setEditingKey] = useState(null); // "date:index"diff --git a/package-lock.json b/package-lock.jsonindex b056d0c66e..9341c93e86 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "portos",- "version": "1.12.0",+ "version": "1.12.1","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "portos",- "version": "1.12.0",+ "version": "1.12.1","license": "MIT","dependencies": {"express": "^4.21.2",diff --git a/package.json b/package.jsonindex a5d5a0997e..6bf5a202df 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "portos",- "version": "1.12.0",+ "version": "1.12.1","private": true,"description": "Local dev machine App OS portal","author": "Adam Eivy (@antic|@atomantic)",diff --git a/server/services/meatspaceImport.js b/server/services/meatspaceImport.jsindex d905e88978..74e7ee2026 100644--- a/server/services/meatspaceImport.js+++ b/server/services/meatspaceImport.js@@ -110,7 +110,7 @@ function parseBeverages(row, beverageNames, beverageABVs, beverageSizes) {const pureAlcoholOz = oz * (abv / 100);const standardDrinks = pureAlcoholOz / 0.6;- drinks.push({ name, abv, oz, count });+ drinks.push({ name, abv, oz, count: 1 });totalStandardDrinks += standardDrinks;}