-
Notifications
You must be signed in to change notification settings - Fork 0
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
Juliano/op 677 add user badge #132
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
apps/govquests-api/rails_app/app/graphql/resolvers/fetch_special_badge.rb
Show resolved
Hide resolved
89877a4
to
3174a14
Compare
apps/govquests-frontend/src/domains/gamification/graphql/specialBadgeQuery.ts
Show resolved
Hide resolved
apps/govquests-frontend/src/domains/gamification/graphql/badgesQuery.ts
Outdated
Show resolved
Hide resolved
withTitle | ||
header={`BADGE #${index + 1}`} | ||
header={`${badge.badgeable.__typename} BADGE #${badge.displayData.sequenceNumber}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you trust the typename to be something readable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done some testing and I think yes, it's supposed to be either Quest or Track
apps/govquests-frontend/src/domains/action_tracking/hooks/useCompleteActionExecution.ts
Show resolved
Hide resolved
apps/govquests-api/rails_app/db/migrate/20250115203038_make_badgeable_optional_in_badges.rb
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking this until apps/govquests-api/rails_app/db/migrate/20250115203038_make_badgeable_optional_in_badges.rb
is resolved is resolved
apps/govquests-api/rails_app/app/read_models/questing/user_track_read_model.rb
Show resolved
Hide resolved
apps/govquests-api/rails_app/app/read_models/questing/on_track_created.rb
Show resolved
Hide resolved
apps/govquests-api/rails_app/app/read_models/gamification/user_badge_read_model.rb
Outdated
Show resolved
Hide resolved
apps/govquests-api/rails_app/app/read_models/gamification/user_badge_read_model.rb
Show resolved
Hide resolved
validates :display_data, presence: true | ||
validates :badge_type, presence: true | ||
validates :badge_data, presence: true | ||
validates :points, presence: true, numericality: {only_integer: true, greater_than_or_equal_to: 0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remind me -- users will get these after satisfying a set of requirements, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I'm creating something related to this on #138
Implemented:
Not implemented:
Preview:
Screen.Recording.2025-01-16.at.18.24.56.mov