Commit Graph

410 Commits

Author SHA1 Message Date
Frank e35b7a8edc refactor pdf export in its own component 2025-12-30 08:43:16 +01:00
Bardioc26 622ae1b5ff added an easy role concept
User roles
2025-12-30 08:33:20 +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 aa82b95d9e Merge branch 'main' of github.com:Bardioc26/bamort 2025-12-30 07:15:31 +01:00
Bardioc26 6e92481b8b Merge pull request #6 from Bardioc26/FixDerirvedValues
Fix derirved values
better calc for derived values
docker bugfixes and environment handling
frontend adding weapons and equipment
PDF Export bugfix Weaponslist
pdf export disply default character image
UI added user profile to change email and password
Upload character image
fix test for importer modules
remove useless tests
2025-12-30 06:27:28 +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 620f982939 fixed layout things 2025-12-29 17:22:30 +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 0d3164d448 display default token if not set character image 2025-12-29 08:05:38 +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 a726922443 link back to login at register page 2025-12-28 17:28:32 +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 1c9cfd1d9b docker startup on non conflicting port 2025-12-27 08:59:08 +01:00
Frank a947b878d0 daemonize docker startup 2025-12-27 08:58:18 +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
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