From 19e6559e2a56dd40e76b5153c3a5658f6dc1c437 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Wed, 8 Nov 2023 11:07:42 +0100 Subject: [PATCH] Merge pull request #15498 from overleaf/rd-input-fields Onboarding Data Collection (step3) GitOrigin-RevId: 0e78de5ccb7b7660ab04c904bc2fec4436b36621 --- .../web/frontend/extracted-translations.json | 13 ++++++- .../components/emails/downshift-input.tsx | 11 +++++- .../stylesheets/components/radio-chip.less | 18 +++++----- .../modules/overleaf-integration.less | 13 ++++++- .../stylesheets/vendor/select/select.css | 5 +++ services/web/locales/en.json | 18 +++++++--- .../test/acceptance/src/mocks/MockV1Api.js | 36 +++++++++++++------ 7 files changed, 86 insertions(+), 28 deletions(-) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 5f700e9331..6a573305c3 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -450,6 +450,7 @@ "go_page": "", "go_prev_page": "", "go_to_code_location_in_pdf": "", + "go_to_overleaf": "", "go_to_pdf_location_in_code": "", "go_to_settings": "", "group_admin": "", @@ -516,6 +517,7 @@ "how_it_works": "", "i_want_to_stay": "", "if_you_need_to_customize_your_table_further_you_can": "", + "if_your_occupation_not_listed_type_full_name": "", "ignore_validation_errors": "", "ill_take_it": "", "image_file": "", @@ -789,6 +791,7 @@ "open_target": "", "optional": "", "or": "", + "organization_name": "", "organize_projects": "", "other_logs_and_files": "", "other_output_files": "", @@ -856,10 +859,10 @@ "premium_plan_label": "", "price": "", "primarily_work_study_question": "", + "primarily_work_study_question_company": "", "primarily_work_study_question_government": "", "primarily_work_study_question_nonprofit_ngo": "", "primarily_work_study_question_other": "", - "primarily_work_study_question_private_company": "", "primarily_work_study_question_university_school": "", "priority_support": "", "private": "", @@ -1093,6 +1096,7 @@ "showing_x_results_of_total": "", "signature_algorithm": "", "single_sign_on_sso": "", + "skip": "", "something_not_right": "", "something_went_wrong_loading_pdf_viewer": "", "something_went_wrong_processing_the_request": "", @@ -1134,6 +1138,9 @@ "start_by_adding_your_email": "", "start_free_trial": "", "start_free_trial_without_exclamation": "", + "start_typing_find_your_company": "", + "start_typing_find_your_organization": "", + "start_typing_find_your_university": "", "stop_compile": "", "stop_on_first_error": "", "stop_on_first_error_enabled_description": "", @@ -1142,6 +1149,7 @@ "store_your_work": "", "student_disclaimer": "", "subject": "", + "subject_area": "", "subject_to_additional_vat": "", "submit_title": "", "subscribe": "", @@ -1150,6 +1158,7 @@ "subscription_canceled_and_terminate_on_x": "", "subscription_will_remain_active_until_end_of_billing_period_x": "", "subscription_will_remain_active_until_end_of_trial_period_x": "", + "suggested": "", "sure_you_want_to_cancel_plan_change": "", "sure_you_want_to_change_plan": "", "sure_you_want_to_delete": "", @@ -1300,6 +1309,7 @@ "understanding_labels": "", "unfold_line": "", "university": "", + "university_school": "", "unknown": "", "unlimited_collabs": "", "unlimited_projects": "", @@ -1441,6 +1451,7 @@ "your_project_exceeded_compile_timeout_limit_on_free_plan": "", "your_project_near_compile_timeout_limit": "", "your_projects": "", + "your_role": "", "your_subscription": "", "your_subscription_has_expired": "", "youre_about_to_disable_single_sign_on": "", diff --git a/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx b/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx index 7d74687ff5..6cf4693406 100644 --- a/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx +++ b/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx @@ -4,10 +4,13 @@ import classnames from 'classnames' type DownshiftInputProps = { items: string[] + itemsTitle?: string inputValue: string label: string setValue: React.Dispatch> inputRef?: React.ForwardedRef + showLabel?: boolean + showSuggestedText?: boolean } & React.InputHTMLAttributes const filterItemsByInputValue = ( @@ -17,12 +20,15 @@ const filterItemsByInputValue = ( function Downshift({ items, + itemsTitle, inputValue, placeholder, label, setValue, disabled, inputRef, + showLabel = false, + showSuggestedText = false, }: DownshiftInputProps) { const [inputItems, setInputItems] = useState(items) @@ -68,7 +74,7 @@ function Downshift({ >
{/* eslint-disable-next-line jsx-a11y/label-has-for */} -