Commit graph

304 commits

Author SHA1 Message Date
4f5bd1f851 Switch frontend react state from vanilla to redux (#1)
Also fixes issues with the catalogue parsing

Reviewed-on: #1
Co-authored-by: Loic Prieto <loic@the-fire-archmage.ninja>
Co-committed-by: Loic Prieto <loic@the-fire-archmage.ninja>
2025-09-01 20:53:15 +00:00
af03a4dc44 Allow Anti-X effects to be edited in the Weapons Table 2025-08-23 16:34:59 +02:00
0ed60bf00e Allow editing Effects on the Weapons Table 2025-08-23 15:57:33 +02:00
27490f3801 Generate new backend version with recent catalogues 2025-08-23 11:28:14 +02:00
c6a7689417 Write correctly the weapons abilities in the weapons table in the frontend 2025-08-23 11:20:25 +02:00
66f715217d Refactor modal and options panel and finish implementation of the KnownBugs modal 2025-08-23 10:29:16 +02:00
5dbfa79879 Disable some factions, fix minor ui issues, start implementing known bugs button 2025-08-22 20:11:56 +02:00
b8e4c28513 Update backend to use latest core version 2025-08-22 19:35:17 +02:00
1e76754926 Fix damage reduction calculations 2025-08-22 19:34:39 +02:00
1b5be70466 Style weapon pipelines 2025-08-22 18:49:19 +02:00
2a850ffe76 Modify themes for the metric breakdown 2025-08-22 18:35:29 +02:00
73b58e8413 Fix mobile alignments and overflows for the UI 2025-08-22 17:34:28 +02:00
b258daf1aa Produces more granular metrics for attacks and damage rerolls 2025-08-22 16:53:48 +02:00
352fa395c8 Add weapons amount information to weapon attack resolution for downstream usage 2025-08-22 16:11:56 +02:00
463e493875 Implement damage and attacks rerolls in frontend 2025-08-22 14:24:23 +02:00
3422014550 Implement damage and attacks rerolls on the backend api 2025-08-22 14:22:03 +02:00
fa9d7f5cf8 Fully implement damage and attack rerolls in core module 2025-08-22 13:48:56 +02:00
4fe27a15a2 Add rerolls to attacks and damage, part 1 2025-08-22 12:53:26 +02:00
70ac4b2fbf Fix dice expression incorrectly parsed in weapons table 2025-08-22 11:34:43 +02:00
90d352249c Bump frontend version and add release notes with latest changes 2025-08-22 10:11:55 +02:00
63278411e8 Fix weapon range dropdown to use dynamic values from bootstrap data
The Range column in the weapons table was showing incorrect values because
it used hardcoded options instead of the actual weapon range values from
the loaded data. Now uses bootstrapData.weaponRanges for dynamic options.
2025-08-22 10:09:20 +02:00
2153a1941a Fix correct reporting of hits without rerolls when fishing for lethal hits 2025-08-22 10:04:38 +02:00
1b237d53ac Update core library to better calculate lethal hits 2025-08-22 09:58:28 +02:00
e85f5d427c Fix lethal hits calculations
Now normal hits are appropriately reduced when fishing for critical hits and lethal hits
2025-08-22 09:57:25 +02:00
a2d236908c Make building and deploying the frontend easier from the CLI 2025-08-21 23:45:59 +02:00
38470aa06b Add custom weapon functionality and improve weapons table layout
- Add ability to create custom weapons in weapons table with full weapon properties
  - Fix DiceExpression component to handle both string and DiceExpression object inputs
  - Remove attacking unit requirement validation - now only requires weapons and defending unit
  - Update weapons table column widths for better space utilization and readability
  - Convert string dice expressions back to objects before sending to backend
2025-08-21 23:40:19 +02:00
b0b7205add Fix metrics breakdown information
Start making weapons table editable
2025-08-21 22:04:32 +02:00
d7b7279486 Add save rerolls and Feel No Pain to Defence Panel
- Added save reroll dropdown (none, 1s, failed, all) to DefencePanel
- Added Feel No Pain effect with type selection and roll value input
- Created FeelNoPainEffectDTO for backend data mapping
- Extended DefenceModifiersDTO with reroll and feelNoPainEffects fields
- Updated TypeScript interfaces to match backend DTOs
- Improved ResultsPanel to properly send defence modifiers to backend
2025-08-21 09:27:45 +02:00
4beda274ed Update release notes for latest frontend version 2025-08-20 23:37:50 +02:00
7b93824e2e Ansible converts metric port to number instead of keeping it a string, fuck my life 2025-08-20 23:30:09 +02:00
353eeae2f3 Update core dependency in backend and parse weapon ranges correctly 2025-08-20 23:20:42 +02:00
7485f0eab1 Ensure wound roll goal is between 2 and 6 2025-08-20 23:18:17 +02:00
c8bfaa8589 Restructure the attack panel visuals 2025-08-20 20:51:53 +02:00
0e2206f02e Add Dice Expression component 2025-08-20 19:09:54 +02:00
aa676a6534 Update versions 2025-08-20 17:42:23 +02:00
a5b362fc74 Add searchable select component and improve UX
- Create custom SearchableSelect component with keyboard navigation
  - Replace basic select dropdowns with searchable faction/unit selectors
  - Add destroyed models tracking in damage breakdown and summary
  - Change model selection from checkboxes to radio buttons
  - Refactor types system into organized modular files
  - Add comprehensive theme support for SearchableSelect across all factions
  - Fix orks theme z-index issues by removing conflicting transforms
  - Filter backend requests to only include selected model profile
2025-08-20 17:28:08 +02:00
650f70dfec Allow to select which model will be defending in the target defender 2025-08-20 16:08:50 +02:00
518f5e2ff1 Refactor TS types 2025-08-20 11:27:17 +02:00
8d02cba2f9 Refine results datacards 2025-08-20 10:54:09 +02:00
80399bb542 Update frontend version and release notes 2025-08-19 09:14:32 +02:00
b9ef5ef3f9 Rebuild results panel to introduce a pipeline concept instead of pure textual description 2025-08-19 09:08:01 +02:00
1126fcbec5 Update backend with latest 1.0.1 core to fix range parsing 2025-08-19 09:07:22 +02:00
8775fdaf6b Fix yaml range parsing in weapons 2025-08-19 08:57:32 +02:00
2a7d116c9e Reduce app icon size 2025-08-18 23:11:24 +02:00
b4f11cf616 Refine ork theme, add release notes and future milestones, add Info Modal in UI 2025-08-18 22:37:53 +02:00
4bfc1d845f Sort select boxes 2025-08-18 20:57:42 +02:00
9541ce44cf Add modal component to show app version in the frontend ui 2025-08-18 20:11:45 +02:00
3e2c9ac6bb Backend and Frontend releasable from the CLI. Now comes the frontend refinement 2025-08-18 19:02:24 +02:00
c44a8fb1bd Refactor justfiles and introduce running mode to avoid metrics in local 2025-08-17 21:35:21 +02:00
e97d992658 Let frontend be customisable and react to real backend 2025-08-17 19:38:07 +02:00