From 016612bf6cd08f81aa7ff63f1d90cf07817c7e68 Mon Sep 17 00:00:00 2001 From: Diogo Pereira Date: Wed, 30 Apr 2025 18:58:19 -0700 Subject: [PATCH 1/2] Updated template to account for real JSON Attributes Signed-off-by: Diogo Pereira --- commons/static_site_generator.py | 29 +++++++++++++---- templates/kaban_board.html | 56 ++++++++++++++++++++++++++++---- 2 files changed, 73 insertions(+), 12 deletions(-) diff --git a/commons/static_site_generator.py b/commons/static_site_generator.py index 02adf1e..d8e5726 100644 --- a/commons/static_site_generator.py +++ b/commons/static_site_generator.py @@ -15,20 +15,37 @@ def render_kanban_board(data, output_file='./_site/index.html'): 'team': 'Platform Engineering', 'tasks': { 'Backlog': [ - {'title': 'Research competitors', 'description': 'Analyze feature set'}, - {'title': 'Set up project repo', 'description': 'Initialize GitHub repo'}, ], 'New': [ - {'title': 'Design wireframes', 'description': 'Homepage + Dashboard'}, + { + "assignees": [ + "coolAssignee" + ], + "content": { + "body": "https://dummy_url/test#L42\n\nRename from `X` to `Y`", + "number": 241, + "repository": "pandas/coolrepo", + "title": "cool title", + "type": "Issue", + "url": "https://github.com/pandas/coolrepo/issues/241" + }, + "id": "PVTI_lADOBgkjhkjhjjh", + "labels": [ + "Bug" + ], + "linked pull requests": [ + "https://github.com/pandas/coolrepo/pull/242" + ], + "repository": "https://github.com/pandas/coolrepo", + "status": "Done", + "title": "Cool Pandas Task" + } ], 'In-Progress': [ - {'title': 'Implement auth', 'description': 'Login + Register'}, ], 'Blocked': [ - {'title': 'API integration', 'description': 'Waiting for backend team'}, ], 'Done': [ - {'title': 'Project kickoff', 'description': 'Team intro & planning'}, ] } } diff --git a/templates/kaban_board.html b/templates/kaban_board.html index 488ba0b..103a5be 100644 --- a/templates/kaban_board.html +++ b/templates/kaban_board.html @@ -3,6 +3,7 @@ {{ title }} +