poi-plugin-remodel-assistant 1.2.3-beta.2 → 1.2.3-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/main.css CHANGED
@@ -5731,17 +5731,6 @@
5731
5731
  font-size: var(--improvement-font-caption);
5732
5732
  }
5733
5733
 
5734
- @media (max-width: 820px) {
5735
- #item-improvement .decision-equipment-row.is-compact:not(.is-workbench) .decision-equipment-meta {
5736
- display: flex;
5737
- }
5738
-
5739
- #item-improvement .decision-equipment-row.is-compact:not(.is-workbench)
5740
- .decision-equipment-meta .decision-pill:not(.decision-owned-count-pill) {
5741
- display: none;
5742
- }
5743
- }
5744
-
5745
5734
  /* React-Bootstrap mounts category dialogs outside #item-improvement. */
5746
5735
  .decision-category-filter-dialog .decision-category-filter-guide {
5747
5736
  display: grid;
@@ -11074,6 +11063,12 @@ body.decision-modal-is-dragging * {
11074
11063
  gap: 6px;
11075
11064
  }
11076
11065
 
11066
+ #item-improvement .decision-equipment-plan-ownership {
11067
+ display: flex;
11068
+ align-items: center;
11069
+ margin-bottom: 8px;
11070
+ }
11071
+
11077
11072
  #item-improvement .decision-equipment-plan-row {
11078
11073
  display: grid;
11079
11074
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) auto;
package/i18n/en-US.json CHANGED
@@ -1500,5 +1500,7 @@
1500
1500
  "diagnostics.The bundle contains inventory and plugin settings. Review it before sharing.": "The bundle contains inventory and plugin settings. Review it before sharing.",
1501
1501
  "diagnostics.The diagnostic bundle could not be exported": "The diagnostic bundle could not be exported.",
1502
1502
  "diagnostics.Canonical plugin backup with plans, route choices, assignments, blacklist, and UI preferences": "Canonical plugin backup with plans, route choices, assignments, blacklist, and UI preferences",
1503
- "equipment.Upgrade chain terminal": "Upgrade chain terminal"
1503
+ "equipment.Upgrade chain terminal": "Upgrade endpoint",
1504
+ "equipment.Improvement route": "Improvement route",
1505
+ "equipment.Improvement endpoint": "Improvement endpoint"
1504
1506
  }
package/i18n/ja-JP.json CHANGED
@@ -1500,5 +1500,7 @@
1500
1500
  "diagnostics.The bundle contains inventory and plugin settings. Review it before sharing.": "診断パッケージには所持データとプラグイン設定が含まれます。共有前に内容を確認してください。",
1501
1501
  "diagnostics.The diagnostic bundle could not be exported": "診断パッケージを書き出せませんでした。",
1502
1502
  "diagnostics.Canonical plugin backup with plans, route choices, assignments, blacklist, and UI preferences": "計画、ルート選択、装備割り当て、低優先装備、UI設定を含む標準プラグインバックアップ",
1503
- "equipment.Upgrade chain terminal": "改修チェーン終端"
1503
+ "equipment.Upgrade chain terminal": "改修終点",
1504
+ "equipment.Improvement route": "改修ルート",
1505
+ "equipment.Improvement endpoint": "改修終点"
1504
1506
  }
package/i18n/zh-CN.json CHANGED
@@ -1500,5 +1500,7 @@
1500
1500
  "diagnostics.The bundle contains inventory and plugin settings. Review it before sharing.": "诊断包包含库存数据和插件设置,分享前请确认内容。",
1501
1501
  "diagnostics.The diagnostic bundle could not be exported": "无法导出诊断包。",
1502
1502
  "diagnostics.Canonical plugin backup with plans, route choices, assignments, blacklist, and UI preferences": "插件标准备份,包含计划、路线选择、装备分配、低优先装备和界面设置",
1503
- "equipment.Upgrade chain terminal": "改修链末端"
1503
+ "equipment.Upgrade chain terminal": "改修终点",
1504
+ "equipment.Improvement route": "改修路线",
1505
+ "equipment.Improvement endpoint": "改修终点"
1504
1506
  }
package/i18n/zh-TW.json CHANGED
@@ -1500,5 +1500,7 @@
1500
1500
  "diagnostics.The bundle contains inventory and plugin settings. Review it before sharing.": "診斷包包含庫存資料與外掛設定,分享前請確認內容。",
1501
1501
  "diagnostics.The diagnostic bundle could not be exported": "無法匯出診斷包。",
1502
1502
  "diagnostics.Canonical plugin backup with plans, route choices, assignments, blacklist, and UI preferences": "外掛標準備份,包含計畫、路線選擇、裝備分配、低優先裝備與介面設定",
1503
- "equipment.Upgrade chain terminal": "改修鏈末端"
1503
+ "equipment.Upgrade chain terminal": "改修終點",
1504
+ "equipment.Improvement route": "改修路線",
1505
+ "equipment.Improvement endpoint": "改修終點"
1504
1506
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poi-plugin-remodel-assistant",
3
- "version": "1.2.3-beta.2",
3
+ "version": "1.2.3-beta.4",
4
4
  "description": "View enhanced KanColle improvement data, manage improvement plans, and receive improvement recommendations.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -127,7 +127,11 @@ class EquipmentPlanSection extends _react.default.Component {
127
127
  title: __('Plans')
128
128
  }, _react.default.createElement("section", {
129
129
  className: "decision-workbench-detail-section decision-equipment-plan-section"
130
- }, rows.length > 0 ? _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("div", {
130
+ }, _react.default.createElement("div", {
131
+ className: "decision-equipment-plan-ownership"
132
+ }, _react.default.createElement("span", {
133
+ className: "decision-pill decision-owned-count-pill"
134
+ }, __('Owned count %d').replace('%d', Number(item.ownedCount) || 0))), rows.length > 0 ? _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("div", {
131
135
  className: "decision-equipment-plan-list-actions"
132
136
  }, _react.default.createElement(_reactBootstrap.Button, {
133
137
  bsSize: "xsmall",
@@ -185,7 +185,6 @@ class EquipmentList extends _react.Component {
185
185
  selectedId,
186
186
  onSelect,
187
187
  emptyText,
188
- showOwnedCount,
189
188
  variant,
190
189
  masterEquips,
191
190
  equipLevels,
@@ -304,9 +303,7 @@ class EquipmentList extends _react.Component {
304
303
  }, _react.default.createElement("span", {
305
304
  className: "glyphicon glyphicon-ok",
306
305
  "aria-hidden": "true"
307
- }), __('Route selected')), showOwnedCount && _react.default.createElement("span", {
308
- className: "decision-pill decision-owned-count-pill"
309
- }, __('Owned count %d').replace('%d', item.ownedCount))));
306
+ }), __('Route selected'))));
310
307
  }), (!items || items.length === 0) && _react.default.createElement("div", {
311
308
  className: "decision-empty-state"
312
309
  }, emptyText));
@@ -325,7 +322,6 @@ Object.defineProperty(EquipmentList, "propTypes", {
325
322
  locateKey: _propTypes.default.string,
326
323
  onSelect: _propTypes.default.func.isRequired,
327
324
  emptyText: _propTypes.default.string.isRequired,
328
- showOwnedCount: _propTypes.default.bool,
329
325
  variant: _propTypes.default.oneOf(['default', 'compact', 'workbench']),
330
326
  masterEquips: _propTypes.default.object,
331
327
  equipLevels: _propTypes.default.object,
@@ -340,7 +336,6 @@ Object.defineProperty(EquipmentList, "defaultProps", {
340
336
  value: {
341
337
  selectedId: null,
342
338
  locateKey: '',
343
- showOwnedCount: false,
344
339
  variant: 'default',
345
340
  masterEquips: {},
346
341
  equipLevels: {},
@@ -161,8 +161,8 @@ class EquipmentWorkspace extends _react.Component {
161
161
  }, _react.default.createElement("div", {
162
162
  className: "decision-filter-buttons decision-weekday-buttons"
163
163
  }, WEEKDAY_KEYS.map((key, day) => this.renderToggle(selectedDays.includes(day), __(key), () => this.handleDay(day), key)))), _react.default.createElement(_filterControls.FilterRow, {
164
- label: __('Improvement capability')
165
- }, _react.default.createElement(_filterControls.FilterButtonGroup, null, [[_equipmentWorkspaceModel.UPGRADE_STATUSES.ALL, __('All equipment')], [_equipmentWorkspaceModel.UPGRADE_STATUSES.TERMINAL, __('Upgrade chain terminal')], [_equipmentWorkspaceModel.UPGRADE_STATUSES.EVOLVABLE, __('Evolvable')], [_equipmentWorkspaceModel.UPGRADE_STATUSES.IMPROVABLE, __('Improvable')]].map(([value, label]) => this.renderToggle(upgradeStatus === value, label, () => this.setState({
164
+ label: __('Improvement route')
165
+ }, _react.default.createElement(_filterControls.FilterButtonGroup, null, [[_equipmentWorkspaceModel.UPGRADE_STATUSES.ALL, __('All equipment')], [_equipmentWorkspaceModel.UPGRADE_STATUSES.TERMINAL, __('Improvement endpoint')], [_equipmentWorkspaceModel.UPGRADE_STATUSES.EVOLVABLE, __('Evolvable')]].map(([value, label]) => this.renderToggle(upgradeStatus === value, label, () => this.setState({
166
166
  upgradeStatus: value
167
167
  }), value)))), _react.default.createElement(_filterControls.FilterRow, {
168
168
  label: __('Sort by')
@@ -216,7 +216,6 @@ class EquipmentWorkspace extends _react.Component {
216
216
  locateKey: locateKey,
217
217
  onSelect: onSelect,
218
218
  emptyText: __('No matching equipment'),
219
- showOwnedCount: true,
220
219
  variant: "compact",
221
220
  masterEquips: masterEquips,
222
221
  masterUseitems: masterUseitems
@@ -30,8 +30,7 @@ exports.AVAILABILITY_MODES = AVAILABILITY_MODES;
30
30
  const UPGRADE_STATUSES = {
31
31
  ALL: 'all',
32
32
  TERMINAL: 'terminal',
33
- EVOLVABLE: 'evolvable',
34
- IMPROVABLE: 'improvable'
33
+ EVOLVABLE: 'evolvable'
35
34
  };
36
35
  exports.UPGRADE_STATUSES = UPGRADE_STATUSES;
37
36
  const EQUIPMENT_SORT_MODES = {
@@ -74,13 +73,11 @@ const matchesPlanStatus = (item, status) => {
74
73
  };
75
74
 
76
75
  const matchesUpgradeStatus = (item, status) => {
77
- if (status === UPGRADE_STATUSES.TERMINAL) return Boolean(item.terminalEvolutionTarget);
78
- if (status === UPGRADE_STATUSES.EVOLVABLE) return item.hasEvolution;
79
-
80
- if (status === UPGRADE_STATUSES.IMPROVABLE) {
81
- return item.hasImprovement && !item.hasEvolution;
76
+ if (status === UPGRADE_STATUSES.TERMINAL) {
77
+ return !item.hasEvolution && (item.hasImprovement || item.terminalEvolutionTarget);
82
78
  }
83
79
 
80
+ if (status === UPGRADE_STATUSES.EVOLVABLE) return item.hasEvolution;
84
81
  return true;
85
82
  };
86
83