530 Commits

Author SHA1 Message Date
Bardioc26 fb63ef72fb Merge pull request #5 from Bardioc26/production_packing
add current db layout and data
2025-12-27 08:32:18 +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
Bardioc26 29947ed4a4 Merge pull request #4 from Bardioc26/FixDockerEnvs
Fix docker envs
2025-12-26 17:57:40 +01:00
Frank 2697aee592 updated Docker and docker-compose files 2025-12-26 08:45:47 +01:00
Frank 06788abe49 add current db layout and data 2025-12-26 08:39:36 +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 61ebcea3b3 Basic methods are working start bugfixing
Branch: export_pdf_frontend
Merge-base: 4b4201b9e5
Generated: 2025-12-21
42d5700 2025-08-28 removed errors  from missing translations refresh in audit log
9f563cd 2025-08-28 add missing translations
471cc7a 2025-08-28 selektion von Chars nach UserID
7eead94 2025-08-29 selektion von Chars nach UserID and public
fabe24c 2025-08-30 added SQL to Testdata
ae8c1e4 2025-08-30 wsl settings
0151c9a 2025-08-30 added tests to config and database
67d1284 2025-08-30 Tests in user package
d226f2d 2025-08-30 added tests for register, login and passwordreset routes
219af67 2025-08-30 added tests for model_skills
cb6a5ab 2025-08-30 added tests for model_gsmaster
7e74a95 2025-08-30 added tests for model_learning_costs
2971894 2025-08-30 added tests for model_equipment
cc29e5b 2025-08-30 added tests for model_character
fa0a8d5 2025-08-30 added tests for model_character_creation
398d77c 2025-08-30 added fix introduced in model_character_creation_test
b6ff07e 2025-08-30 whitespace changes
acde6ae 2025-08-30 fixing testsa for copy_db
fe32213 2025-08-30 added tests package maintenance
b37c6a0 2025-08-30 added tests package logger
da13e10 2025-08-30 added tests package equipment
149f80f 2025-08-30 removed almost all function from the Old static SYstem
fc78bca 2025-08-30 fixed a typo
d6e943e 2025-10-03 added more githubchatmodes and instructions
d493271 2025-10-03 Fixe by database value update
8a67bb0 2025-10-03 removed missin table from query
48943dd 2025-10-03 removed fixed failed tests
4e6c014 2025-10-03 marked deprecated function and test
7f843be 2025-10-03 Adopt to testdata
257fb80 2025-10-22 fixing Tests
d92fb62 2025-12-06 I do not know what changed.
a32ba23 2025-12-14 Planen und geplant zu werden
4381925 2025-12-18 First page html template prepared
7871162 2025-12-18 Second  page html template prepared
6f020bf 2025-12-18 third  page html template prepared
679cc37 2025-12-18 forth  page html template prepared
b90f4e8 2025-12-18 Planen und geplant zu werden 2
6ce2065 2025-12-18 ignore helper directory
b99aded 2025-12-18 mapping the character data to a viewmodel
5c5f890 2025-12-18 html files are now templates
cf260d6 2025-12-18 Templates werden gerendert
ff38731 2025-12-19 css changed to fix history overflow
a4dca0b 2025-12-19 History renders right
da91eb5 2025-12-19 fix pagination
9d1398b 2025-12-19 one pagination error has been fixed
f6f0b33 2025-12-19 Updated Got to 1.25.5
165f55f 2025-12-19 Show right values for Weapons
92f9e4c 2025-12-19 Defining list length in Template
c47e004 2025-12-19 add missing fields in template
de6c8c1 2025-12-20 weapons are displayed fine
4b9782c 2025-12-20 nur noch ein todo
58692f5 2025-12-20 continuation of lists on a continuation page
915352c 2025-12-20 routes and handlker for PDFexport created
c3d6af2 2025-12-20 Frontend PDF Export eingebaut
2af4773 2025-12-21 added more file type specific instructions
cd0f980 2025-12-21 PDF generation and downloads are working
62abf72 2025-12-21 remove implementation documentation files
2025-12-21 10:04:54 +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 5e6562f505 Updated Readme now suateble for GitHub 2025-12-21 09:47:24 +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
Frank cf260d616f Templates werden gerendert
Layout passt noch nicht, Werte fehlen etc. wie erwartet
2025-12-18 22:59:33 +01:00
Frank 5c5f89062d html files are now templates 2025-12-18 21:44:23 +01:00
Frank b99adede94 mapping the character data to a viewmodel
that  can be rendered easily into the html template
2025-12-18 21:26:28 +01:00
Frank 6ce2065c05 ignore helper directory 2025-12-18 19:01:18 +01:00
Frank b90f4e822e Planen und geplant zu werden 2
plan with html rendering created
2025-12-18 18:46:40 +01:00
Frank 679cc377cf forth page html template prepared 2025-12-18 17:27:03 +01:00
Frank a231a79e68 forth page html template prepared 2025-12-18 17:24:52 +01:00
Frank 6f020bf8f7 third page html template prepared 2025-12-18 17:03:54 +01:00
Frank 7871162304 Second page html template prepared 2025-12-18 15:57:19 +01:00
Frank 4381925521 First page html template prepared 2025-12-18 14:11:46 +01:00
Frank a32ba236e8 Planen und geplant zu werden
How to render a PDF Character sheet
2025-12-14 22:11:30 +01:00
Frank d92fb62daa I do not know what changed.
too long ago
2025-12-06 22:43:53 +01:00
Frank 257fb80387 fixing Tests 2025-10-22 10:56:55 +02:00
Frank 7f843be662 Adopt to testdata 2025-10-03 22:07:14 +02:00
Frank 4e6c014cee marked deprecated function and test
updated testdata to match the data structure
2025-10-03 21:45:44 +02:00