From 164b957ea1d1f756e21d77580158f8ddc26c4b36 Mon Sep 17 00:00:00 2001 From: Zewang Date: Fri, 5 Sep 2025 17:03:15 +0800 Subject: [PATCH 1/2] feat: add sensitive data tooltips to all form fields --- src/edit_python_pe/main.py | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/edit_python_pe/main.py b/src/edit_python_pe/main.py index 5f12fd0..595e597 100755 --- a/src/edit_python_pe/main.py +++ b/src/edit_python_pe/main.py @@ -68,15 +68,23 @@ def on_mount(self) -> None: # 2) Build the form portion, hidden at first self.form_header = Static(FORM_HEADER, classes="header") - self.name_input = Input(placeholder=PLACEHOLDER_NAME) - self.email_input = Input(placeholder=PLACEHOLDER_EMAIL) - self.city_input = Input(placeholder=PLACEHOLDER_CITY) - self.homepage_input = Input(placeholder=PLACEHOLDER_HOMEPAGE) - - self.who_area = TextArea() - self.python_area = TextArea() - self.contributions_area = TextArea() - self.availability_area = TextArea() + self.name_input = Input(placeholder=PLACEHOLDER_NAME, + tooltip="Your name will be displayed publicly on your python.pe profile. " \ + "Please use the name you wish to be known by in the community.") + self.email_input = Input(placeholder=PLACEHOLDER_EMAIL, + tooltip="Your email is used for your Gravatar profile image and will not be published. " + "It is stored securely and only used for necessary communications.") + self.city_input = Input(placeholder=PLACEHOLDER_CITY, + tooltip="Your city/country helps community members find others nearby. " \ + "This will be publicly visible on your profile.") + self.homepage_input = Input(placeholder=PLACEHOLDER_HOMEPAGE, + tooltip="Your personal website, blog, or portfolio link. " \ + "This will be publicly displayed on your profile.") + + self.who_area = TextArea(tooltip="This introduction will be publicly visible on your python.pe profile.") + self.python_area = TextArea(tooltip="Your Python experience and interests will be publicly visible.") + self.contributions_area = TextArea(tooltip="Your contribution history will be publicly visible to help showcase your work.") + self.availability_area = TextArea(tooltip="Your availability information will help community members know when they can reach out.") self.social_container = Vertical() self.alias_container = Vertical() From 8fb35661097bebb73eafdec8fa6f1334dc6acf5d Mon Sep 17 00:00:00 2001 From: Zewang Date: Fri, 5 Sep 2025 20:00:30 +0800 Subject: [PATCH 2/2] fix: update email tooltip wording and improve code style --- src/edit_python_pe/main.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/edit_python_pe/main.py b/src/edit_python_pe/main.py index 595e597..0110d47 100755 --- a/src/edit_python_pe/main.py +++ b/src/edit_python_pe/main.py @@ -69,17 +69,16 @@ def on_mount(self) -> None: # 2) Build the form portion, hidden at first self.form_header = Static(FORM_HEADER, classes="header") self.name_input = Input(placeholder=PLACEHOLDER_NAME, - tooltip="Your name will be displayed publicly on your python.pe profile. " \ + tooltip="Your name will be displayed publicly on your python.pe profile. " "Please use the name you wish to be known by in the community.") self.email_input = Input(placeholder=PLACEHOLDER_EMAIL, - tooltip="Your email is used for your Gravatar profile image and will not be published. " - "It is stored securely and only used for necessary communications.") + tooltip= "Your email may appear in the repository or site outputs. " + "Only provide an address you are comfortable sharing publicly.") self.city_input = Input(placeholder=PLACEHOLDER_CITY, - tooltip="Your city/country helps community members find others nearby. " \ + tooltip="Your city/country helps community members find others nearby. " "This will be publicly visible on your profile.") self.homepage_input = Input(placeholder=PLACEHOLDER_HOMEPAGE, - tooltip="Your personal website, blog, or portfolio link. " \ - "This will be publicly displayed on your profile.") + tooltip="Your availability will be publicly visible to help community members know when they can reach out.") self.who_area = TextArea(tooltip="This introduction will be publicly visible on your python.pe profile.") self.python_area = TextArea(tooltip="Your Python experience and interests will be publicly visible.")