@@ -40,6 +40,34 @@ export interface Evaluation {
4040 evaluationList : EvaluationResponse [ ] ;
4141}
4242
43+ const sliderQuestions = [
44+ 'how_would_you_rate_pycon_davao_overall' ,
45+ 'how_satisfied_were_you_with_the_content_and_presentations' ,
46+ 'how_likely_are_you_to_recommend_this_event_to_other_python_developers_or_enthusiasts_based_on_the_community_support_provided' ,
47+ 'how_would_you_rate_event_organization_and_logistics' ,
48+ 'were_the_event_schedule_and_timing_convenient_for_you' ,
49+ 'did_you_find_opportunities_for_networking_valuable' ,
50+ 'how_would_you_rate_the_networking_opportunities_provided' ,
51+ 'how_likely_are_you_to_attend_future_pycon_davao_events' ,
52+ 'were_the_venue_facilities_adequate'
53+ ] ;
54+
55+ const textLongQuestions = [
56+ 'what_was_the_highlight_of_the_event_for_you' ,
57+ 'is_there_anything_specific_you_would_like_to_commend_about_the_event' ,
58+ 'which_sessions_or_topics_did_you_find_most_valuable' ,
59+ 'were_there_any_topics_or_sessions_you_felt_were_missing' ,
60+ 'have_you_attended_python_events_before_if_so_what_kind_of_community_support_did_you_find_helpful_in_previous_events' ,
61+ 'did_you_encounter_any_problems_with_organization_and_logistics' ,
62+ 'what_could_have_been_improved_related_to_the_networking_and_interaction_aspects_of_the_event' ,
63+ 'what_suggestions_do_you_have_for_improving_future_pycon_events' ,
64+ 'is_there_anything_else_you_would_like_to_share_about_your_experience_at_the_event'
65+ ] ;
66+
67+ const radioButtonQuestions : string [ ] = [ ] ;
68+
69+ export const PYCON_EVALUATION_QUESTIONS = [ ...sliderQuestions , ...textLongQuestions , ...radioButtonQuestions ] ;
70+
4371export const mapFormValuesToEvaluateCreate = ( data : any ) => {
4472 const values = { ...data } ;
4573 delete values . email ;
@@ -50,31 +78,6 @@ export const mapFormValuesToEvaluateCreate = (data: any) => {
5078export const convertToEvaluationList = ( data : any ) => {
5179 // Question type mappings
5280
53- const sliderQuestions = [
54- 'how_would_you_rate_pycon_davao_overall' ,
55- 'how_satisfied_were_you_with_the_content_and_presentations' ,
56- 'how_likely_are_you_to_recommend_this_event_to_other_python_developers_or_enthusiasts_based_on_the_community_support_provided' ,
57- 'how_would_you_rate_event_organization_and_logistics' ,
58- 'were_the_event_schedule_and_timing_convenient_for_you' ,
59- 'did_you_find_opportunities_for_networking_valuable' ,
60- 'how_would_you_rate_the_networking_opportunities_provided' ,
61- 'how_likely_are_you_to_attend_future_pycon_davao_events'
62- ] ;
63-
64- const textLongQuestions = [
65- 'what_was_the_highlight_of_the_event_for_you' ,
66- 'is_there_anything_specific_you_would_like_to_commend_about_the_event' ,
67- 'which_sessions_or_topics_did_you_find_most_valuable' ,
68- 'were_there_any_topics_or_sessions_you_felt_were_missing' ,
69- 'have_you_attended_python_events_before_if_so_what_kind_of_community_support_did_you_find_helpful_in_previous_events' ,
70- 'did_you_encounter_any_problems_with_organization_and_logistics' ,
71- 'what_could_have_been_improved_related_to_the_networking_and_interaction_aspects_of_the_event' ,
72- 'what_suggestions_do_you_have_for_improving_future_pycon_events' ,
73- 'is_there_anything_else_you_would_like_to_share_about_your_experience_at_the_event'
74- ] ;
75-
76- const radioButtonQuestions = [ 'were_the_venue_facilities_adequate' ] ;
77-
7881 return Object . keys ( data ) . map ( ( key ) => {
7982 const response : Omit < EvaluationResponse , 'eventId' | 'createDate' | 'updateDate' > = {
8083 answer : null ,
0 commit comments