Skip to content

Commit

Permalink
Update roadmap demos for 2024/2025 cycle
Browse files Browse the repository at this point in the history
Shifted the timeline of all roadmap demonstrations to cover the period from 2023/2024 to 2024/2025. This change updates start and end dates, milestones, and titles in various demo functions to reflect the new target cycle, ensuring the roadmap visuals remain future-relevant and in line with planning cycles typical for product development and enhancement tasks. This adjustment not only keeps the demo content fresh but also aligns with the forward-looking nature of roadmapping exercises, providing users with updated context and examples that match current and upcoming planning periods.
  • Loading branch information
csgoh committed Apr 14, 2024
1 parent 25ec124 commit 7f7e1a8
Showing 1 changed file with 73 additions and 76 deletions.
149 changes: 73 additions & 76 deletions src/tests/test_roadmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def colour_theme_demo(
mode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2022-12-01",
start_date: str = "2023-12-01",
number_of_items: int = 12,
show_generic_dates: bool = False,
file_name: str = "demo01.png",
Expand All @@ -18,7 +18,7 @@ def colour_theme_demo(
roadmap = Roadmap(
1200, 1000, auto_height=True, colour_theme=colour_theme, show_marker=True
)
roadmap.set_title("SAMPLE ROADMAP 2022/2023")
roadmap.set_title("SAMPLE ROADMAP 2023/2024")
roadmap.set_subtitle("ABC Corporation")
roadmap.set_timeline(
mode,
Expand All @@ -29,17 +29,17 @@ def colour_theme_demo(
)

group = roadmap.add_group("Core Product Work Stream", text_alignment="left")
task = group.add_task("Base Functionality", "2022-11-01", "2023-10-31")
task.add_milestone("v.1.0", "2023-02-15")
task.add_milestone("v.1.1", "2023-08-01")
parellel_task = task.add_parallel_task("Enhancements", "2023-11-15", "2024-03-31")
parellel_task.add_milestone("v.2.0", "2024-03-30")
task = group.add_task("Base Functionality", "2023-11-01", "2024-10-31")
task.add_milestone("v.1.0", "2024-02-15")
task.add_milestone("v.1.1", "2024-08-01")
parellel_task = task.add_parallel_task("Enhancements", "2024-11-15", "2025-03-31")
parellel_task.add_milestone("v.2.0", "2025-03-30")

task = group.add_task("Showcase #1", "2023-03-01", "2023-05-07")
task.add_parallel_task("Showcase #2", "2023-06-01", "2023-08-07")
task = group.add_task("Showcase #1", "2024-03-01", "2024-05-07")
task.add_parallel_task("Showcase #2", "2024-06-01", "2024-08-07")

group = roadmap.add_group("Mobility Work Stream", text_alignment="left")
group.add_task("Mobile App Development", "2023-02-01", "2024-12-07")
group.add_task("Mobile App Development", "2024-02-01", "2025-12-07")

roadmap.set_footer("Updated on " + datetime.now().strftime("%Y-%m-%d"))
roadmap.draw()
Expand All @@ -49,7 +49,7 @@ def colour_theme_demo(

def colour_theme_demo_without_locale(
timelinemode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2022-12-01",
start_date: str = "2023-12-01",
number_of_items: int = 12,
show_generic_dates: bool = False,
file_name: str = "demo01.png",
Expand All @@ -58,7 +58,7 @@ def colour_theme_demo_without_locale(
roadmap = Roadmap(
1200, 1000, auto_height=True, colour_theme=colour_theme, show_marker=True
)
roadmap.set_title("SAMPLE ROADMAP 2022/2023")
roadmap.set_title("SAMPLE ROADMAP 2023/2024")
roadmap.set_subtitle("ABC Corporation")
roadmap.set_timeline(
timelinemode,
Expand All @@ -68,17 +68,17 @@ def colour_theme_demo_without_locale(
)

group = roadmap.add_group("Core Product Work Stream", text_alignment="left")
task = group.add_task("Base Functionality", "2022-11-01", "2023-10-31")
task.add_milestone("v.1.0", "2023-02-15")
task.add_milestone("v.1.1", "2023-08-01")
parellel_task = task.add_parallel_task("Enhancements", "2023-11-15", "2024-03-31")
parellel_task.add_milestone("v.2.0", "2024-03-30")
task = group.add_task("Base Functionality", "2023-11-01", "2024-10-31")
task.add_milestone("v.1.0", "2024-02-15")
task.add_milestone("v.1.1", "2024-08-01")
parellel_task = task.add_parallel_task("Enhancements", "2024-11-15", "2025-03-31")
parellel_task.add_milestone("v.2.0", "2025-03-30")

task = group.add_task("Showcase #1", "2023-03-01", "2023-05-07")
task.add_parallel_task("Showcase #2", "2023-06-01", "2023-08-07")
task = group.add_task("Showcase #1", "2024-03-01", "2024-05-07")
task.add_parallel_task("Showcase #2", "2024-06-01", "2024-08-07")

group = roadmap.add_group("Mobility Work Stream", text_alignment="left")
group.add_task("Mobile App Development", "2023-02-01", "2024-12-07")
group.add_task("Mobile App Development", "2024-02-01", "2025-12-07")

roadmap.set_footer("Updated on " + datetime.now().strftime("%Y-%m-%d"))
roadmap.draw()
Expand All @@ -88,7 +88,7 @@ def colour_theme_demo_without_locale(

def chinese_theme_demo(
timelinemode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2022-12-01",
start_date: str = "2023-12-01",
number_of_items: int = 12,
show_generic_dates: bool = False,
show_first_day_of_week=False,
Expand All @@ -99,7 +99,7 @@ def chinese_theme_demo(
roadmap = Roadmap(
1200, 1000, auto_height=True, colour_theme=colour_theme, show_marker=True
)
roadmap.set_title("示例路線圖 2022/2023")
roadmap.set_title("示例路線圖 2023/2024")
roadmap.set_subtitle("甲乙丙有限公司")
roadmap.set_timeline(
timelinemode,
Expand All @@ -111,17 +111,17 @@ def chinese_theme_demo(
)

group = roadmap.add_group("核心產品工作流程", text_alignment="left")
task = group.add_task("基本功能", "2022-11-01", "2023-10-31")
task.add_milestone("版本 1.0", "2023-02-15")
task.add_milestone("版本 1.1", "2023-08-01")
parellel_task = task.add_parallel_task("增強功能", "2023-11-15", "2024-03-31")
parellel_task.add_milestone("版本 2.0", "2024-01-30")
task = group.add_task("基本功能", "2023-11-01", "2024-10-31")
task.add_milestone("版本 1.0", "2024-02-15")
task.add_milestone("版本 1.1", "2024-08-01")
parellel_task = task.add_parallel_task("增強功能", "2024-11-15", "2025-03-31")
parellel_task.add_milestone("版本 2.0", "2025-01-30")

task = group.add_task("陳列 #1", "2023-03-01", "2023-05-07")
task.add_parallel_task("陳列 #2", "2023-06-01", "2023-08-07")
task = group.add_task("陳列 #1", "2024-03-01", "2024-05-07")
task.add_parallel_task("陳列 #2", "2024-06-01", "2024-08-07")

group = roadmap.add_group("移動工作流程", text_alignment="left")
group.add_task("移動應用程序開發", "2023-02-01", "2024-12-07")
group.add_task("移動應用程序開發", "2024-02-01", "2024-12-07")

roadmap.set_footer("更新於 " + datetime.now().strftime("%Y-%m-%d"))
roadmap.draw()
Expand All @@ -131,7 +131,7 @@ def chinese_theme_demo(

def japanese_theme_demo(
timelinemode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2022-12-01",
start_date: str = "2023-12-01",
number_of_items: int = 12,
show_generic_dates: bool = False,
show_first_day_of_week=False,
Expand All @@ -142,7 +142,7 @@ def japanese_theme_demo(
roadmap = Roadmap(
1200, 1000, auto_height=True, colour_theme=colour_theme, show_marker=True
)
roadmap.set_title("ロードマップの例 2022/2023")
roadmap.set_title("ロードマップの例 2024/2025")
roadmap.set_subtitle("株式会社エー・ビー・シー")
roadmap.set_timeline(
timelinemode,
Expand All @@ -154,17 +154,17 @@ def japanese_theme_demo(
)

group = roadmap.add_group("コア製品のワークフロー", text_alignment="left")
task = group.add_task("基本的なスキル", "2022-11-01", "2023-10-31")
task.add_milestone("バージョン 1.0", "2023-02-15")
task.add_milestone("バージョン 1.1", "2023-08-01")
parellel_task = task.add_parallel_task("強化", "2023-11-15", "2024-03-31")
parellel_task.add_milestone("バージョン 2.0", "2024-01-30")
task = group.add_task("基本的なスキル", "2023-11-01", "2024-10-31")
task.add_milestone("バージョン 1.0", "2024-02-15")
task.add_milestone("バージョン 1.1", "2024-08-01")
parellel_task = task.add_parallel_task("強化", "2024-11-15", "2025-03-31")
parellel_task.add_milestone("バージョン 2.0", "2025-01-30")

task = group.add_task("ショーケース #1", "2023-03-01", "2023-05-07")
task.add_parallel_task("ショーケース #2", "2023-06-01", "2023-08-07")
task = group.add_task("ショーケース #1", "2024-03-01", "2024-05-07")
task.add_parallel_task("ショーケース #2", "2024-06-01", "2024-08-07")

group = roadmap.add_group("モバイル ワークフロー", text_alignment="left")
group.add_task("モバイルアプリ開発", "2023-02-01", "2024-12-07")
group.add_task("モバイルアプリ開発", "2024-02-01", "2025-12-07")

roadmap.set_footer("更新日 " + datetime.now().strftime("%Y-%m-%d"))
roadmap.draw()
Expand All @@ -174,7 +174,7 @@ def japanese_theme_demo(

def generic_date_test(
timelinemode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2022-11-01",
start_date: str = "2023-11-01",
number_of_items: int = 24,
show_generic_dates: bool = False,
show_first_day_of_week: bool = False,
Expand All @@ -192,17 +192,17 @@ def generic_date_test(
)

group = roadmap.add_group("Core Product Work Stream")
task = group.add_task("Base Functionality", "2022-11-01", "2023-10-31")
task.add_milestone("v.1.0", "2023-02-15")
task.add_milestone("v.1.1", "2023-08-01")
parellel_task = task.add_parallel_task("Enhancements", "2023-11-15", "2024-03-31")
parellel_task.add_milestone("v.2.0", "2024-03-30")
task = group.add_task("Base Functionality", "2023-11-01", "2024-10-31")
task.add_milestone("v.1.0", "2024-02-15")
task.add_milestone("v.1.1", "2024-08-01")
parellel_task = task.add_parallel_task("Enhancements", "2024-11-15", "2025-03-31")
parellel_task.add_milestone("v.2.0", "2025-03-30")

task = group.add_task("Showcase #1", "2023-03-01", "2023-05-07")
task.add_parallel_task("Showcase #2", "2023-06-01", "2023-08-07")
task = group.add_task("Showcase #1", "2024-03-01", "2024-05-07")
task.add_parallel_task("Showcase #2", "2024-06-01", "2024-08-07")

group = roadmap.add_group("Mobility Work Stream")
group.add_task("Mobile App Development", "2023-02-01", "2024-12-07")
group.add_task("Mobile App Development", "2024-02-01", "2025-12-07")

roadmap.set_footer("Generated by Roadmapper")
roadmap.draw()
Expand All @@ -211,7 +211,7 @@ def generic_date_test(

def parallel_task_demo(
timelinemode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2022-12-01",
start_date: str = "2023-12-01",
number_of_items: int = 14,
file_name: str = "demo01.png",
colour_theme: str = "DEFAULT",
Expand All @@ -223,7 +223,7 @@ def parallel_task_demo(
colour_theme=colour_theme,
show_marker=True,
)
roadmap.set_title("ROADMAP EXAMPLE 2022/2023")
roadmap.set_title("ROADMAP EXAMPLE 2023/2024")
roadmap.set_subtitle("This is a subtitle")
roadmap.set_timeline(
timelinemode,
Expand All @@ -234,13 +234,13 @@ def parallel_task_demo(

group = roadmap.add_group("Core Product Work Stream")

task = group.add_task("Base Functionality", "2022-11-01", "2023-01-31")
parellel_task = task.add_parallel_task("Enhancements", "2023-02-15", "2024-03-31")
parellel_task.add_milestone("v.2.0", "2023-04-30")
task = group.add_task("Base Functionality", "2023-11-01", "2024-01-31")
parellel_task = task.add_parallel_task("Enhancements", "2024-02-15", "2025-03-31")
parellel_task.add_milestone("v.2.0", "2024-04-30")

task = group.add_task("Showcase #1", "2023-01-01", "2023-01-31")
parellel_task = task.add_parallel_task("Showcase #2", "2023-02-02", "2023-03-15")
parellel_task.add_milestone("v.2.0", "2023-04-15")
task = group.add_task("Showcase #1", "2024-01-01", "2024-01-31")
parellel_task = task.add_parallel_task("Showcase #2", "2024-02-02", "2024-03-15")
parellel_task.add_milestone("v.2.0", "2024-04-15")

# group = roadmap.add_group("Core Product Work Stream 2")
# task = group.add_task("Base Functionality", "2022-11-01", "2023-01-31")
Expand All @@ -252,7 +252,7 @@ def parallel_task_demo(

def singleton_demo(
timelinemode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2023-01-01",
start_date: str = "2024-01-01",
number_of_items: int = 2,
file_name: str = "demo01.png",
colour_theme: str = "BLUEMOUNTAIN",
Expand All @@ -276,11 +276,9 @@ def singleton_demo(

group = roadmap.add_group("Showcase Task Styles")

group.add_task("Rectangle Style", "2023-01-15", "2023-02-15")
group.add_task("Rounded Style", "2023-01-15", "2023-02-15", style="rounded")
group.add_task(
"Arrowhead Style", "2023-01-15", "2023-02-15", style="arrowhead"
)
group.add_task("Rectangle Style", "2024-01-15", "2024-02-15")
group.add_task("Rounded Style", "2024-01-15", "2024-02-15", style="rounded")
group.add_task("Arrowhead Style", "2024-01-15", "2024-02-15", style="arrowhead")

# roadmap.set_footer("Author: CS Goh " + datetime.now().strftime("%Y-%m-%d"))
roadmap.draw()
Expand All @@ -289,7 +287,7 @@ def singleton_demo(

def logo_demo(
timelinemode: TimelineMode = TimelineMode.MONTHLY,
start_date: str = "2023-01-01",
start_date: str = "2025-01-01",
number_of_items: int = 2,
file_name: str = "demo01.png",
colour_theme: str = "BLUEMOUNTAIN",
Expand Down Expand Up @@ -321,7 +319,7 @@ def logo_demo(

text = "I love Python"
# emojized_text = emojize(text)
group.add_task(text, "2023-01-15", "2023-02-15")
group.add_task(text, "2024-01-15", "2024-02-15")

roadmap.set_footer("Author: CS Goh " + datetime.now().strftime("%Y-%m-%d"))
roadmap.draw()
Expand Down Expand Up @@ -353,7 +351,7 @@ def test_dev():
file_name=output_file,
colour_theme="../json/chinese.json",
timelinemode=TimelineMode.WEEKLY,
start_date="2023-01-01",
start_date="2024-01-01",
number_of_items=14,
locale_name="../json/zh_TW_timeline_settings.json",
show_generic_dates=False,
Expand All @@ -366,7 +364,7 @@ def test_dev():
file_name=output_file,
colour_theme="../json/chinese.json",
timelinemode=TimelineMode.MONTHLY,
start_date="2023-01-01",
start_date="2024-01-01",
number_of_items=14,
locale_name="../json/ja_JP_timeline_settings.json",
show_generic_dates=False,
Expand All @@ -376,12 +374,11 @@ def test_dev():
assert os.path.exists(output_file)



# check if calling from main
if __name__ == "__main__":
output_file = "../../images/test/colour_theme_demo_without_locale.png"
colour_theme_demo_without_locale(
file_name=output_file,
timelinemode=TimelineMode.MONTHLY,
number_of_items=14,
)
# # check if calling from main
# if __name__ == "__main__":
# output_file = "../../images/test/colour_theme_demo_without_locale.png"
# colour_theme_demo_without_locale(
# file_name=output_file,
# timelinemode=TimelineMode.MONTHLY,
# number_of_items=14,
# )

0 comments on commit 7f7e1a8

Please sign in to comment.