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 new fields and sections to the Program detail page #2557

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sandroscosta
Copy link
Collaborator

@sandroscosta sandroscosta commented Dec 11, 2024

Add effort, duration, price, team, objectives and other optional fields.

Purpose

As described in #2556, this PR adds new fields to the programs page and information disposition, much closer to the course detail template.
This allows for a better grasp on all the information related to the program.

image

@sandroscosta sandroscosta self-assigned this Dec 11, 2024
@sandroscosta
Copy link
Collaborator Author

Hi @jbpenrath, can you give me some feedback on this or assign someone to help me review this and improve it?

@sandroscosta sandroscosta marked this pull request as draft December 11, 2024 12:52
@sandroscosta
Copy link
Collaborator Author

There are a couple of tasks not yet complete or dependent on other NAU teams PR, like the currency type, that should be a setting and not an hardcoded value.

Copy link
Member

@jbpenrath jbpenrath left a comment

Choose a reason for hiding this comment

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

Just an overall question. Instead of adding pace, effort, duration, instructors, etc. what do you think to aggregate those information for the related courses ?

@sandroscosta
Copy link
Collaborator Author

Just an overall question. Instead of adding pace, effort, duration, instructors, etc. what do you think to aggregate those information for the related courses ?

So your idea is to aggregate this information via courses without creating new manual fields. Do you think it would make sense to be able to manually override? I'm just trying to cover all the bases, due to the different typologies of programs we can have.

@jbpenrath
Copy link
Member

jbpenrath commented Dec 17, 2024

Just an overall question. Instead of adding pace, effort, duration, instructors, etc. what do you think to aggregate those information for the related courses ?

So your idea is to aggregate this information via courses without creating new manual fields. Do you think it would make sense to be able to manually override? I'm just trying to cover all the bases, due to the different typologies of programs we can have.

It depends to your need. Concerning Editor UX and data consistency, It looks great to aggregate those data from related courses but if you know that those information will need to be overridden, I think your current implementation fullfil the need, is simpler so that's the best.

Comment on lines +486 to +487
checkmark-list-decoration: url('../../richie/images/components/checkmark.svg'),
checkmark-list-decoration-color: r-color('indianred3'),
Copy link
Member

Choose a reason for hiding this comment

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

You should add an entry in the UPGRADE.md document to mention that if someone has override the program-detail map it must also declare those 2 new properties.

Copy link
Member

Choose a reason for hiding this comment

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

Be careful before merging that you don't need to regenerate this migration. e.g: If @Tiago-Salles merge its PR before you
https://github.com/openfun/richie/pull/2549/files

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I talked to @Tiago-Salles about this. I'll do a commit to correct everything.

@sandroscosta sandroscosta marked this pull request as ready for review February 25, 2025 14:56
@sandroscosta sandroscosta force-pushed the sandroscosta/programs-page branch from f5529b8 to 3d997c8 Compare February 26, 2025 14:35
Add effort, duration, price, team, objectives and other optional fields.
@sandroscosta sandroscosta force-pushed the sandroscosta/programs-page branch from 3d997c8 to 4895556 Compare February 27, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants