From db2aa0629844af9a09e1a716a10ccfe9d636e800 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Sat, 23 Mar 2024 11:43:58 +0100 Subject: [PATCH 1/4] fix: update telegram username of Nicolas Facchin and Elia Maggioni --- src/utils/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index fe1ae5c..8403ac9 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -115,11 +115,11 @@ export const members: Member[] = [ }, { name: 'Nicolas Facchin', - tg: 'SuperRollyNoka' + tg: 'Noka_la_Foka' }, { name: 'Elia Maggioni', - tg: 'EliaMaggioni', + tg: 'maggelia', ah: true }, { From 6d19b7903adba1cc486facb0e4fc093ade34bfd8 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Sat, 23 Mar 2024 12:03:45 +0100 Subject: [PATCH 2/4] feat(About): change project description --- src/locales/en.json | 2 +- src/locales/it.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index bd3f30b..d0d40ac 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -15,7 +15,7 @@ "dsaInfo": "Students with Specific Learning Disorders (SLD) taking the TOL are eligible for an additional 30 percent time, provided they disclose it when registering for the test. A certification stating the SLD diagnosis is also required. Selecting \"Student with SLD\" will apply the bonus time in this simulation as well." }, "about": { - "main": "In order to be admitted to the Engineering school of Politecnico di Milano (PoliMi), the aspiring freshmen must pass the admission test (TOL).
Among the resources that PoliMi offers for free to prepare, you can find: the Politest, a collection of commented and solved exercises, the DOL, an online demo with a limited number of questions, and two complete self-assessment tests (pdf with questions, xls with exact answers).

Thus, we did not have a complete, web-based TOL simulation, that is, in the same environment in which the future freshmen will take the admission test.
We have set ourself the goal of creating a complete and free TOL simulation, in order to provide aspiring freshmen with a familiar environment in which to practice, very similar to the one they will encounter at the admission test.
The project is fully managed by students, from developing the web application to creating the TOL questions.", + "main": "We have developed a comprehensive, open source and free TOL simulator to provide aspiring Engineering freshmen with a familiar environment in which to practice, very similar to what they will encounter on the official admission test of Politecnico di Milano.

It is the only one fully compliant with the TOL training requirements of the Politecnico di Milano and completely managed by students, from the development of the web application to the creation of the TOL questions.", "projectTeam": "Project team", "supportGroups": { "head": "Support groups", diff --git a/src/locales/it.json b/src/locales/it.json index 07527b9..5d377a7 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -15,7 +15,7 @@ "dsaInfo": "Gli studenti con Disturbi Specifici dell'Apprendimento (DSA) che affrontano il TOL possono usufruire di un tempo supplementare pari al 30%, previa segnalazione in fase di iscrizione al test. È inoltre richiesta una certificazione attestante la diagnosi di DSA. Selezionando \"Studente con DSA\" verrà applicato il tempo bonus in questa simulazione." }, "about": { - "main": "Per poter essere ammessi alla scuola di Ingegneria del Politecnico di Milano (PoliMi), le aspiranti matricole devono superare il test di ammissione (TOL).
Tra le risorse che il PoliMi offre gratuitamente per prepararsi abbiamo: il Politest, una raccolta di esercizi commentati e risolti, la DOL, una demo online con un numero ridotto di domande, e due test di autovalutazione completi (pdf con domande, xls con risposte esatte).

Non avevamo dunque una simulazione TOL completa e basata sul web, ovvero nello stesso ambiente in cui le future matricole sosterranno il test di ammissione.
Ci siamo posti l'obiettivo di creare una simulazione TOL completa e gratuita, al fine di fornire alle aspiranti matricole un ambiente familiare dove esercitarsi, molto simile a quello che incontreranno al test di ammissione.
Il progetto è completamente gestito dagli studenti, dallo sviluppo dell'applicazione web alla creazione delle domande TOL. ", + "main": "Abbiamo sviluppato un simulatore TOL completo, open source e gratuito per fornire alle aspiranti matricole di Ingegneria un ambiente familiare in cui esercitarsi, molto simile a quello che incontreranno al test di ammissione ufficiale del Politecnico di Milano.

È l'unico totalmente conforme ai requisiti formativi del TOL del Politecnico di Milano e completamente gestito da studenti, dallo sviluppo dell'applicazione web alla creazione dei quesiti TOL.", "projectTeam": "Team del progetto", "supportGroups": { "head": "Gruppi di supporto", From ae64a2d22f1bcad18f7e85cc48775de9cc72e9fc Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Sat, 23 Mar 2024 12:28:13 +0100 Subject: [PATCH 3/4] feat(About): implement project members roles --- src/components/pages/About.tsx | 72 ++++++++++++++++------------------ src/locales/en.json | 7 +++- src/locales/it.json | 7 +++- src/utils/constants.ts | 49 ++++++++++++++++------- 4 files changed, 80 insertions(+), 55 deletions(-) diff --git a/src/components/pages/About.tsx b/src/components/pages/About.tsx index 9d1f70e..496783e 100644 --- a/src/components/pages/About.tsx +++ b/src/components/pages/About.tsx @@ -1,4 +1,9 @@ -import { links, members } from '../../utils/constants' +import { + MemberRole, + MemberRoleKeys, + links, + members +} from '../../utils/constants' import { StyleSheet, theme } from '../../utils/style' import telegramLogo from '../../static/telegram_logo.svg' import Wrapper from '../Util/Wrapper' @@ -25,6 +30,11 @@ const styles = StyleSheet.create({ alignItems: 'flex-start', height: '100%', gap: 10, + textAlign: 'left', + flex: 1 + }, + fullWidth: { + width: '100%', textAlign: 'left' }, link: { @@ -64,13 +74,23 @@ export default function About() {

- + +
- - + +
+
+ +
) } @@ -83,49 +103,25 @@ function TgLogo() { ) } -function ProjectTeam() { - const { t } = useTranslation() - const team = members - .filter((m) => !m.ah) - .sort((a, b) => (a.name.toUpperCase() > b.name.toUpperCase() ? 1 : -1)) - - return ( -
- {t('about.projectTeam')} -
    - {team.map((m, i) => ( -
  • -

    - {(m.prefix || '') + ' ' + m.name}{' '} - - - -

    -
  • - ))} -
-
- ) +interface MembersByRoleProps { + role: MemberRoleKeys + titleKey: string } -function AdHoc() { - const ah = members - .filter((m) => !!m.ah) +function MembersByRole({ role, titleKey }: MembersByRoleProps) { + const { t } = useTranslation() + const filteredByRole = members + .filter((m) => m.roles.includes(role)) .sort((a, b) => (a.name.toUpperCase() > b.name.toUpperCase() ? 1 : -1)) return (
- Ad hoc + {t(titleKey)}