Browse Source
feat: implement persistent local storage for marriage question answers with auto-sync and multi-language support
front-test-2
feat: implement persistent local storage for marriage question answers with auto-sync and multi-language support
front-test-2
41 changed files with 1092 additions and 131 deletions
-
132proxy-debug.log
-
16src/app/api/proxy/route.ts
-
14src/app/finding-match/page.tsx
-
28src/app/page.tsx
-
70src/app/questions-list/[slug]/question-detail-client.tsx
-
95src/app/questions-list/page.tsx
-
58src/components/Componentes/error-toast.tsx
-
63src/components/Componentes/progress-helper.ts
-
95src/components/Componentes/question-answer-storage.tsx
-
4src/components/Componentes/question-checkbox.tsx
-
9src/components/Componentes/question-title.tsx
-
4src/data/question-data.ts
-
210src/data/questions/en.json
-
210src/data/questions/fa.json
-
3src/data/section-slug-map.ts
-
57src/hooks/marriage/use-section-data.ts
-
15src/lib/http.ts
-
5src/translations/locales/ar.json
-
5src/translations/locales/az.json
-
5src/translations/locales/bn.json
-
5src/translations/locales/da.json
-
5src/translations/locales/de.json
-
5src/translations/locales/en.json
-
5src/translations/locales/es.json
-
5src/translations/locales/fa.json
-
5src/translations/locales/fr.json
-
5src/translations/locales/gu.json
-
5src/translations/locales/ha.json
-
5src/translations/locales/he.json
-
5src/translations/locales/hi.json
-
5src/translations/locales/id.json
-
5src/translations/locales/ks.json
-
5src/translations/locales/pt.json
-
5src/translations/locales/ru.json
-
5src/translations/locales/sw.json
-
5src/translations/locales/tg.json
-
5src/translations/locales/tr.json
-
5src/translations/locales/ul.json
-
5src/translations/locales/ur.json
-
5src/translations/locales/uz.json
-
5src/translations/locales/zh.json
@ -0,0 +1,132 @@ |
|||||
|
|
||||
|
--- 2026-08-03T07:50:50.803Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/family_background/data/ |
||||
|
STATUS: 400 |
||||
|
REQUEST: {"current_step":5,"total_steps":5,"fields":[{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","label":"Parents' Survival Status","type":"radio","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q4_do_you_currently_have_an_ongoing_financial_caregiving_or_guardianship_responsibility_for_a_family_member","label":"Do you currently have an ongoing financial, caregiving, or guardianship responsibility for a family member?","type":"checkbox","value":["I am responsible for caring for my parent(s) (father, mother, or both)."]},{"key":"q5_do_the_supported_individual_s_live_with_you","label":"Do the supported individual(s) live with you?","type":"radio","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q9_short_family_description","label":"Short Family Description","type":"textarea","value":"kjllkjkjl"}]} |
||||
|
RESPONSE: {"fields":[{},{},{},{"key":["Ensure this field has no more than 100 characters."]},{},{},{},{},{}]} |
||||
|
|
||||
|
--- 2026-08-03T07:50:51.000Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/?_t=1785743447984 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: [{"id":5,"slug":"katel_test","title":"Katel Test","is_required":false,"importance_weight":1,"estimated_minutes":30,"total_steps":4,"order":0,"current_step":0,"completion_percent":0},{"id":15,"slug":"personal_identity","title":"Personal and identity details","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":6,"order":0,"current_step":6,"completion_percent":100},{"id":7,"slug":"contact_residence","title":"Contact, Residence & Family Liaison","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":8,"order":2,"current_step":8,"completion_percent":100},{"id":8,"slug":"appearance_health","title":"Appearance, Health & Physical Activity","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":5,"order":3,"current_step":5,"completion_percent":100},{"id":9,"slug":"education_career","title":"Education, Career & Financial Status","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":4,"order":4,"current_step":4,"completion_percent":100},{"id":10,"slug":"family_background","title":"Family Background","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":5,"current_step":3,"completion_percent":100},{"id":11,"slug":"marital_history","title":"Marital Status, Marriage History & Children","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":2,"order":6,"current_step":2,"completion_percent":100},{"id":12,"slug":"beliefs_lifestyle","title":"Beliefs, Lifestyle, Personality & Personal Boundaries","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":15,"order":7,"current_step":15,"completion_percent":100},{"id":13,"slug":"spouse_criteria","title":"Future Spouse Criteria & Deal-Breakers","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":23,"order":8,"current_step":23,"completion_percent":100},{"id":14,"slug":"documents_verification","title":"Document Upload, Verification & Photos","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":9,"current_step":3,"completion_percent":100}] |
||||
|
|
||||
|
--- 2026-08-03T07:50:56.579Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/profile/main/?_t=1785743447984 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: {"id":23,"status":"waiting","gender":"female","is_registering_for_self":true,"paid_fee":false,"can_edit_profile":true,"can_message_expert":false,"active_subscription":null,"is_ready_for_match":true,"active_case":null,"needs_subscription":false,"match_summary":null,"recommended_plan":{"id":1,"title":"اشتراک یک ماه","price":"5"}} |
||||
|
|
||||
|
--- 2026-08-03T07:50:57.150Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/marital_history/data/ |
||||
|
STATUS: 200 |
||||
|
REQUEST: {"current_step":2,"total_steps":2,"fields":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q2_previous_marriage_duration","type":"text","label":"Previous Marriage Duration","value":"3"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}]} |
||||
|
RESPONSE: {"id":124,"slug":"marital_history","data":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","type":"radio","label":"Parents' Survival Status","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q5_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious and strictly observant"},{"key":"q6_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q4_short_family_description","type":"text","label":"Short Family Description","value":"jhh"},{"key":"q2_previous_marriage_duration","label":"Previous Marriage Duration","type":"text","value":"3"},{"key":"q5_do_the_supported_individual_s_live_with_you","type":"radio","label":"Do the supported individual(s) live with you?","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q9_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q7_what_is_the_custody_status_of_your_child_ren","type":"checkbox","label":"What is the custody status of your child(ren)?","value":["Custody is with the other parent or another person.","Joint custody or periodic visitation/relocation between parents.","Children have reached legal age (custody is not applicable)."]},{"key":"q8_how_much_time_do_the_child_ren_usually_live_with_you","type":"radio","label":"How much time do the child(ren) usually live with you?","value":"Permanently or most days of the week with me."},{"key":"q9_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","type":"radio","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q10_what_is_the_payment_or_receipt_status_of_child_support","type":"radio","label":"What is the payment or receipt status of child support?","value":"Receiving child support regularly."},{"key":"q9_short_family_description","type":"textarea","label":"Short Family Description","value":"kjllkj"},{"key":"q12_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","type":"radio","label":"Acceptance of necessary communication between future spouse and the other parent","value":"I accept necessary, respectful, and limited communication regarding child matters."},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}],"current_step":2,"total_steps":2,"completion_percent":100,"updated_at":"2026-08-03T11:20:50.946447"} |
||||
|
|
||||
|
--- 2026-08-03T07:51:08.687Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/?_t=1785743467848 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: [{"id":5,"slug":"katel_test","title":"Katel Test","is_required":false,"importance_weight":1,"estimated_minutes":30,"total_steps":4,"order":0,"current_step":0,"completion_percent":0},{"id":15,"slug":"personal_identity","title":"Personal and identity details","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":6,"order":0,"current_step":6,"completion_percent":100},{"id":7,"slug":"contact_residence","title":"Contact, Residence & Family Liaison","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":8,"order":2,"current_step":8,"completion_percent":100},{"id":8,"slug":"appearance_health","title":"Appearance, Health & Physical Activity","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":5,"order":3,"current_step":5,"completion_percent":100},{"id":9,"slug":"education_career","title":"Education, Career & Financial Status","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":4,"order":4,"current_step":4,"completion_percent":100},{"id":10,"slug":"family_background","title":"Family Background","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":5,"current_step":3,"completion_percent":100},{"id":11,"slug":"marital_history","title":"Marital Status, Marriage History & Children","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":2,"order":6,"current_step":2,"completion_percent":100},{"id":12,"slug":"beliefs_lifestyle","title":"Beliefs, Lifestyle, Personality & Personal Boundaries","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":15,"order":7,"current_step":15,"completion_percent":100},{"id":13,"slug":"spouse_criteria","title":"Future Spouse Criteria & Deal-Breakers","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":23,"order":8,"current_step":23,"completion_percent":100},{"id":14,"slug":"documents_verification","title":"Document Upload, Verification & Photos","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":9,"current_step":3,"completion_percent":100}] |
||||
|
|
||||
|
--- 2026-08-03T07:51:09.604Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/family_background/data/ |
||||
|
STATUS: 400 |
||||
|
REQUEST: {"current_step":5,"total_steps":5,"fields":[{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","label":"Parents' Survival Status","type":"radio","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q4_do_you_currently_have_an_ongoing_financial_caregiving_or_guardianship_responsibility_for_a_family_member","label":"Do you currently have an ongoing financial, caregiving, or guardianship responsibility for a family member?","type":"checkbox","value":["I am responsible for caring for my parent(s) (father, mother, or both)."]},{"key":"q5_do_the_supported_individual_s_live_with_you","label":"Do the supported individual(s) live with you?","type":"radio","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q9_short_family_description","label":"Short Family Description","type":"textarea","value":"kjllkjkjl"}]} |
||||
|
RESPONSE: {"fields":[{},{},{},{"key":["Ensure this field has no more than 100 characters."]},{},{},{},{},{}]} |
||||
|
|
||||
|
--- 2026-08-03T07:51:14.444Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/profile/main/?_t=1785743467848 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: {"id":23,"status":"waiting","gender":"female","is_registering_for_self":true,"paid_fee":false,"can_edit_profile":true,"can_message_expert":false,"active_subscription":null,"is_ready_for_match":true,"active_case":null,"needs_subscription":false,"match_summary":null,"recommended_plan":{"id":1,"title":"اشتراک یک ماه","price":"5"}} |
||||
|
|
||||
|
--- 2026-08-03T07:51:15.926Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/marital_history/data/ |
||||
|
STATUS: 200 |
||||
|
REQUEST: {"current_step":2,"total_steps":2,"fields":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q2_previous_marriage_duration","type":"text","label":"Previous Marriage Duration","value":"3"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}]} |
||||
|
RESPONSE: {"id":124,"slug":"marital_history","data":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","type":"radio","label":"Parents' Survival Status","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q5_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious and strictly observant"},{"key":"q6_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q4_short_family_description","type":"text","label":"Short Family Description","value":"jhh"},{"key":"q2_previous_marriage_duration","label":"Previous Marriage Duration","type":"text","value":"3"},{"key":"q5_do_the_supported_individual_s_live_with_you","type":"radio","label":"Do the supported individual(s) live with you?","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q9_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q7_what_is_the_custody_status_of_your_child_ren","type":"checkbox","label":"What is the custody status of your child(ren)?","value":["Custody is with the other parent or another person.","Joint custody or periodic visitation/relocation between parents.","Children have reached legal age (custody is not applicable)."]},{"key":"q8_how_much_time_do_the_child_ren_usually_live_with_you","type":"radio","label":"How much time do the child(ren) usually live with you?","value":"Permanently or most days of the week with me."},{"key":"q9_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","type":"radio","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q10_what_is_the_payment_or_receipt_status_of_child_support","type":"radio","label":"What is the payment or receipt status of child support?","value":"Receiving child support regularly."},{"key":"q9_short_family_description","type":"textarea","label":"Short Family Description","value":"kjllkj"},{"key":"q12_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","type":"radio","label":"Acceptance of necessary communication between future spouse and the other parent","value":"I accept necessary, respectful, and limited communication regarding child matters."},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}],"current_step":2,"total_steps":2,"completion_percent":100,"updated_at":"2026-08-03T11:21:09.741786"} |
||||
|
|
||||
|
--- 2026-08-03T07:51:16.132Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/?_t=1785743475001 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: [{"id":5,"slug":"katel_test","title":"Katel Test","is_required":false,"importance_weight":1,"estimated_minutes":30,"total_steps":4,"order":0,"current_step":0,"completion_percent":0},{"id":15,"slug":"personal_identity","title":"Personal and identity details","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":6,"order":0,"current_step":6,"completion_percent":100},{"id":7,"slug":"contact_residence","title":"Contact, Residence & Family Liaison","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":8,"order":2,"current_step":8,"completion_percent":100},{"id":8,"slug":"appearance_health","title":"Appearance, Health & Physical Activity","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":5,"order":3,"current_step":5,"completion_percent":100},{"id":9,"slug":"education_career","title":"Education, Career & Financial Status","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":4,"order":4,"current_step":4,"completion_percent":100},{"id":10,"slug":"family_background","title":"Family Background","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":5,"current_step":3,"completion_percent":100},{"id":11,"slug":"marital_history","title":"Marital Status, Marriage History & Children","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":2,"order":6,"current_step":2,"completion_percent":100},{"id":12,"slug":"beliefs_lifestyle","title":"Beliefs, Lifestyle, Personality & Personal Boundaries","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":15,"order":7,"current_step":15,"completion_percent":100},{"id":13,"slug":"spouse_criteria","title":"Future Spouse Criteria & Deal-Breakers","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":23,"order":8,"current_step":23,"completion_percent":100},{"id":14,"slug":"documents_verification","title":"Document Upload, Verification & Photos","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":9,"current_step":3,"completion_percent":100}] |
||||
|
|
||||
|
--- 2026-08-03T07:51:17.779Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/family_background/data/ |
||||
|
STATUS: 400 |
||||
|
REQUEST: {"current_step":5,"total_steps":5,"fields":[{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","label":"Parents' Survival Status","type":"radio","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q4_do_you_currently_have_an_ongoing_financial_caregiving_or_guardianship_responsibility_for_a_family_member","label":"Do you currently have an ongoing financial, caregiving, or guardianship responsibility for a family member?","type":"checkbox","value":["I am responsible for caring for my parent(s) (father, mother, or both)."]},{"key":"q5_do_the_supported_individual_s_live_with_you","label":"Do the supported individual(s) live with you?","type":"radio","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q9_short_family_description","label":"Short Family Description","type":"textarea","value":"kjllkjkjl"}]} |
||||
|
RESPONSE: {"fields":[{},{},{},{"key":["Ensure this field has no more than 100 characters."]},{},{},{},{},{}]} |
||||
|
|
||||
|
--- 2026-08-03T07:51:21.694Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/profile/main/?_t=1785743475001 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: {"id":23,"status":"waiting","gender":"female","is_registering_for_self":true,"paid_fee":false,"can_edit_profile":true,"can_message_expert":false,"active_subscription":null,"is_ready_for_match":true,"active_case":null,"needs_subscription":false,"match_summary":null,"recommended_plan":{"id":1,"title":"اشتراک یک ماه","price":"5"}} |
||||
|
|
||||
|
--- 2026-08-03T07:51:22.425Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/?_t=1785743481293 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: [{"id":5,"slug":"katel_test","title":"Katel Test","is_required":false,"importance_weight":1,"estimated_minutes":30,"total_steps":4,"order":0,"current_step":0,"completion_percent":0},{"id":15,"slug":"personal_identity","title":"Personal and identity details","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":6,"order":0,"current_step":6,"completion_percent":100},{"id":7,"slug":"contact_residence","title":"Contact, Residence & Family Liaison","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":8,"order":2,"current_step":8,"completion_percent":100},{"id":8,"slug":"appearance_health","title":"Appearance, Health & Physical Activity","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":5,"order":3,"current_step":5,"completion_percent":100},{"id":9,"slug":"education_career","title":"Education, Career & Financial Status","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":4,"order":4,"current_step":4,"completion_percent":100},{"id":10,"slug":"family_background","title":"Family Background","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":5,"current_step":3,"completion_percent":100},{"id":11,"slug":"marital_history","title":"Marital Status, Marriage History & Children","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":2,"order":6,"current_step":2,"completion_percent":100},{"id":12,"slug":"beliefs_lifestyle","title":"Beliefs, Lifestyle, Personality & Personal Boundaries","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":15,"order":7,"current_step":15,"completion_percent":100},{"id":13,"slug":"spouse_criteria","title":"Future Spouse Criteria & Deal-Breakers","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":23,"order":8,"current_step":23,"completion_percent":100},{"id":14,"slug":"documents_verification","title":"Document Upload, Verification & Photos","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":9,"current_step":3,"completion_percent":100}] |
||||
|
|
||||
|
--- 2026-08-03T07:51:24.117Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/marital_history/data/ |
||||
|
STATUS: 200 |
||||
|
REQUEST: {"current_step":2,"total_steps":2,"fields":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q2_previous_marriage_duration","type":"text","label":"Previous Marriage Duration","value":"3"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}]} |
||||
|
RESPONSE: {"id":124,"slug":"marital_history","data":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","type":"radio","label":"Parents' Survival Status","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q5_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious and strictly observant"},{"key":"q6_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q4_short_family_description","type":"text","label":"Short Family Description","value":"jhh"},{"key":"q2_previous_marriage_duration","label":"Previous Marriage Duration","type":"text","value":"3"},{"key":"q5_do_the_supported_individual_s_live_with_you","type":"radio","label":"Do the supported individual(s) live with you?","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q9_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q7_what_is_the_custody_status_of_your_child_ren","type":"checkbox","label":"What is the custody status of your child(ren)?","value":["Custody is with the other parent or another person.","Joint custody or periodic visitation/relocation between parents.","Children have reached legal age (custody is not applicable)."]},{"key":"q8_how_much_time_do_the_child_ren_usually_live_with_you","type":"radio","label":"How much time do the child(ren) usually live with you?","value":"Permanently or most days of the week with me."},{"key":"q9_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","type":"radio","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q10_what_is_the_payment_or_receipt_status_of_child_support","type":"radio","label":"What is the payment or receipt status of child support?","value":"Receiving child support regularly."},{"key":"q9_short_family_description","type":"textarea","label":"Short Family Description","value":"kjllkj"},{"key":"q12_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","type":"radio","label":"Acceptance of necessary communication between future spouse and the other parent","value":"I accept necessary, respectful, and limited communication regarding child matters."},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}],"current_step":2,"total_steps":2,"completion_percent":100,"updated_at":"2026-08-03T11:21:17.931770"} |
||||
|
|
||||
|
--- 2026-08-03T07:51:28.070Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/profile/main/?_t=1785743481293 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: {"id":23,"status":"waiting","gender":"female","is_registering_for_self":true,"paid_fee":false,"can_edit_profile":true,"can_message_expert":false,"active_subscription":null,"is_ready_for_match":true,"active_case":null,"needs_subscription":false,"match_summary":null,"recommended_plan":{"id":1,"title":"اشتراک یک ماه","price":"5"}} |
||||
|
|
||||
|
--- 2026-08-03T07:51:58.760Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/?_t=1785743517875 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: [{"id":5,"slug":"katel_test","title":"Katel Test","is_required":false,"importance_weight":1,"estimated_minutes":30,"total_steps":4,"order":0,"current_step":0,"completion_percent":0},{"id":15,"slug":"personal_identity","title":"Personal and identity details","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":6,"order":0,"current_step":6,"completion_percent":100},{"id":7,"slug":"contact_residence","title":"Contact, Residence & Family Liaison","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":8,"order":2,"current_step":8,"completion_percent":100},{"id":8,"slug":"appearance_health","title":"Appearance, Health & Physical Activity","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":5,"order":3,"current_step":5,"completion_percent":100},{"id":9,"slug":"education_career","title":"Education, Career & Financial Status","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":4,"order":4,"current_step":4,"completion_percent":100},{"id":10,"slug":"family_background","title":"Family Background","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":5,"current_step":3,"completion_percent":100},{"id":11,"slug":"marital_history","title":"Marital Status, Marriage History & Children","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":2,"order":6,"current_step":2,"completion_percent":100},{"id":12,"slug":"beliefs_lifestyle","title":"Beliefs, Lifestyle, Personality & Personal Boundaries","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":15,"order":7,"current_step":15,"completion_percent":100},{"id":13,"slug":"spouse_criteria","title":"Future Spouse Criteria & Deal-Breakers","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":23,"order":8,"current_step":23,"completion_percent":100},{"id":14,"slug":"documents_verification","title":"Document Upload, Verification & Photos","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":9,"current_step":3,"completion_percent":100}] |
||||
|
|
||||
|
--- 2026-08-03T07:51:59.495Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/family_background/data/ |
||||
|
STATUS: 400 |
||||
|
REQUEST: {"current_step":5,"total_steps":5,"fields":[{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","label":"Parents' Survival Status","type":"radio","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q4_do_you_currently_have_an_ongoing_financial_caregiving_or_guardianship_responsibility_for_a_family_member","label":"Do you currently have an ongoing financial, caregiving, or guardianship responsibility for a family member?","type":"checkbox","value":["I am responsible for caring for my parent(s) (father, mother, or both)."]},{"key":"q5_do_the_supported_individual_s_live_with_you","label":"Do the supported individual(s) live with you?","type":"radio","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q9_short_family_description","label":"Short Family Description","type":"textarea","value":"kjllkjkjl"}]} |
||||
|
RESPONSE: {"fields":[{},{},{},{"key":["Ensure this field has no more than 100 characters."]},{},{},{},{},{}]} |
||||
|
|
||||
|
--- 2026-08-03T07:52:04.434Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/profile/main/?_t=1785743517875 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: {"id":23,"status":"waiting","gender":"female","is_registering_for_self":true,"paid_fee":false,"can_edit_profile":true,"can_message_expert":false,"active_subscription":null,"is_ready_for_match":true,"active_case":null,"needs_subscription":false,"match_summary":null,"recommended_plan":{"id":1,"title":"اشتراک یک ماه","price":"5"}} |
||||
|
|
||||
|
--- 2026-08-03T07:52:05.855Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/marital_history/data/ |
||||
|
STATUS: 200 |
||||
|
REQUEST: {"current_step":2,"total_steps":2,"fields":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q2_previous_marriage_duration","type":"text","label":"Previous Marriage Duration","value":"3"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}]} |
||||
|
RESPONSE: {"id":124,"slug":"marital_history","data":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","type":"radio","label":"Parents' Survival Status","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q5_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious and strictly observant"},{"key":"q6_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q4_short_family_description","type":"text","label":"Short Family Description","value":"jhh"},{"key":"q2_previous_marriage_duration","label":"Previous Marriage Duration","type":"text","value":"3"},{"key":"q5_do_the_supported_individual_s_live_with_you","type":"radio","label":"Do the supported individual(s) live with you?","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q9_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q7_what_is_the_custody_status_of_your_child_ren","type":"checkbox","label":"What is the custody status of your child(ren)?","value":["Custody is with the other parent or another person.","Joint custody or periodic visitation/relocation between parents.","Children have reached legal age (custody is not applicable)."]},{"key":"q8_how_much_time_do_the_child_ren_usually_live_with_you","type":"radio","label":"How much time do the child(ren) usually live with you?","value":"Permanently or most days of the week with me."},{"key":"q9_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","type":"radio","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q10_what_is_the_payment_or_receipt_status_of_child_support","type":"radio","label":"What is the payment or receipt status of child support?","value":"Receiving child support regularly."},{"key":"q9_short_family_description","type":"textarea","label":"Short Family Description","value":"kjllkj"},{"key":"q12_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","type":"radio","label":"Acceptance of necessary communication between future spouse and the other parent","value":"I accept necessary, respectful, and limited communication regarding child matters."},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}],"current_step":2,"total_steps":2,"completion_percent":100,"updated_at":"2026-08-03T11:21:59.669906"} |
||||
|
|
||||
|
--- 2026-08-03T07:52:25.332Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/?_t=1785743544353 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: [{"id":5,"slug":"katel_test","title":"Katel Test","is_required":false,"importance_weight":1,"estimated_minutes":30,"total_steps":4,"order":0,"current_step":0,"completion_percent":0},{"id":15,"slug":"personal_identity","title":"Personal and identity details","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":6,"order":0,"current_step":6,"completion_percent":100},{"id":7,"slug":"contact_residence","title":"Contact, Residence & Family Liaison","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":8,"order":2,"current_step":8,"completion_percent":100},{"id":8,"slug":"appearance_health","title":"Appearance, Health & Physical Activity","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":5,"order":3,"current_step":5,"completion_percent":100},{"id":9,"slug":"education_career","title":"Education, Career & Financial Status","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":4,"order":4,"current_step":4,"completion_percent":100},{"id":10,"slug":"family_background","title":"Family Background","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":5,"current_step":3,"completion_percent":100},{"id":11,"slug":"marital_history","title":"Marital Status, Marriage History & Children","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":2,"order":6,"current_step":2,"completion_percent":100},{"id":12,"slug":"beliefs_lifestyle","title":"Beliefs, Lifestyle, Personality & Personal Boundaries","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":15,"order":7,"current_step":15,"completion_percent":100},{"id":13,"slug":"spouse_criteria","title":"Future Spouse Criteria & Deal-Breakers","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":23,"order":8,"current_step":23,"completion_percent":100},{"id":14,"slug":"documents_verification","title":"Document Upload, Verification & Photos","is_required":true,"importance_weight":1,"estimated_minutes":null,"total_steps":3,"order":9,"current_step":3,"completion_percent":100}] |
||||
|
|
||||
|
--- 2026-08-03T07:52:26.038Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/family_background/data/ |
||||
|
STATUS: 400 |
||||
|
REQUEST: {"current_step":5,"total_steps":5,"fields":[{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","label":"Parents' Survival Status","type":"radio","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q4_do_you_currently_have_an_ongoing_financial_caregiving_or_guardianship_responsibility_for_a_family_member","label":"Do you currently have an ongoing financial, caregiving, or guardianship responsibility for a family member?","type":"checkbox","value":["I am responsible for caring for my parent(s) (father, mother, or both)."]},{"key":"q5_do_the_supported_individual_s_live_with_you","label":"Do the supported individual(s) live with you?","type":"radio","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q9_short_family_description","label":"Short Family Description","type":"textarea","value":"kjllkjkjl"}]} |
||||
|
RESPONSE: {"fields":[{},{},{},{"key":["Ensure this field has no more than 100 characters."]},{},{},{},{},{}]} |
||||
|
|
||||
|
--- 2026-08-03T07:52:30.995Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/profile/main/?_t=1785743544353 |
||||
|
STATUS: 200 |
||||
|
REQUEST: "" |
||||
|
RESPONSE: {"id":23,"status":"waiting","gender":"female","is_registering_for_self":true,"paid_fee":false,"can_edit_profile":true,"can_message_expert":false,"active_subscription":null,"is_ready_for_match":true,"active_case":null,"needs_subscription":false,"match_summary":null,"recommended_plan":{"id":1,"title":"اشتراک یک ماه","price":"5"}} |
||||
|
|
||||
|
--- 2026-08-03T07:52:32.761Z --- |
||||
|
URL: http://127.0.0.1:8000/api/marriage/sections/marital_history/data/ |
||||
|
STATUS: 200 |
||||
|
REQUEST: {"current_step":2,"total_steps":2,"fields":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q2_previous_marriage_duration","type":"text","label":"Previous Marriage Duration","value":"3"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}]} |
||||
|
RESPONSE: {"id":124,"slug":"marital_history","data":[{"key":"q1_current_marital_status","label":"Current Marital Status","type":"radio","value":"Divorced; after living together"},{"key":"q3_reason_for_separation","label":"Reason for Separation","type":"text","value":"kljklh"},{"key":"q1_number_of_siblings","type":"number","label":"Number of Siblings","value":5},{"key":"q2_parents_survival_status","type":"radio","label":"Parents' Survival Status","value":"Both parents are alive"},{"key":"q3_parents_marital_status","type":"radio","label":"Parents' Marital Status","value":"Living together"},{"key":"q5_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious and strictly observant"},{"key":"q6_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q4_short_family_description","type":"text","label":"Short Family Description","value":"jhh"},{"key":"q2_previous_marriage_duration","label":"Previous Marriage Duration","type":"text","value":"3"},{"key":"q5_do_the_supported_individual_s_live_with_you","type":"radio","label":"Do the supported individual(s) live with you?","value":"Yes, they live with me permanently."},{"key":"q6_additional_details_about_family_responsibility","type":"textarea","label":"Additional details about family responsibility","value":"hi my name is "},{"key":"q9_family_economic_status","type":"radio","label":"Family Economic Status","value":"Prosperous"},{"key":"q7_family_s_religious_and_ideological_atmosphere","type":"radio","label":"Family's Religious and Ideological Atmosphere","value":"Religious (observant of obligations)"},{"key":"q8_family_economic_status","type":"radio","label":"Family Economic Status","value":"Average"},{"key":"q4_children_and_guardianship_status","label":"Children and Guardianship Status","type":"checkbox","value":["Have children living with me"]},{"key":"q5_number_of_children","label":"Number of Children","type":"number","value":2},{"key":"q7_what_is_the_custody_status_of_your_child_ren","type":"checkbox","label":"What is the custody status of your child(ren)?","value":["Custody is with the other parent or another person.","Joint custody or periodic visitation/relocation between parents.","Children have reached legal age (custody is not applicable)."]},{"key":"q8_how_much_time_do_the_child_ren_usually_live_with_you","type":"radio","label":"How much time do the child(ren) usually live with you?","value":"Permanently or most days of the week with me."},{"key":"q9_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","type":"radio","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q10_what_is_the_payment_or_receipt_status_of_child_support","type":"radio","label":"What is the payment or receipt status of child support?","value":"Receiving child support regularly."},{"key":"q9_short_family_description","type":"textarea","label":"Short Family Description","value":"kjllkj"},{"key":"q12_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","type":"radio","label":"Acceptance of necessary communication between future spouse and the other parent","value":"I accept necessary, respectful, and limited communication regarding child matters."},{"key":"q6_what_is_the_custody_status_of_your_child_ren","label":"What is the custody status of your child(ren)?","type":"radio","value":"Joint custody or periodic visitation/relocation between parents."},{"key":"q7_how_much_time_do_the_child_ren_usually_live_with_you","label":"How much time do the child(ren) usually live with you?","type":"radio","value":"Approximately half the time (joint custody/schedule)."},{"key":"q8_does_the_custody_visitation_or_relocation_schedule_impact_your_residence_or_immigration","label":"Does the custody, visitation, or relocation schedule impact your residence or immigration?","type":"radio","value":"Yes, relocation or immigration requires coordination, agreement, or a legal permit."},{"key":"q9_what_is_the_payment_or_receipt_status_of_child_support","label":"What is the payment or receipt status of child support?","type":"radio","value":"Receiving child support regularly."},{"key":"q10_acceptance_of_necessary_communication_between_future_spouse_and_the_other_parent","label":"Acceptance of necessary communication between future spouse and the other parent","type":"radio","value":"I only accept formal and highly limited communication regarding essential child matters."},{"key":"q11_short_children_guardianship_explanation","label":"Short Children/Guardianship Explanation","type":"textarea","value":"تانتلننتا"}],"current_step":2,"total_steps":2,"completion_percent":100,"updated_at":"2026-08-03T11:22:26.209700"} |
||||
@ -1 +1,27 @@ |
|||||
export { default } from "@/app/intro/page"; |
|
||||
|
import { redirect } from "next/navigation"; |
||||
|
import { cookies, headers } from "next/headers"; |
||||
|
import { isLocale, defaultLocale } from "@/translations/config"; |
||||
|
|
||||
|
export const dynamic = "force-dynamic"; |
||||
|
|
||||
|
export default async function RootPage() { |
||||
|
const cookieStore = await cookies(); |
||||
|
const habibLanguage = cookieStore.get("HABIB_LANGUAGE")?.value ?? cookieStore.get("habib_language")?.value; |
||||
|
|
||||
|
let targetLocale = defaultLocale; |
||||
|
|
||||
|
if (isLocale(habibLanguage)) { |
||||
|
targetLocale = habibLanguage; |
||||
|
} else { |
||||
|
const headersList = await headers(); |
||||
|
const acceptLanguage = headersList.get("accept-language"); |
||||
|
if (acceptLanguage) { |
||||
|
const preferredLanguage = acceptLanguage.split(",")[0].split("-")[0]; |
||||
|
if (isLocale(preferredLanguage)) { |
||||
|
targetLocale = preferredLanguage; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
redirect(`/${targetLocale}`); |
||||
|
} |
||||
@ -0,0 +1,58 @@ |
|||||
|
"use client"; |
||||
|
|
||||
|
import { useEffect, useState } from "react"; |
||||
|
import { IoAlertCircle, IoClose } from "react-icons/io5"; |
||||
|
|
||||
|
type ErrorToastProps = { |
||||
|
message: string; |
||||
|
onClose: () => void; |
||||
|
duration?: number; |
||||
|
}; |
||||
|
|
||||
|
export default function ErrorToast({ |
||||
|
message, |
||||
|
onClose, |
||||
|
duration = 4000, |
||||
|
}: ErrorToastProps) { |
||||
|
const [isVisible, setIsVisible] = useState(true); |
||||
|
|
||||
|
useEffect(() => { |
||||
|
const timer = setTimeout(() => { |
||||
|
setIsVisible(false); |
||||
|
setTimeout(onClose, 300); // Wait for fade-out animation to complete
|
||||
|
}, duration); |
||||
|
|
||||
|
return () => clearTimeout(timer); |
||||
|
}, [duration, onClose]); |
||||
|
|
||||
|
const handleClose = () => { |
||||
|
setIsVisible(false); |
||||
|
setTimeout(onClose, 300); |
||||
|
}; |
||||
|
|
||||
|
return ( |
||||
|
<div |
||||
|
className={[ |
||||
|
"fixed top-4 left-1/2 z-50 flex w-[calc(100%-34px)] max-w-[341px] -translate-x-1/2 items-center gap-3 rounded-xl border p-4 shadow-lg backdrop-blur-md transition-all duration-300", |
||||
|
isVisible |
||||
|
? "translate-y-0 opacity-100 scale-100" |
||||
|
: "-translate-y-4 opacity-0 scale-95", |
||||
|
"bg-red-50/95 dark:bg-red-950/95 text-red-800 dark:text-red-200 border-red-100/80 dark:border-red-900/50", |
||||
|
].join(" ")} |
||||
|
role="alert" |
||||
|
> |
||||
|
<IoAlertCircle className="size-5 shrink-0 text-red-500" /> |
||||
|
<span className="flex-1 text-sm font-semibold leading-normal"> |
||||
|
{message} |
||||
|
</span> |
||||
|
<button |
||||
|
type="button" |
||||
|
onClick={handleClose} |
||||
|
className="flex size-6 items-center justify-center rounded-lg text-red-500 hover:bg-red-100/50 dark:hover:bg-red-900/50 transition-colors" |
||||
|
aria-label="Close error toast" |
||||
|
> |
||||
|
<IoClose className="size-4" /> |
||||
|
</button> |
||||
|
</div> |
||||
|
); |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue