Spaces:
Running
Running
Commit History
3 days ago
-
Charge transport + maintenance as a lump sum on product return Running
Previously repair cost was smeared evenly across each cycle's active months and logistics cost landed at the end of the idle period. Both are now a single lump sum (transport + maintenance together) charged at the moment the product is collected back from the customer — the end of each active period — which is when that cost is actually incurred. The cost line on the Break Even Timeline is now flat while a product is in active use and steps up only at collection; revenue is unchanged (still a staircase: rises through active months, flat through idle months). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>6cbd5b9 -
Model idle (off-season) months in the Strategy break-even math
A cycle shorter than 12 months (e.g. Parkdressen's 8-month active season) now sits idle for the rest of the calendar year before the next cycle's logistics cost is paid and it returns to active service. Revenue and repair wear only accrue during active months; the cumulative revenue line now visibly flatlines during idle months on the Break Even Timeline chart, and the lead text/caption explain it. Cycle lengths of 12+ months are unaffected (idle = 0). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>c06a407 -
Redesign Break Even Timeline as cost-vs-revenue lines
Replaces the single net-profit curve with two cumulative lines: a straight revenue line from zero and a jagged cost line starting at the upfront manufacturing spend, stepping up at each cycle's logistics cost and creeping up from repairs. This reads more directly than the old cumulative-profit area chart, whose unified hover tooltip was also showing confusing duplicate zero-valued entries from the shading traces — now fixed with clean, pre-formatted hover text and hoverinfo="skip" on the shading layers. Also fixes the Strategy view's "Cycle Cost" slider, which was wired up but never actually read by the break-even/revenue math (a hardcoded 150 NOK was used instead), and changes the default Cycle Length from 12 to 8 months. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>e3bb96a -
Add Cycle Length slider to Strategy view
Replaces the hardcoded 12-month lease term used in break-even, revenue and margin calculations with a configurable slider (1-36 months), paired with the existing number-input pattern. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>55228ec -
Add number inputs to sliders, default to Parkdressen with preset values
Pairs every sidebar slider with a synced number box for precise entry, defaults the product picker to Parkdressen, seeds Strategy view with fleet 7000 / price 100 / mfg cost 750 / reuse cycles 4, and adds a Cycle Cost slider to Strategy (shared with the Logistics view). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>9124059
4 days ago
-
Fix product switching, slider resets and deprecation warning
Selecting a product now loads its own lease price and cost, slider values persist when moving between views, and the sidebar image no longer triggers the use_column_width deprecation box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>fc620de
-
Remove redundant sidebar headers from all view pages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>cf10020 -
Remove redundant Portfolio Parameters header and caption from sidebar
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a781866 -
Simplify sidebar: remove redundant headers, use selectbox labels only
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>9013fb6 -
Pull logo up with negative margin to close sidebar top gap
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a758f73 -
Fix sidebar top spacing: target all Streamlit internal wrappers with padding 0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c63cb86 -
Make dropdowns non-editable, force sidebar padding to 0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5ff8fdc -
Reduce sidebar top spacing above LiiS logo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7bf3fa4 -
Reorganize project: local product images, add Parkdress, clean up structure
- Download product images locally (products/*/image.png|webp) instead of external URLs - Add LiiS Parkdress product (3-season kindergarten coverall, 86 NOK/mo) - Rename 'liis branding/' to 'branding/' (no spaces) - Remove unused screenshots and empty reports/ directory - Update add-product skill with new workflow and NOK currency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>cb18184
-
Add Operations + Sustainability views, redesign Logistics/Sourcing/Market, convert to NOK
- Add 2 new views: Operations (turnaround time, throughput, waste) and Sustainability (CO2 savings, loop strategies, ESPR/EPR mapping) - Redesign 3 existing views: Logistics (collection timing, cost breakdown), Sourcing (recycled content optimization, BOM analysis), Market (retention, quality impact, subscription tiers) - Convert all product configs from EUR to NOK (x11.5) - Remove EUR sync hack, update all format strings and slider ranges - Add hero_card/metric_card/foundation_banner helper functions - Foundation banner shows Strategy decisions across all operational views Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>731725b
-
Move logo to sidebar at native size to fix pixelation
Logo is 85×44px — cap at natural height instead of upscaling to 60px. Placed above the view selector in the sidebar. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0642cff -
Switch to new LiiS logo (transparent background)
Replace old generated logo images with clean image.png. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8ba37ce
-
Increase Design grade chart height from 250 to 350
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0da50f1 -
Fix Logistics view grade chart: horizontal bars matching Design view
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>46d2ac4
-
Fix grade chart viewport: explicit category axis, autorange, closest hover
Override template defaults that break categorical bar charts: set xaxis type=category, yaxis autorange=true, hovermode=closest, and disable modebar to prevent zoom state issues. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0b848ad -
Fix grade bar charts with go.Bar — px.bar doesn't render in Streamlit
px.bar with color=Grade creates separate single-bar traces that fail to render. Switch to go.Bar with per-bar marker_color which reliably renders identical output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>de58c34 -
Revert to original px.bar, fix with hovermode="closest"
Restore original px.bar chart code for grade distribution. The actual fix is overriding the template's hovermode from "x unified" to "closest" which was causing categorical bar charts to need a double-click to render. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>fe3b2d9 -
Fix grade chart needing double-click to display
Remove fixed y-axis range and override hovermode to "closest" for categorical bar charts — template's "x unified" hovermode caused Plotly to initialize with a bad viewport on categorical axes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0853bfb -
Fix Return Grades bar chart showing no bars in Design/Logistics views
Replace px.bar with go.Bar for grade distribution charts — px.bar with color=Grade created separate traces that failed to render in Streamlit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>218538a -
Reduce sidebar top padding
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>753383e -
Update to Gemini-generated LiiS logo
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>2e57a6c -
Make all charts full-width with use_container_width=True
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>20ef46f -
Rename to Circular Economy Transition, Recovery Rate → Reuse Rate
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>0f3b4d7 -
Redesign header, remove shared product section, transparent logo
- Logo rendered via base64 HTML at crisp size - Remove "LiiS" from title, now "Circular Economy Simulator" - Logo left-aligned above title - Remove shared product header/executive summary from all views - Remove Design foundation section - View selector moved to top of sidebar as dropdown - Remove sidebar dividers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>d9a71a1 -
Redesign sidebar and add LiiS logo
- Add view intro headers (audience + insights) to all 5 views - Move view selection above product, change to dropdown - Remove sidebar dividers - Add LiiS logo top-right of main view - Remove Repair/Scrap Rate cards, simplify to Grade A + Repair Cost row - Repairability score 0-10 scale - Fix Return Grade chart y-axis to 0-100 - Bump view description text size Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1c54d69 -
Fix sidebar image: use_column_width for HF Streamlit version
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>138265a -
Redesign Design view and fix sidebar image width bug
Replace Design view with designer-focused layout: Recovery Rate hero metric, 3 new input sliders (damage rate, repairability, spare parts), 2x2 supporting metric cards, part failure distribution chart, and condition degradation gauges. Fix sidebar image width parameter (width="stretch" → use_container_width=True) for newer Streamlit. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>66a3e2c -
Polish Strategy cards and update Hamax product image
- Rename header to "Portfolio Economics", add "Operating Efficiency" subheader - Increase card title and value font sizes - Remove footer and trailing dividers - Update Hamax Outback image and product URL Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>14dbd02 -
Fix sidebar image width parameter
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>9ad332a -
Fix deprecation warnings and reorder Strategy cards
- Move Break Even + Margin above Revenue + Cost with spacing - Remove deprecated use_column_width from all plotly_chart calls - Fix deprecated use_column_width on sidebar image - Remove emoji from Portfolio Parameters header Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>962353d -
Fix: use_column_width for older Streamlit on HF
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ece90cc -
Clean up Strategy card layout and scale break-even chart
- Revenue cards on same row, blended cost cards on same row - Bold headers on all cards - Break even and margin use primary blue instead of color-coded - Remove colored top borders from cards - Break even timeline scales with reuse cycles Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ee3e76f -
Redesign Strategy view layout and apply LiiS brand theme
- Remove teal gradient header, use plain title - Replace dark hero banner with clean card rows (Break Even, Margin, Revenue, Cost) - Remove status badge pill - Stack revenue/cost cards vertically with per-product and portfolio levels - Replace Fleet Efficiency bar chart with line chart (customers served vs products manufactured) - Apply LiiS light palette (COLORS dict, liis Plotly template) across all views - Fix undefined margin_color reference in Revenue & Cost chart Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>cbed23f
-
Clean up Strategy view - hide product header & exec summary
- Hide Product Header and Executive Summary for Strategy view - Strategy now has clean standalone layout without clutter - Add liis-design.md skill for brand colors (to be updated) - Other views retain the Executive Summary Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>2c64567 -
Integrate simplified C-Level Strategy view into main app
- Replace complex 8-slider model with 4 essential sliders: - Product Portfolio (50-1000 units) - Monthly Lease Price (250-650 NOK) - Manufacturing Cost (2500-7500 NOK) - Reuse Cycles (2-10) - Tier 1 (Hero): Break Even + Total Portfolio Profit - Tier 2: Unit economics (revenue/cost per product & portfolio) - Model comparison: Circular vs Linear side-by-side cards - Chart: Cost/Revenue trajectory across cycles (2-10) - Tier 3 At Scale: Customer base projection with 5-year trajectory Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1c3f26e
-
Overhaul Strategy page with new economic model
- Add 8 new sliders: linear price, lease price, mfg cost, fleet size, utilization rate, logistics cost, repair cost/month, cycle length - Add cumulative earnings over time chart (0-120 months) - Add scenario comparison: save/clear scenarios feature - Add breakeven analysis with marker on chart - Add cycle transition markers (vertical dashed lines) - Update hero metrics: breakeven month, monthly net revenue, 10yr profit - Update Fleet Scale Economics to use new model - Replace cycle sensitivity with cycle length analysis - Switch Strategy view to NOK currency (other views remain EUR) - Add model parameters summary expander Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>bcf0c50 -
Add Executive Summary section with 5 key KPIs
- Calculate operating margin (lifecycle profit / revenue) - Show color-coded status badge (Profitable/Healthy/Break-even/Loss) - Display 5 KPI metrics: Monthly Lease, Operating Margin, Manufacturing Cost, Recovery Rate, Max Cycles - Add contextual insight message based on model status - Section visible in all stakeholder views Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>406a69d
-
Fix Logistics products chart y-axis range (0-110)
bb80198 -
Fix bar chart y-axis scaling (rangemode=tozero)
9048554 -
Restructure tabs: Strategy, Design, Logistics, Sourcing, Market
- Fix Fleet Scale Economics chart (show Profit Advantage instead of comparing similar-sized profits) - Rename Operations → Logistics - Move BOM/materials from Design → new Sourcing tab - Design tab now focuses on circularity impact (grades, material composition) - Expand Market tab with competitive positioning tables - Update sidebar controls per tab Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>b2744d8 -
Add stakeholder-specific views (Strategy, Design, Operations, Product, Growth)
- Replace single scrolling dashboard with 5 targeted views - Each view has its own sidebar controls relevant to that stakeholder - Strategy: Fleet scale economics, cycle sensitivity for C-level - Design: BOM, recycled content, material composition for designers - Operations: Grade distribution, cost per cycle, products tracking - Product: Unit economics, pricing analysis for product managers - Growth: Customer value proposition, environmental story for marketing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>4811e6a
-
Fix st.dataframe width parameter (use_container_width)
st.dataframe() uses use_container_width=True, not width="stretch" (width="stretch" is for st.plotly_chart only) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>2e7dc8e -
Add Fleet Scale Economics section for volume advantage pitch
Shows circular vs linear comparison at 500, 1000, 2000, 5000 products: - Profit at scale comparison chart - Products needed to serve same customers - Business case summary for Jonas's pitch (5k products = 15k customers) - CO2 savings from fewer manufactured products Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>b51241a
-
Fix slider percentage scaling
- Return Rate: now shows 50-100% correctly - Products Needing Repair: now shows 5-50% correctly - Changed from float (0.50) to int (50) with proper % format Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>38842b2 -
Simplify and reorganize sidebar controls
New structure by question: - 💰 Pricing: Monthly lease price - ♻️ Circularity: Return rate, % needing repair - 💵 Costs: Manufacturing, avg refurb, logistics Changes: - Removed "Customers per month" (doesn't affect per-product economics) - Combined Grade A/B/C into single "Products Needing Repair" slider - Combined Refurb A/B costs into single "Avg. Refurbishment Cost" - Added € formatting to cost sliders - Added % formatting to rate sliders - Cleaner category headers with icons Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ed62651