Commit Graph

252 Commits

Author SHA1 Message Date
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
Bardioc26 700a69be96 Update backend/database/testhelper.go
The variable 'err' is shadowing the outer scope 'err' from line 120.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-21 09:51:51 +01:00
Frank 62abf724b3 remove implementation documentation files 2025-12-21 09:25:20 +01:00
Frank cd0f98042d PDF generation and downloads are working 2025-12-21 09:15:08 +01:00
Frank 2af477397e added more file type specific instructions
I hope that coding results will be better and more consistent
2025-12-21 08:39:29 +01:00
Frank c3d6af29e7 Frontend PDF Export eingebaut 2025-12-20 18:39:36 +01:00
Frank 915352c0f3 routes and handlker for PDFexport created 2025-12-20 18:32:48 +01:00
Frank 58692f54d6 continuation of lists on a continuation page
pre production ready
2025-12-20 15:03:55 +01:00
Frank b21d3bb7eb continuation of lists on a continuation page 2025-12-20 14:37:56 +01:00
Frank 4b9782c290 nur noch ein todo 2025-12-20 00:23:42 +01:00
Frank de6c8c1c1b weapons are displayed fine 2025-12-20 00:19:20 +01:00
Frank c47e00457f add missing fields in template 2025-12-19 22:51:56 +01:00
Frank 92f9e4c27b Defining list length in Template
Test don't care about list lenght
2025-12-19 22:32:43 +01:00
Frank 165f55f891 Show right values for Weapons 2025-12-19 17:29:12 +01:00
Frank fbaa8e2dcc Show right values for Weapons 2025-12-19 17:28:40 +01:00
Frank f6f0b334c2 Updated Got to 1.25.5
made spells display correct spell information
2025-12-19 17:04:20 +01:00
Frank 59755c4516 Defining list length in Template seems to work now 2025-12-19 10:47:05 +01:00
Frank 9d1398b397 one pagination error has been fixed 2025-12-19 08:30:45 +01:00
Frank da91eb5f56 fix pagination 2025-12-19 08:24:32 +01:00
Frank a4dca0b68a History renders right 2025-12-19 07:54:26 +01:00
Frank ff387316ac css changed to fix history overflow 2025-12-19 07:38:21 +01:00