Commit Graph

372 Commits

Author SHA1 Message Date
Frank 40480bbabe Fixed problem with learn costs 2026-01-03 00:23:25 +01:00
Frank cebd9b1652 fixed upload VTT json problem 2026-01-03 00:23:03 +01:00
Frank d0145a49d0 keep a copy of the test data sqlite DB 2026-01-02 12:09:27 +01:00
Frank 70f845458f removed old files 2026-01-02 12:07:49 +01:00
Frank a547d850a2 TestCopyLiveDatabaseToFile now runs
after connection to local MySQL database is working for go tests
2026-01-02 12:07:28 +01:00
Frank 5ce28bb79b added dev frontendurls and ToDos 2026-01-02 10:21:30 +01:00
Frank 72c0b6730a Update maintenance Component for Weapons 2026-01-02 10:21:29 +01:00
Frank e7f2477ef1 Update maintenance Component for Weaponskills 2026-01-02 10:21:29 +01:00
Frank e9f5ddff48 Update maintenance Component for Equipment 2026-01-02 10:21:29 +01:00
Frank 0c272fcad2 Update maintenance Component for Spells 2026-01-02 10:21:29 +01:00
Frank b07ecab435 update SQL für Testdatenbank 2026-01-02 10:21:29 +01:00
Frank 397676acfb Update maintenance Component for Skills 2026-01-02 10:21:29 +01:00
Frank 3831fcd239 not needed anymore 2026-01-02 10:21:29 +01:00
Frank 0faa17737e exclude directories from watching for DEV container rebuild 2026-01-02 10:21:29 +01:00
Frank f1d4ac1c4d export whole DB as json 2026-01-01 23:35:24 +01:00
Frank 314b33db85 Bump backend to 0.1.31, frontend to 0.1.22 2026-01-01 14:25:28 +01:00
Frank faa9489700 fix missing } 2026-01-01 14:02:38 +01:00
Frank 7eb44a7ae6 API URL was not taken from environment after docker container and npm was build
CORS prevented from loading
2026-01-01 14:02:38 +01:00
Bardioc26 8c7aa86181 cleanup unused or orphaned files (#9)
* changed vue.instructions to be used for  *.vue, *.ts, *.js, *.scss
* remove unneeded files or files that may conflict with some peoples' protection meanings
* ToDos as the popped up during cleaning
2026-01-01 14:01:15 +01:00
Frank 4e49a38cf9 Added version to landing page 2025-12-30 22:47:52 +01:00
Frank 5df67ff649 As Admin we can change passwords for other users
Role is displayed in user profile
2025-12-30 08:31:37 +01:00
Frank fd2c2462b2 added role checking for maintenance routes 2025-12-30 08:11:33 +01:00
Frank bc948fcad4 We have a role concept 2025-12-30 08:00:04 +01:00
Frank af967fc0ea Export and import working 2025-12-29 23:06:04 +01:00
Frank 78b0582879 Importer Exporter Bamort style 2025-12-29 22:01:42 +01:00
Frank dacfb7d5d2 useless test 2025-12-29 18:14:58 +01:00
Frank 64abe4c985 OK, hope this works 2025-12-29 18:13:24 +01:00
Frank a46598c36c fix test in importer module 2025-12-29 17:39:06 +01:00
Frank 07a4f808d3 error cannot be nil at this point 2025-12-29 17:26:18 +01:00
Frank 28b6ed204a should update values from DataSheetView 2025-12-29 17:07:45 +01:00
Frank 3a12b613d9 Uploading a character image 2025-12-29 13:37:55 +01:00
Frank b41b06763c added missing tests for new user profile handlers 2025-12-29 08:50:12 +01:00
Frank 5d2b2308f2 added user profile 2025-12-29 08:37:02 +01:00
Frank c5b3034a8a PDF Rendering still fails from WebUI 2025-12-29 08:08:00 +01:00
Frank 2ecbd9d63c added folder to ignore list 2025-12-28 22:28:07 +01:00
Frank 21b6c3e2dc moved layout html templates to subfolder html
weaponskill should be i list of skills when exported to PDF
2025-12-28 22:28:05 +01:00
Frank 0983ca0139 added weaponskills to the exported skill list
added Raufen to the Weapons list as an attack
2025-12-28 17:38:21 +01:00
Frank 530931764d We can add weapons and equipment 2025-12-28 14:48:59 +01:00
Frank 4aea3559e6 added handling for .cofig via .env file 2025-12-28 14:18:02 +01:00
Frank 35f595fefe added bonus and malus for Armor 2025-12-27 08:33:42 +01:00
Frank 3a7e699507 CalculateStaticFieldsLogic
calculation of Bonus values defence zaubern and other values that depend on base stats
2025-12-27 08:33:42 +01:00
Frank 5f952742c8 add current db layout and data
add handling for mounted export template directory
fixed naming problems and port exposure
2025-12-27 08:27:34 +01:00
Frank 3f0cea82b5 Now it seems Skill distribution works as expected 2025-12-24 07:32:38 +01:00
Frank 0bae6b4b40 skills_languages are renderd correctly into its blocks 2025-12-24 06:53:37 +01:00
Frank 4782fd3f85 Fill to capacity works 2025-12-23 19:00:39 +01:00
Frank e00355f787 set category for Sprachen
add Bemerkung to skill
2025-12-23 16:17:21 +01:00
Frank 63a48ba171 set block lemgth for skills learned 2025-12-23 15:28:38 +01:00
Frank dd1901d173 renamed the block for rendering 2025-12-22 23:20:49 +01:00
Frank 53bdca87d5 Unify PDF pagination system and rename templates 2025-12-21 22:19:48 +01:00
Frank 59fe69d35d refactor: Unify PDF pagination system and rename templates
BREAKING CHANGE: Template names changed from page1_stats.html to page_1.html

## Phase 1: Unified Pagination Function
- Implemented PaginateMultiList() to replace PaginateSkills(), PaginateSpells(), and PaginatePage2PlayLists()
- Single metadata-driven function handles all list types (skills, weapons, spells, equipment)
- Properly handles filters (learned/unlearned/language) via template metadata
- Shares list trackers by ListType+Filter combination to avoid duplication
- Added comprehensive tests for all edge cases

## Phase 2: Template Naming Convention
- Renamed templates to be data-agnostic:
  - page1_stats.html -> page_1.html
  - page1.2_stats.html -> page_1.2.html
  - page2_play.html -> page_2.html
  - page2.2_play.html -> page_2.2.html
  - page3_spell.html -> page_3.html
  - page3.2_spell.html -> page_3.2.html
  - page4_equip.html -> page_4.html
- Updated GenerateContinuationTemplateName() for new naming (page_1.html -> page_1.2.html)
- Updated ExtractBaseTemplateName() to handle new format
- Updated all test files and source files with new template names

## Phase 3: Simplified RenderPageWithContinuations
- Removed hardcoded switch statements based on template names
- Replaced with generic dataMap and unified pagination call
- Extracted populatePageDataFromDistribution() to handle data mapping
- Template type detection now driven by metadata, not hardcoded names

## Benefits
-  Extensibility: Add new templates without code changes
-  Maintainability: One pagination algorithm instead of three
-  Clarity: Template names reflect page numbers, not content types
-  Flexibility: Templates can mix any data types
-  All 40+ tests passing

## Technical Details
- Added SkillsColumn3 and SkillsColumn4 fields to PageData for continuation pages
- Template metadata loaded from HTML comments drives pagination behavior
- Backward compatibility maintained for old template references in comments
2025-12-21 22:07:46 +01:00