Skip to content

Commit c528ee1

Browse files
nutrinatim-schultz
andauthored
Trust bonus page + trust bonus calculations (#10816)
* if user doesn't have passport direct them to passport * Enhance calculation for gr15 trust bonus: trust bonus can decrease if user has removed stamps * Formatting code * Marking accounts that submit a passport or VC multiple times as sybil * move calculate APU to view so that it can be called synchronously from task * calculate apu after validating stamps * trust_bonus -> apu * showing apu store status as it is being created and stored * show current round * add round to document * show confetti after trust bonus is saved * Testing + bug fixing trust bonus calculation for gr15 * Committing test cases * return gr15 trust bonus * Further testing the integration of trust bonus calculation * Reworking & reorganizing code * Have created helper function that calulates the minimum APU for a user * Updates to trigger trust bonus calculation when passport is submitted and for loading it into the UI * Checking that gr15_trust_bonus exists before accessing its attributes * added refresh button * align collapsed elements * add stamp icons * return stamps from GR15 score * show authenticated stamps modal * Disable passport submit before GR15 start + display countdown * Rename calculate_apu_score = >calculate_trust_bonus * Rename calculate_apu_score = >calculate_trust_bonus <- missed 1 spot * Updating docker-compose-celery.yml Co-authored-by: schultztimothy <schultz.timothy52@gmail.com>
1 parent 866a4c3 commit c528ee1

39 files changed

+2538
-554
lines changed
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 25 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)