Skip to content

Commit

Permalink
Merge pull request #117 from IDEMSInternational/create-pull-request/p…
Browse files Browse the repository at this point in the history
…atch

sync content from google sheets
  • Loading branch information
cabrinenyona authored Nov 5, 2024
2 parents 6d8db1e + 7187575 commit 3642fb1
Show file tree
Hide file tree
Showing 11 changed files with 90 additions and 13 deletions.
16 changes: 16 additions & 0 deletions app_data/assets/contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -955,14 +955,30 @@
"md5Checksum": "93c139604275d8006351dee006f2e863",
"size_kb": 955.2
},
"videos/aboutpfr_session1.mp4": {
"md5Checksum": "5080931c8c716b057b9557b25a32ddd1",
"size_kb": 2341.8
},
"videos/amit_session12.mp4": {
"md5Checksum": "befc868a47764427711c00fcd0590983",
"size_kb": 2492.9
},
"videos/doreen_2.mp4": {
"md5Checksum": "dbe2fb6789308d7c465a5dab79396b02",
"size_kb": 4061.8
},
"videos/doreen_session14.mp4": {
"md5Checksum": "c9c7ec22c963b8856fd6497908bb6d1c",
"size_kb": 3585.4
},
"videos/head_family8.mp4": {
"md5Checksum": "4c728ae802c0b2235e64f314a5a8f632",
"size_kb": 4283.4
},
"videos/openness_session15.mp4": {
"md5Checksum": "a5292d8885187f6a1af55b12f3fa0021",
"size_kb": 3636.7
},
"videos/vincent.mp4": {
"md5Checksum": "32ca1a2bc56be0086bd5feebbc48315c",
"size_kb": 3267
Expand Down
Binary file added app_data/assets/videos/aboutpfr_session1.mp4
Binary file not shown.
Binary file added app_data/assets/videos/amit_session12.mp4
Binary file not shown.
Binary file added app_data/assets/videos/doreen_session14.mp4
Binary file not shown.
Binary file added app_data/assets/videos/openness_session15.mp4
Binary file not shown.
1 change: 1 addition & 0 deletions app_data/sheets/data_list/onboarding_content.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"title": "About Parenting for Respectability",
"icon_asset": "images/icons/picture_book.svg",
"intro_text": "Parenting for Respectability develops fathers’ and mothers’ skills to bring up their children well so that they respect their parents and also earn respect from their parents. Respectability helps to improve relationships in families in order to prevent violence in homes and communities.",
"media_asset": "videos/aboutpfr_session1.mp4",
"text": "The long-term goals of this programme are:\n* Improve infants’ secure attachment to their parents and promote parental bonding and love.\n* Improve upbringing of children through positive discipline for family respectability.\n* Improve how boys and girls are socialized and reduce negative gender norms in families.\n* Reduce conflict between parents especially violence, which has negative health consequences and affects family functioning.",
"question_text": "What do you want to learn in relation to parenting?",
"question_type": "text_input_long"
Expand Down
15 changes: 6 additions & 9 deletions app_data/sheets/data_list/story.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
"id": "impact_conflict",
"topic": "impact_conflict",
"media_title": "Let us watch a story",
"media_type": "audio",
"slide_1_text": "Susan and her husband John have a troublesome son, Henry, who is 11 years old. Henry is very energetic and creative. However, he often gets into trouble at school.",
"slide_2_text": "On weekends and even on some school days, Henry escapes from home to watch movies. Susan’s husband often blames her for Henry’s bad behaviour saying that she spends too much time at her job, when she should be home more, watching over the children.",
"slide_3_text": "One day Susan and her husband got into a heated argument and he hit her. He often did so but this time, Susan decided that she could not take it anymore. She lashes out at Henry and beats him up, blaming him for always bringing her problems.",
Expand All @@ -134,7 +133,6 @@
"id": "caregiving_1",
"topic": "sharing_care",
"media_title": "Let us listen to a story",
"media_type": "audio",
"slide_1_text": "Paul and Mary have been married for 18 years, and they have 4 children; 3 boys and 1 girl. Every morning, Mary wakes up at 5:00 am to prepare the children for school, including organizing their breakfast, school, dressing up, and finally a drive to school. She ensures to return home before dark and join the house helper to prepare dinner, play with the children, support them with homework, and teach them family values including leading prayers. On the other hand, her husband Paul, wakes up, dresses up, and drives his car to his office. After work, Paul spends time at the club with his colleagues, joins the gym for a workout, and returns home after 9:00 PM when most of the children are asleep. Paul is doing well at his job and draws attention especially at smartness, time-keeping, and intellectual balance. On the other hand, Mary, asks for offs many times to attend to sick children, school days, and family social responsibilities.",
"slide_2_text": "She ensures to return home before dark and join the house helper to prepare dinner, play with the children, support them with homework, and teach them family values including leading prayers. On the other hand, her husband Paul, wakes up, dresses up, and drives his car to his office. After work, Paul spends time at the club with his colleagues, joins the gym for a workout, and returns home after 9:00 PM when most of the children are asleep.",
"slide_3_text": "On the other hand, her husband Paul, wakes up, dresses up, and drives his car to his office. After work, Paul spends time at the club with his colleagues, joins the gym for a workout, and returns home after 9:00 PM when most of the children are asleep. Paul is doing well at his job and draws attention especially at smartness, time-keeping, and intellectual balance. On the other hand, Mary, asks for offs many times to attend to sick children, school days, and family social responsibilities.",
Expand All @@ -144,7 +142,6 @@
"id": "caregiving_2",
"topic": "sharing_care",
"media_title": "Let us listen to a story",
"media_type": "audio",
"slide_1_text": "Bosco and Esther have been married for 18 years, and they have 4 children; 3 boys and 1 girl. Every morning, Esther wakes at 5:30 am up to prepare the children for school, including organizing their breakfast.",
"slide_2_text": "Her husband also Bosco wakes up at 6:00 am to support with the final stages of the arrangements and takes the children to school. After work, Bosco picks up the younger children who study at the same school near his place of work while Esther picks the other two. They all later catch up in the evening to support them with house work, fun and playtime together.",
"slide_3_text": "While Bosco goes for his workout time (gym) Esther and the bigger children support the house helper to prepare dinner. Bosco joins them and with his son and daughter, they organize the dining table for the meal. They spend time in catch up, value clarification moments and praying together. The couples enjoys family life and yet are very instrumental in their workplaces as, they are role models to many.",
Expand All @@ -153,7 +150,6 @@
{
"id": "rships_communication",
"topic": "healthy_relation",
"media_type": "audio",
"slide_1_text": "\"But I did not do anything wrong, we are just friends\", Chris insisted when a family member voiced concern over the time he was spending with the girl working in the bar and restaurant. In Chris’s mind, he had not crossed any lines because there was nothing much that was happening. \"I only tap her bat sometimes, just for fun, and I have no problem spending time with someone who cooks and serves us food and beer very well, daily.",
"slide_2_text": "Chris and his wife Kevin have been happily married for 7 years. But Kevin is argumentative and sometimes, an aggressive talker, who tries to win every argument. She cannot sustain a good discussion and often threatens to leave her husband because of his behaviour, especially physical and emotional violence including non-involvement in child care. Chris often feels lonely even when they are together. As a result of this, they have problems in their intimate relationships and each of them does not get sufficient intimate satisfaction (sex) but they do not talk about it. Both of them have challenges with their body hygiene including brushing, shaving, bathing, cutting nails among others. The couple has developed drinking habits to try to feel relaxed but this makes it worse as they end in fights and quarrels before the children.",
"slide_3_text": "The restaurant girl, however, is a good listener and easily reads Chris’s moods. She is quick to laugh with him and is fun to have around. As the two continued to spend time together, a friend to whom Chris had casually told about the relationship mentioned it to Kevin. When Kevin confronted Chris, he dismissed her concerns. Kevin was so disturbed and decided to fight her husband and the bar girl.",
Expand All @@ -174,7 +170,6 @@
"id": "doreen_relation",
"topic": "parenting_teens",
"media_title": "Let us watch a story",
"media_type": "video",
"slide_1_text": "Doreen and the father have a good relationship characterized with love, open communication, and interactions. They do many things together including praying for each other. Along the way, Doreen gets distracted by peers who introduce her to drinking alcohol, going to parties, and gambling which draws her away from her family relationship.",
"slide_2_text": "The father tries to talk to her against these habits but she would not listen, as the other things were looking so attractive. However, rather than giving up and dis-owning his daughter, the father demonstrates a remarkable commitment to save his daughter from associated dangers.",
"slide_3_text": "He prayed persistently, went about looking for her and embraced and accepted her without being judgmental and harsh. The father’s persistence and commitment to supporting his daughter, delivers her and she returns to their relationship.",
Expand All @@ -185,6 +180,7 @@
"topic": "education",
"media_title": "Let us watch a story",
"media_type": "video",
"media_asset": "videos/amit_session12.mp4",
"slide_1_text": "Mrs. Mukasa: Amit, your daddy and I are too busy these days and we have agreed that you and your brother will be taken to school by Moses the motorcycle rider. \nAmit: Ok, but…..",
"slide_2_text": "(Moses arrives and puts them on the bike)\nMoses: Amit, you are about 14 years and your brother is now 12….. Right?\nAmit: Yes, why are you asking?",
"slide_3_text": "Moses: I see that both of you spend time only at school and home, don’t you want to go out and have fun with other people? This is the time to enjoy life….. Especially, you Amit, I like your breasts!",
Expand All @@ -196,7 +192,6 @@
"id": "education_2",
"topic": "education",
"media_title": "Let us watch a story",
"media_type": "video",
"slide_1_text": "Carol is a 13-year-old girl in Form 1 in a certain school. She tries to work hard but received a very low mark in the mid-year examinations.",
"slide_2_text": "That same day, her parents found out that she was more engatfed in core curriculum actitivies rather than her main studies. The parents are disspaointed and leading to a quarrel between Caro's parents.",
"slide_3_text": "Just before examinations, Carol’s teacher had tried to contact the parents regarding her academics, but the parents were busy and did not seem interested.",
Expand All @@ -217,6 +212,7 @@
"topic": "prevent_abuse",
"media_title": "Let us watch a story",
"media_type": "video",
"media_asset": "videos/doreen_session14.mp4",
"slide_1_text": "Doreen: Spending quality time with her father, doing things together including reading books, playing etc Father: Smiling and providing a supportive environment to nurture their relationship",
"slide_2_text": "Doreen and father: Have moments where they understand each other, and enjoy each other’s company.\nDoreen: Sorry gets distracted from the relationship into drinking, enticed by money and other items",
"slide_3_text": "Doreen: Gets tied, and wants to come back but difficult because of the obstacles \nFather: Keep check and positively waiting for her daughter in prayer and hard work \nDoreen: Later, Doreen returns to their relationship and her father supports her to re-cover!",
Expand All @@ -226,7 +222,6 @@
"id": "prevent_abuse_2",
"topic": "prevent_abuse",
"media_title": "Let us listen to a story",
"media_type": "audio",
"slide_1_text": "I have many friends. But only a few are true. I have friends that I only say Hi and bye to. I have friends that just come around When they need answers or advise Although these are not true friends They play a big part in teaching me about life.",
"slide_2_text": "On the other hand I have true friends. Who encourage and support me. Sure, we have our differences. But only true relationships withstand obstacles.",
"slide_3_text": "They compliment me on a good job. And they send my spirit to the skies with their constant Loyal friendship. And sometimes I just wonder why.",
Expand All @@ -237,14 +232,16 @@
{
"id": "reduce_conflict_activity",
"topic": "reduce_conflict",
"media_title": "Let us listen to a story",
"media_type": "video",
"media_asset": "videos/openness_session15.mp4",
"slide_1_text": "Trainer: invites two people (male and female) and hands them an opaque object. He says: What do you see? \nPerson seeing (male): but….. I don’t see anything\nPerson being seen (female): Tries to do fun interesting things silently",
"slide_2_text": "Trainer: How do you feel to try to see someone through an object that is opaque? \nPerson seeing (male): I feel bad, annoyed, disappointed, tired, anxious….. \nTrainer: Hands him a translucent item asks him to see the lady through it. Says: What do you see?",
"slide_3_text": "Person seeing (male): I see her doing something but I don’t get it well\nPerson being seen (female): Tries to do fun interesting things silently \nTrainer: How do you feel to try to see someone through a translucent item?",
"slide_4_text": "Person seeing (male): I feel very anxious, bad, annoyed, disappointed, tired,….. \nTrainer: Hands him a transparent item asks him to see the lady through it. Says: What do you see? \nPerson seeing (male): I see her smiling, very happy, and I am pleased to see her very well!",
"slide_5_text": "Person being seen (female): Tries to do fun interesting things silently \nTrainer: How do you feel to try to see someone through a transparent item? \nPerson seeing (male): I feel happy, connected, peaceful, in a relationship…..",
"slide_6_text": "Announcer: \nJust like the animation, many of us desire to have transparent relationships with good communication but fail to communicate our 100% commitment to our partners and marriage life. Marriages where there is open communication and partners know each other very well, they function well, live healthy and enjoy th parenting role. Its important for us to be as open as possible to each other for more mutual understanding.\n\nPeople relate well with people they know well. It's not good to keep many secrets in marital relationships.",
"icon_asset": "images/icons/picture_book.svg",
"media_title": "Story"
"icon_asset": "images/icons/picture_book.svg"
}
],
"_xlsxPath": "global/data_lists/topics.xlsx"
Expand Down
34 changes: 34 additions & 0 deletions app_data/sheets/template/onboarding_content.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,40 @@
]
}
},
{
"type": "video",
"name": "media_asset",
"value": "@local.row_data.media_asset",
"_translations": {
"value": {}
},
"condition": "!!(@local.row_data.media_asset)",
"_nested_name": "media_asset",
"_dynamicFields": {
"value": [
{
"fullExpression": "@local.row_data.media_asset",
"matchedExpression": "@local.row_data.media_asset",
"type": "local",
"fieldName": "row_data"
}
],
"condition": [
{
"fullExpression": "!!(@local.row_data.media_asset)",
"matchedExpression": "@local.row_data.media_asset",
"type": "local",
"fieldName": "row_data"
}
]
},
"_dynamicDependencies": {
"@local.row_data.media_asset": [
"value",
"condition"
]
}
},
{
"type": "text",
"name": "text",
Expand Down
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config.google_drive = {

config.git = {
content_repo: "https://github.com/IDEMSInternational/pfr-app-content.git",
content_tag_latest: "1.1.16",
content_tag_latest: "1.1.17",
};

config.android = {
Expand Down
28 changes: 26 additions & 2 deletions reports/summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
{
"type": "update_action_list",
"count": 2
},
{
"type": "video",
"count": 1
}
],
"template_actions": [
Expand Down Expand Up @@ -162,8 +166,8 @@
"assets_size": [
{
"assets": "total",
"KB": "59622 KB",
"MB": "59.6 MB"
"KB": "71679 KB",
"MB": "71.7 MB"
},
{
"assets": "unused",
Expand Down Expand Up @@ -1228,16 +1232,36 @@
"count": 2,
"size_kb": 955.2
},
{
"path": "videos/aboutpfr_session1.mp4",
"count": 1,
"size_kb": 2341.8
},
{
"path": "videos/amit_session12.mp4",
"count": 1,
"size_kb": 2492.9
},
{
"path": "videos/doreen_2.mp4",
"count": 1,
"size_kb": 4061.8
},
{
"path": "videos/doreen_session14.mp4",
"count": 1,
"size_kb": 3585.4
},
{
"path": "videos/head_family8.mp4",
"count": 1,
"size_kb": 4283.4
},
{
"path": "videos/openness_session15.mp4",
"count": 1,
"size_kb": 3636.7
},
{
"path": "videos/vincent.mp4",
"count": 1,
Expand Down
7 changes: 6 additions & 1 deletion reports/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
| text_box | 6 |
| title | 24 |
| update_action_list | 2 |
| video | 1 |
</details>

<details >
Expand Down Expand Up @@ -56,7 +57,7 @@

| assets | KB | MB |
| --- | --- | --- |
| total | 59622 KB | 59.6 MB |
| total | 71679 KB | 71.7 MB |
| unused | 30561 KB | 30.6 MB |
</details>

Expand Down Expand Up @@ -326,8 +327,12 @@ Assets that are used within sheets and also can be found in the synced asset dat
| pdf/facilitator_manual/7_impact_conflict_pfr_manual_2021.pdf | 2826.2 | 2 |
| pdf/facilitator_manual/8_sharing_care_pfr_manual_2021.pdf | 1729.2 | 2 |
| pdf/facilitator_manual/9_healthy_relation_pfr_manual_2021.pdf | 955.2 | 2 |
| videos/aboutpfr_session1.mp4 | 2341.8 | 1 |
| videos/amit_session12.mp4 | 2492.9 | 1 |
| videos/doreen_2.mp4 | 4061.8 | 1 |
| videos/doreen_session14.mp4 | 3585.4 | 1 |
| videos/head_family8.mp4 | 4283.4 | 1 |
| videos/openness_session15.mp4 | 3636.7 | 1 |
| videos/vincent.mp4 | 3267 | 1 |
</details>

Expand Down

0 comments on commit 3642fb1

Please sign in to comment.