Skip to content

Commit c0ad37d

Browse files
authored
Merge pull request #2579 from tekdi/feat-direct-enroll
Feat direct enroll to prod register 13
2 parents ec0986f + 2f9cdd0 commit c0ad37d

File tree

4 files changed

+62
-4
lines changed

4 files changed

+62
-4
lines changed

apps/learner-web-app/src/app/pos/program/page.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ export default function PosPage() {
5151
'Vocational Training': TenantName.YOUTHNET,
5252
"Second Chance": TenantName.SECOND_CHANCE_PROGRAM,
5353
'Creativity Club': TenantName.CREATIVITY_CLUB,
54+
'Early Childhood Education': TenantName.EARLY_CHILDHOOD_EDUCATION,
55+
'Inclusive Education (ENABLE)': TenantName.INCLUSIVE_EDUCATION,
56+
'Elementary': TenantName.ELEMENTARY,
57+
'Annual Status of Education Report': TenantName.ANNUAL_STATUS_OF_EDUCATION_REPORT,
5458
}}
5559
_content={{
5660
contentTabs: ['content'],
@@ -63,7 +67,20 @@ export default function PosPage() {
6367
'Vocational Training':
6468
'Pratham\'s Vocational Skilling Program, launched in 2005, empowers youth from underprivileged backgrounds by equipping them with practical, job-ready skills. With a presence across India, it opens doors to employment in over 10 key sectors, supported by affiliations like NSDC. In response to changing times, the program evolved into a Hybrid Skilling model, blending digital tools with training to help young people thrive in a post-pandemic world.',
6569
"Creativity Club": `Pratham’s Creativity Club Program engages children (ages 10-14) and youth (ages 14+) across diverse domains such as STEM, visual and performing arts, environment, and sports. The program fosters essential 21st-century skills such as creativity, problem-solving, communication, and collaboration. Through its 'all-some-few' approach, the program provides tailored opportunities that match individual interests, supported by digital and social infrastructure.'`,
70+
"Early Childhood Education": `Pratham’s work with Early Childhood Education began in 1995 with balwadis in Mumbai, run by community-based volunteers. Since then, our early years interventions, focusing on holistic development and learning of children of 0-8 years, have evolved considerably through years of experimentation with different content, material, and delivery models. These programs use play-based pedagogy, local resources, low-cost and appropriate material, and involve caregivers, especially mothers.
6671
72+
Providing appropriate care and nurturing to children in their early and formative years is therefore critical for ensuring optimal growth and development. India’s New Education Policy (NEP 2020) underscores this crucial importance of Early Childhood Care and Education (ECCE) and Foundational Literacy and Numeracy (FLN). In this evolving landscape, Pratham continues to invest heavily in expanding and exploring how to impact children’s holistic development and foundational abilities during these early years. Pratham believes that building strong foundational abilities in children during their early years will make them effective learners and eliminate the need for remedial interventions in the later years.`,
73+
"Inclusive Education (ENABLE)": `(Equity in Accessing Numeracy and Basic Literacy Education) is an initiative of Pratham to strengthen inclusive care and education, with a focus on children with disabilities.
74+
Acquiring foundational skills in the early years is critical for children to be ready for future curricular expectations and to pursue lifelong learning. While all children have varying degrees of vulnerabilities, children with disabilities disproportionately face significant systemic, socio-economic, and cultural barriers, putting them at great risk of being left behind in acquiring foundational skills.
75+
Over 85% of a child’s cumulative brain development occurs before the age of six. Providing appropriate care and nurturing to children in their early and formative years is therefore critical for subsequent growth and development. A significant proportion of disabilities are preventable if developmental delays are detected early and appropriate action is taken in a timely manner.`,
76+
"Elementary": `More than 95% of 6-14 year-old children in India are enrolled in schools. However, ASER and other surveys show that a significant proportion of these children complete primary schooling without acquiring foundational reading and arithmetic skills, and therefore, are unable to cope with subsequent curricular expectations. One of Pratham’s key goals is to enable such children acquire basic reading and arithmetic skills, quickly and sustainably, so that they can meaningfully benefit from further education opportunities.
77+
78+
Pratham has developed the CAMaL pedagogy, which stands for Combined Activities for Maximised Learning, to help children “catch up”. CAMaL is a child-centered pedagogy that builds on the Teaching at the Right Level (TaRL) approach, pioneered by Pratham, that uses instructions and activities tailored and aligned to the learning level of the child.
79+
80+
81+
At Pratham, we believe that a combination of activities helps children engage and learn. For example, reading aloud, participating in discussions on what they have read or heard, activities with phonetic charts, playing a variety of word games, expressing their own views orally and on paper – are all part of the process of learning to read. We do activities with children in large groups, small groups and individually`,
82+
"Annual Status of Education Report": `ASER Centre is the measurement, assessment, and research unit of Pratham Education Foundation. The unit uses simple yet rigorous methods to generate evidence at scale on the impact of social sector programs and policies, focusing mainly on the education sector. More info: https://asercentre.org/
83+
`
6784
},
6885
},
6986
}}

apps/learner-web-app/src/components/pos/Layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ const App: React.FC<LayoutProps> = ({ children, ...props }) => {
310310
{ code: 'Vocational Training', name: TenantName.YOUTHNET },
311311
{ name: 'Second Chance', code: 'SCP' },
312312
{ name: 'Creativity Club', code: 'Creativity Club' },
313+
{ name: 'Early Childhood Education', code: 'Early Childhood Education' },
314+
{ name: 'Inclusive Education (ENABLE)', code: 'Inclusive Education (ENABLE)' },
315+
{ name: 'Elementary', code: 'Elementary' },
316+
{ name: 'Annual Status of Education Report', code: 'Annual Status of Education Report' },
313317
].map((item: any) => ({
314318
title: item?.name,
315319
to: () => {

apps/learner-web-app/src/utils/app.constant.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ export enum TenantName {
4545
PRAGYANPATH = 'Pragyanpath',
4646
CAMP_TO_CLUB = 'Camp to Club',
4747
LEARNING_AND_DEVELOPMENT ="Learning and Development",
48-
CREATIVITY_CLUB ="Creativity Club"
48+
CREATIVITY_CLUB ="Creativity Club",
49+
EARLY_CHILDHOOD_EDUCATION ="Early Childhood Education",
50+
INCLUSIVE_EDUCATION ="Inclusive Education (ENABLE)",
51+
ELEMENTARY ="Elementary",
52+
ANNUAL_STATUS_OF_EDUCATION_REPORT ="Annual Status of Education Report"
53+
4954

5055
}
5156
export enum FilterKey {

libs/shared-lib-v2/src/lib/Text/ExpandableText.tsx

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,42 @@ export const ExpandableText: React.FC<ExpandableTextProps> = memo(
9090
setIsExpanded((prev) => !prev);
9191
}, []);
9292

93+
// Function to convert URLs in text to clickable links
94+
const renderTextWithLinks = useCallback((text: string) => {
95+
if (!text) return '';
96+
97+
// Regular expression to match URLs
98+
const urlRegex = /(https?:\/\/[^\s]+)/g;
99+
const parts = text.split(urlRegex);
100+
101+
return parts.map((part, index) => {
102+
if (part.match(urlRegex)) {
103+
return (
104+
<a
105+
key={index}
106+
href={part}
107+
target="_blank"
108+
rel="noopener noreferrer"
109+
style={{
110+
color: '#1976d2',
111+
textDecoration: 'underline',
112+
cursor: 'pointer',
113+
}}
114+
onClick={(e) => e.stopPropagation()}
115+
>
116+
{part}
117+
</a>
118+
);
119+
}
120+
return part;
121+
});
122+
}, []);
123+
93124
// Determine which text to display
94125
const displayText = needsTruncation && !isExpanded ? truncatedText : text;
126+
const capitalizedText = displayText
127+
? capitalize(displayText[0]) + displayText.slice(1)
128+
: '';
95129

96130
return (
97131
<Box>
@@ -118,9 +152,7 @@ export const ExpandableText: React.FC<ExpandableTextProps> = memo(
118152
}}
119153
>
120154
<SpeakableText>
121-
{displayText
122-
? capitalize(displayText[0]) + displayText.slice(1)
123-
: ''}
155+
{renderTextWithLinks(capitalizedText)}
124156
</SpeakableText>
125157
</Typography>
126158

0 commit comments

Comments
 (0)