Skip to content

Commit 9065645

Browse files
authored
Merge pull request #63 from HappyHackingSpace/feat/manual-role-input
feat: add manual role input for unlisted target roles
2 parents 5e5514c + 81e0938 commit 9065645

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

levelup/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ def display_analysis_tabs(result: dict[str, Any]) -> None:
376376
"UX Designer",
377377
"UI Designer",
378378
"Product Designer",
379+
"Other (specify)",
379380
]
380381

381382
selected_role_label = st.selectbox(
@@ -387,6 +388,9 @@ def display_analysis_tabs(result: dict[str, Any]) -> None:
387388
selected_role: Optional[str]
388389
if selected_role_label == "No specific target role":
389390
selected_role = None
391+
elif selected_role_label == "Other (specify)":
392+
custom_role = st.text_input("Enter your target role")
393+
selected_role = custom_role.strip() if custom_role.strip() else None
390394
else:
391395
selected_role = selected_role_label
392396

0 commit comments

Comments
 (0)