Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Grant to profile dashboard #3993

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

estyxx
Copy link
Member

@estyxx estyxx commented Aug 15, 2024

Why

How to test it

#3931
CleanShot 2024-08-16 at 13 43 02
CleanShot 2024-08-16 at 13 42 32
CleanShot 2024-08-16 at 13 39 07

Copy link

vercel bot commented Aug 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pycon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 9:47am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
email-templates ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 9:47am

"If you're facing financial difficulties and wish to attend PyCon Italia, our grant application form is currently open. Submit your grant request today!",
"profile.myGrant.noGrant.submitGrant": "Request a grant",
"profile.myGrant.noGrant.body.closed":
"The grant application form is currently closed. Stay tuned for future opportunities.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stay tuned for future opportunities? what does this mean?

The grant application form is now closed. Unfortunately we can't accept new applications after our deadline.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still see the old text here @estyxx

)}

<Grid cols={3} gap="small" fullWidth>
<GridColumn>
Copy link
Member

@marcoacierno marcoacierno Aug 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need the GridColumn in all those rows?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mm no apparently works also with div

year: "numeric",
});

return (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we split this into some sub-components? it is quite a big component

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the table in a separate component. Do you think it's enough? or should I split also the "next steps" section maybe? 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this component is still a bit hard to read but can't think of anything specific now without cloning the code locally and changing it a bit

"Your application is under review. No further action is needed from you at this moment.",
"profile.myGrant.status.rejected": "Rejected",
"profile.myGrant.status.rejected.nextSteps":
"Unfortunately, your grant request has been rejected due to limited funds and a high number of applications. For details, check the email we sent you.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the email contain information?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@marcoacierno marcoacierno Sep 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then can we remove that phrase from the text? maybe something like:

Unfortunately, your grant request has been rejected due to limited funds and a high number of applications. We hope you will be able to join us regardless!

@estyxx
Copy link
Member Author

estyxx commented Sep 5, 2024

The way this layout is done is that the grid is two rows instead of two columns? I think in other places (and what I think makes more sense if we don't do it weirdly) is that you have 2 columns

Not sure I understand what you meant. I had two Grids, I "merged" them...

frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
frontend/src/locale/index.ts Outdated Show resolved Hide resolved
Co-authored-by: Alessia Marcolini <98marcolini@gmail.com>
@estyxx
Copy link
Member Author

estyxx commented Sep 12, 2024

@alessiamarcolini and @marcoacierno I applied your suggestions, do you think we can merge this? can you have a final look, please? thanks

@marcoacierno marcoacierno changed the title Add Grant to profile dashboard #3931 Add Grant to profile dashboard Sep 14, 2024
@marcoacierno
Copy link
Member

@estyxx

Gender is optional and when it is missing it appears like this?

image

@@ -0,0 +1,7 @@
import { Text } from "@python-italia/pycon-styleguide";

export const Title = ({ children }: { children: React.ReactNode }) => (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this component name is way too generic

"Unfortunately, your grant request has been rejected due to limited funds and a high number of applications. For details, check the email we sent you.",
"profile.myGrant.status.approved": "Approved",
"profile.myGrant.status.approved.nextSteps":
"Your grant request is approved. We will send you an email very soon with further instructions. Check your email regularly.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your grant request has been approved! We will send you an email very soon with further instructions, please check your email regularly.

"profile.myGrant.editInfo":
"Ensure all the information provided are correct. You have until {editDeadline} to edit your information.",
"profile.myGrant.manage": "Manage",
"profile.myGrant.manage.warning": `If your plans change or you cannot attend the conference anymore, please let us know by clicking the 'Manage' button to refuse your grant or email us at {grantsEmail} as soon as possible.
Copy link
Member

@marcoacierno marcoacierno Sep 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"If your plans change or you cannot attend the conference anymore" reads weird to me, as if plans changing and cannot attend the conference are two separate things that can happen?

Also if we can avoid them contacting us via email is better, so I would advertise the path we want them to take, i.e. they should use the manage button.

I would just say:

If you cannot attend the conference anymore please let us know by using the 'Manage' button to refuse your grant as soon as possible.
Failing to notify us may impact your eligibility for financial aid in the future.

Failing to notify us may impact your eligibility for financial aid at future events.`,
"profile.myGrant.noGrant.heading": "You haven't requested a grant",
"profile.myGrant.noGrant.body.canSubmit": `If you're facing financial difficulties and wish to attend PyCon Italia, our grant application form is currently open!
Find our more information {grantInfoLink} and submit your application below.`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have a link to grant info here? The button below should redirect them to grant info, I don't see a point in having a link both in the text and the button below?

Find out more on our website below

We could even just remove this line, as we have the button that could say "Find out more"

"profile.myGrant.noGrant.body.closed":
"The grant application form is currently closed. Stay tuned for future opportunities.",
"profile.myGrant.noGrant.body.openingSoon":
"Our grant application form will open soon! Check our {grantInfoLink} for more details.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we have a link in the text here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not? to the info page, Alessia suggested

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The button below already links to it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I didn't know

"profile.myGrant.editInfo":
"Assicurati che tutte le informazioni fornite siano corrette. Hai tempo fino al {editDeadline} per modificare il tuo grant.",
"profile.myGrant.manage": "Gestisci",
"profile.myGrant.manage.warning": `Se i tuoi piani cambiano o non puoi più partecipare alla conferenza, per favore faccelo sapere cliccando sul pulsante 'Gestisci' per rifiutare il tuo grant o inviaci un'e-mail a {grantsEmail} il prima possibile.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above, "Se i tuoi piani cambiano o non puoi più partecipare alla conferenza" doesn't make sense to me

maybe let's rewrite the english one and then translate it with chatgpt?

"profile.myGrant.noGrant.body.closed":
"Il modulo per la richiesta di grant è al momento chiuso. Purtroppo non possiamo accettare nuove richieste dopo la scadenza.",
"profile.myGrant.noGrant.body.openingSoon":
"Il nostro modulo per la richiesta di grant aprirà presto! Visita la nostra {grantInfoLink} per ulteriori dettagli.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Il nostro modulo" is weird "Il form per la richiesta grant"?

Copy link
Member

@marcoacierno marcoacierno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some more feedback on the texts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In review
Status: In review
Development

Successfully merging this pull request may close these issues.

Add Grant section to Profile menu
3 participants