From 4f5e2c3ddb56e520c7a7b7e4f591c2330bebde84 Mon Sep 17 00:00:00 2001 From: Rich Jenkins Date: Fri, 17 Jul 2026 17:06:58 +0100 Subject: [PATCH 1/7] Fixed tooltip trigger, full tile, not just text --- src/features/material_tile/components/MaterialTile.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/material_tile/components/MaterialTile.vue b/src/features/material_tile/components/MaterialTile.vue index c4dada8e1..cec9fc1c6 100644 --- a/src/features/material_tile/components/MaterialTile.vue +++ b/src/features/material_tile/components/MaterialTile.vue @@ -165,7 +165,7 @@ @@ -194,7 +196,8 @@
+ :ticker="rowData.environmentSurface[0]" + popover-placement="left" />
{{ $t("terms.surface") }} @@ -204,7 +207,8 @@
+ :ticker="rowData.environmentGravity[0]" + popover-placement="left" />
{{ $t("terms.gravity") }} @@ -217,7 +221,8 @@ :key="rowData.environmentTemperature[0]" :ticker=" rowData.environmentTemperature[0] - " /> + " + popover-placement="left" /> {{ $t("terms.temperature") }} @@ -227,7 +232,8 @@
+ :ticker="rowData.environmentPressure[0]" + popover-placement="left" />
{{ $t("terms.pressure") }} diff --git a/src/features/planning/components/tools/PlanConstructionCart.vue b/src/features/planning/components/tools/PlanConstructionCart.vue index f9859604e..fd6994142 100644 --- a/src/features/planning/components/tools/PlanConstructionCart.vue +++ b/src/features/planning/components/tools/PlanConstructionCart.vue @@ -387,7 +387,7 @@ v-for="mat in uniqueMaterials" :key="`CONSTRUCTIONCART#COLUMN#${mat}`" class="text-center!"> - + diff --git a/src/features/roi_overview/components/ROIOverviewTable.vue b/src/features/roi_overview/components/ROIOverviewTable.vue index 8594ab0c8..d2d9dc231 100644 --- a/src/features/roi_overview/components/ROIOverviewTable.vue +++ b/src/features/roi_overview/components/ROIOverviewTable.vue @@ -206,7 +206,8 @@ v-for="output in rowData.recipeOutputs" :key="`${rowData.buildingTicker}#output#${output.material_ticker}`" :ticker="output.material_ticker" - :amount="output.material_amount" /> + :amount="output.material_amount" + popover-placement="right" /> @@ -219,7 +220,8 @@ v-for="output in rowData.recipeInputs" :key="`${rowData.buildingTicker}#input#${output.material_ticker}`" :ticker="output.material_ticker" - :amount="output.material_amount" /> + :amount="output.material_amount" + popover-placement="right" /> diff --git a/src/ui/components/PTooltip.vue b/src/ui/components/PTooltip.vue index 98d476440..e7728ab6e 100644 --- a/src/ui/components/PTooltip.vue +++ b/src/ui/components/PTooltip.vue @@ -2,13 +2,14 @@ import { ref, onBeforeUnmount, nextTick } from "vue"; import { tooltipConfig } from "@/ui/styles"; import { createPopper, Instance } from "@popperjs/core"; + import type { Placement } from "@popperjs/core"; const { placement = "top", offset = 8, disabled = false, } = defineProps<{ - placement?: "top" | "bottom" | "left" | "right"; + placement?: Placement; offset?: number; disabled?: boolean; }>(); @@ -39,13 +40,9 @@ { name: "flip", options: { - fallbackPlacements: [ - "top", - "bottom", - "left", - "right", - ], boundary: "viewport", + padding: 8, + altAxis: false, }, }, { @@ -53,7 +50,6 @@ options: { boundary: "viewport", padding: 8, - altAxis: true, tether: false, }, }, From 2a4ac4bb5d06aa11b15b4a85c7d309d60bae66d6 Mon Sep 17 00:00:00 2001 From: Rich Jenkins Date: Sat, 18 Jul 2026 16:58:37 +0100 Subject: [PATCH 3/7] Fix escaped html entities in translation files --- src/locales/de_DE/empire.json | 2 +- src/locales/en_US/empire.json | 2 +- src/locales/es_ES/empire.json | 2 +- src/locales/fr_FR/empire.json | 2 +- src/locales/ja_JP/empire.json | 2 +- src/locales/ko_KR/empire.json | 2 +- src/locales/nl_NL/empire.json | 2 +- src/locales/pt_PT/empire.json | 2 +- src/locales/ru_RU/empire.json | 2 +- src/locales/zh_CN/empire.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/locales/de_DE/empire.json b/src/locales/de_DE/empire.json index 626f864f9..2c4712fb6 100644 --- a/src/locales/de_DE/empire.json +++ b/src/locales/de_DE/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Gebäude", - "flow_inputs": "Produktion (Input &arr; Output)", + "flow_inputs": "Produktion (Input → Output)", "analysis": "Analyse", "sell_inputs": "Inputs verkaufen", "sell_outputs": "Outputs verkaufen", diff --git a/src/locales/en_US/empire.json b/src/locales/en_US/empire.json index a2f0ecccb..09d44e496 100644 --- a/src/locales/en_US/empire.json +++ b/src/locales/en_US/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Building", - "flow_inputs": "Production (Inputs → Outputs)", + "flow_inputs": "Production (Inputs → Outputs)", "analysis": "Analysis", "sell_inputs": "Sell Inputs", "sell_outputs": "Sell Outputs", diff --git a/src/locales/es_ES/empire.json b/src/locales/es_ES/empire.json index a2f0ecccb..09d44e496 100644 --- a/src/locales/es_ES/empire.json +++ b/src/locales/es_ES/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Building", - "flow_inputs": "Production (Inputs → Outputs)", + "flow_inputs": "Production (Inputs → Outputs)", "analysis": "Analysis", "sell_inputs": "Sell Inputs", "sell_outputs": "Sell Outputs", diff --git a/src/locales/fr_FR/empire.json b/src/locales/fr_FR/empire.json index e97fc0955..5b1b39b8f 100644 --- a/src/locales/fr_FR/empire.json +++ b/src/locales/fr_FR/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Bâtiment", - "flow_inputs": "Production (Inputs → Outputs)", + "flow_inputs": "Production (Inputs → Outputs)", "analysis": "Analysis", "sell_inputs": "Sell Inputs", "sell_outputs": "Sell Outputs", diff --git a/src/locales/ja_JP/empire.json b/src/locales/ja_JP/empire.json index a2f0ecccb..09d44e496 100644 --- a/src/locales/ja_JP/empire.json +++ b/src/locales/ja_JP/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Building", - "flow_inputs": "Production (Inputs → Outputs)", + "flow_inputs": "Production (Inputs → Outputs)", "analysis": "Analysis", "sell_inputs": "Sell Inputs", "sell_outputs": "Sell Outputs", diff --git a/src/locales/ko_KR/empire.json b/src/locales/ko_KR/empire.json index a2f0ecccb..09d44e496 100644 --- a/src/locales/ko_KR/empire.json +++ b/src/locales/ko_KR/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Building", - "flow_inputs": "Production (Inputs → Outputs)", + "flow_inputs": "Production (Inputs → Outputs)", "analysis": "Analysis", "sell_inputs": "Sell Inputs", "sell_outputs": "Sell Outputs", diff --git a/src/locales/nl_NL/empire.json b/src/locales/nl_NL/empire.json index a2f0ecccb..09d44e496 100644 --- a/src/locales/nl_NL/empire.json +++ b/src/locales/nl_NL/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Building", - "flow_inputs": "Production (Inputs → Outputs)", + "flow_inputs": "Production (Inputs → Outputs)", "analysis": "Analysis", "sell_inputs": "Sell Inputs", "sell_outputs": "Sell Outputs", diff --git a/src/locales/pt_PT/empire.json b/src/locales/pt_PT/empire.json index a2f0ecccb..09d44e496 100644 --- a/src/locales/pt_PT/empire.json +++ b/src/locales/pt_PT/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Building", - "flow_inputs": "Production (Inputs → Outputs)", + "flow_inputs": "Production (Inputs → Outputs)", "analysis": "Analysis", "sell_inputs": "Sell Inputs", "sell_outputs": "Sell Outputs", diff --git a/src/locales/ru_RU/empire.json b/src/locales/ru_RU/empire.json index 8bd74188a..daf60c958 100644 --- a/src/locales/ru_RU/empire.json +++ b/src/locales/ru_RU/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "Строительство", - "flow_inputs": "Производство (Входные → Выходные материалы)", + "flow_inputs": "Производство (Входные → Выходные материалы)", "analysis": "Аналитика", "sell_inputs": "Продать входные", "sell_outputs": "Продать выходные", diff --git a/src/locales/zh_CN/empire.json b/src/locales/zh_CN/empire.json index 5b68255dc..934d1e938 100644 --- a/src/locales/zh_CN/empire.json +++ b/src/locales/zh_CN/empire.json @@ -59,7 +59,7 @@ }, "table": { "building": "建筑", - "flow_inputs": "生产(输入→输出)", + "flow_inputs": "生产(输入→输出)", "analysis": "分析", "sell_inputs": "售出输入项", "sell_outputs": "售出输出项", From 7fc8a61bf9c042ace90a7826908d1f60eb683db7 Mon Sep 17 00:00:00 2001 From: Rich Jenkins Date: Thu, 23 Jul 2026 15:12:17 +0100 Subject: [PATCH 4/7] Add 7D/30D market share to mat overview --- .../cx/components/MaterialCXOverviewTable.vue | 64 +++++++++++++++---- .../material_tile/components/MaterialTile.vue | 6 ++ 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/src/features/cx/components/MaterialCXOverviewTable.vue b/src/features/cx/components/MaterialCXOverviewTable.vue index 1cf4da0f3..bcd8ea429 100644 --- a/src/features/cx/components/MaterialCXOverviewTable.vue +++ b/src/features/cx/components/MaterialCXOverviewTable.vue @@ -1,5 +1,5 @@