hedy icon indicating copy to clipboard operation
hedy copied to clipboard

💻 change calculation and phrasing of number of programs in profile page

Open Felienne opened this issue 1 year ago • 8 comments

Here is another remark from yesterday's school, in your public profile, why is there "programs created" and "programs saved", what is the difference?

image

I suspect this is legacy from when we really had a save button! IN the current state of things, where a run is a save, what does this mean?

And even more general (this is my note, not from the kids...) what does programs created mean? Should we use the new system here that @jpelay made in #5162 so we count the actual changed adventure codes (and change the label into something like "number of adventures completed" or "number of adventures tried" ?

Felienne avatar Feb 29 '24 12:02 Felienne

And even more general (this is my note, not from the kids...) what does programs created mean? Should we use the new system here that @jpelay made in #5162 so we count the actual changed adventure codes (and change the label into something like "number of adventures completed" or "number of adventures tried" ?

I like this idea! Gives more of a sense of completion I think! It'll be a little weird for kids that just use the editor to program their own thing as opposed to competing the adventures, but for students in a class I think it makes a lot of sense!

jpelay avatar Feb 29 '24 13:02 jpelay

@Felienne now 'programs saved' correspondents with the total of 'My programs', would this also mean that it's needed to implement that only a program becomes 'My program' once the adventure code is actually changed?

Annelein avatar Mar 14 '24 14:03 Annelein

Yes that sounds like a sensible idea! Because we used to have explicit save the way we did it made sense before but not anymore

On Thursday, March 14, 2024, Annelein @.***> wrote:

@Felienne https://github.com/Felienne now 'programs saved' correspondents with the total of 'My programs', would this also mean that it's needed to implement that only a program becomes 'My program' once the adventure code is actually changed?

— Reply to this email directly, view it on GitHub https://github.com/hedyorg/hedy/issues/5193#issuecomment-1997544749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHVBJLZ3SJM6MBQTAHMDRDYYGVMXAVCNFSM6AAAAABD737JH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXGU2DINZUHE . You are receiving this because you were mentioned.Message ID: @.***>

Felienne avatar Mar 14 '24 14:03 Felienne

I will implement it along with #5192

Annelein avatar Mar 14 '24 14:03 Annelein

@Felienne now 'programs saved' correspondents with the total of 'My programs', would this also mean that it's needed to implement that only a program becomes 'My program' once the adventure code is actually changed?

@jpelay is this possible with #5162 ? https://github.com/hedyorg/hedy/blob/8a2c0679c363afa3338db31fd45932993e9c6a5a/website/statistics.py#L215

Because for that function you need a program but depending on that function, you want it to be saved as a program or not.

Annelein avatar Mar 14 '24 15:03 Annelein

@Felienne now 'programs saved' correspondents with the total of 'My programs', would this also mean that it's needed to implement that only a program becomes 'My program' once the adventure code is actually changed?

@jpelay is this possible with #5162 ?

https://github.com/hedyorg/hedy/blob/8a2c0679c363afa3338db31fd45932993e9c6a5a/website/statistics.py#L215

Because for that function you need a program but depending on that function, you want it to be saved as a program or not.

I think so! It should be possible, but you'd need to pass all of the adventures and the teacher adventures that the student might have completed.

jpelay avatar Mar 14 '24 16:03 jpelay

I think so! It should be possible, but you'd need to pass all of the adventures and the teacher adventures that the student might have completed.

@jpelay and how would it work with having to pass a program, but depending on that function, you want it to be saved as a program or not. So the 'program' does not exist yet?

Annelein avatar Mar 18 '24 10:03 Annelein

@jpelay and how would it work with having to pass a program, but depending on that function, you want it to be saved as a program or not. So the 'program' does not exist yet?

I think in this case the program does exist. We would automatically save the program just as we do right now, but we'd filter the programs we show on the basis of whether they're modified or not; or even show them, but as Felienne says, instead of saying: "X programs created", display: "X adventures completed/tried", and this would be the result of iterating through the programs and then adding the ones for which is_program_modified returns true.

jpelay avatar Mar 18 '24 15:03 jpelay