Philip How
3ceb9a178a
Allow some badges to be awarded multiple times ( #20876 )
...
* Add migration, update badgeachievements model and admin view to set flag on badges
* Show multiple badges on profile
* update factory
* badge model validation
* safe navigation to badge?
* add null: false to migratrion
2024-04-23 16:33:43 -04:00
Mac Siri
071d874c33
Add back Badge#path ( #18471 )
...
* Add back Badge#path
* Update app/models/badge.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-09-20 09:01:29 -04:00
Rajat Talesra
5559067e34
Revert "Revert "Entire profile badge redesign" & "Badges page redesign" ( #18446 )" ( #18447 )
...
This reverts commit d7f70eb85b .
2022-09-13 22:06:37 +05:30
Rajat Talesra
d7f70eb85b
Revert "Entire profile badge redesign" & "Badges page redesign" ( #18446 )
...
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2022-09-13 11:39:46 -04:00
Rajat Talesra
f1176900f0
Badges page redesign ( #18419 )
...
* Badges homepage redesign
* badges.scss
* Attempt at solving badge ci check
* Added badge prompt
* Merged with main
* Removed /badge/.. related code
* Revert removing badge page
* Fixed Safari design issue
* Removed not-requried css property
* Trying to remove /badge/
* Updated profile badges
* Fixed userprofile badge
* Accessibility changes + removed failed tests
* Tests passed
2022-09-13 03:07:59 +05:30
Alex
d109b6824e
Refactor cache purging ( #12811 )
...
* Refactor caching
* Bring back old bust class
* Refactor with PR feedback
* Remove useless return values
2021-03-02 10:09:05 -05:00
Alex
f70af66258
Update bust to EdgeCache::Bust ( #12052 )
...
* Update bust to EdgeCache::Bust
* Update specs
* Fix more specs
* Fix more specs :)
2020-12-29 09:53:15 +01:00
Michael Kohl
63cf95d811
Split BadgeRewarder into multiple services ( #11902 )
2020-12-23 09:55:06 -05:00
rhymes
10efa25c0a
Add missing presence validators to models ( #10495 )
...
* Add missing presence validator for Tag
* Add missing presence validators to Follow
* Add missing presence validators to ProfileField
* Add missing presence validators to Comment
* Add missing presence validators to Profile
* Add missing presence validators to Organization
* Add missing presence validators to Badge
* Add missing presence validators to Webhook::Endpoint
* Add missing presence validators to NotificationSubscription
* Add missing presence validators to PodcastEpisode
* Add missing presence validators to Sponsorship
* Add missing presence validators to PollOption
* Add missing presence validators to Poll
* Add missing presence validators to Article
* Add missing presence validators to EmailAuthorization
* Add missing presence validators to AuditLog
* Add missing presence validators to DataUpdateScript
* Add missing presence validators to User
* Add missing presence validators to SiteConfig
* Fix specs
2020-10-01 16:15:32 +02:00
rhymes
864b13b9ab
[deploy] Rubocop: fix Rails/HasManyOrHasOneDependent for Ahoy::Visit and Badge ( #9565 )
...
* Fix Layout/EmptyLines
* Fix Rails/HasManyOrHasOneDependent for Ahoy::Visit
* Fix Rails/HasManyOrHasOneDependent for Badge
2020-07-31 11:43:50 -04:00
Mac Siri
16d57a30a9
[deploy] Resoucify Page and Badge models ( #9083 )
...
* Resourcify Badge
* Resourcify Page
2020-07-06 17:17:25 -04:00
rhymes
e97d2ccf63
[deploy] Improve badge slug generation ( #7386 )
...
* Fix badge generation and add tests
* Add unique index to badges slug
2020-04-20 15:47:44 +02:00
Michael Kohl
b57ced5466
CacheBuster refactoring ( #4766 )
...
* Turn CacheBuster into a module
This class used no internal state, so repeatedly creating short-lived objects seems wasteful.
* Consistently use string interpolation and parenthesis
* Destructure arrays into meaningful names, formatting
* Fix request spec for internal classified listings controller
Interestingly this works when asserting directly on the module, but not on a double.
Asserting directly in the module seems sufficient for this test so the indirection
was removed.
* Turn CacheBuster into a module
This class used no internal state, so repeatedly creating short-lived objects seems wasteful.
* Fix specs after rebasing
2019-11-13 10:51:23 -05:00
Ben Halpern
b731df44ca
Add badges to key tags ( #3074 )
...
* Add badges to key tags
* Adjust vertical-align
* Fix YouTube tag mistake and refactor map to pluck
2019-06-07 19:09:43 -04:00
Lito
2ebd37aba2
Improved article slug generation ( #2218 )
...
* Improved article slug generation
Ruby on Rails has a built-in slug generator since Rails 2.2
This generator fix the slug generation when non english characters are used on title improving SEO. For example: https://dev.to/lito_ordes/redimensionando-imgenes-en-tiempo-de-ejecucin-con-packer-57c6
* Ruby on Rails has a built-in slug generator since Rails 2.2
This generator fix the slug generation when non english characters are used on title improving SEO. For example: https://dev.to/lito_ordes/redimensionando-imgenes-en-tiempo-de-ejecucin-con-packer-57c6
* Ruby on Rails has a built-in slug generator since Rails 2.2
This generator fix the slug generation when non english characters are used on title improving SEO. For example: https://dev.to/lito_ordes/redimensionando-imgenes-en-tiempo-de-ejecucin-con-packer-57c6
* Ruby on Rails has a built-in slug generator since Rails 2.2
This generator fix the slug generation when non english characters are used on title improving SEO. For example: https://dev.to/lito_ordes/redimensionando-imgenes-en-tiempo-de-ejecucin-con-packer-57c6
* Ruby on Rails has a built-in slug generator since Rails 2.2
This generator fix the slug generation when non english characters are used on title improving SEO. For example: https://dev.to/lito_ordes/redimensionando-imgenes-en-tiempo-de-ejecucin-con-packer-57c6
* Fix downcase transform on event model
2019-03-26 13:39:35 -04:00
Arun Kumar
876c70d2bb
Minimize creation of CacheBuster objects ( #599 )
2018-07-24 10:30:30 -07:00
Ben Halpern
db87b02e2e
Modify badge page styling and add caching ( #336 )
2018-05-21 18:38:23 -04:00
Ben Halpern
f073eb5754
Add badges and org cta ( #324 )
...
* Make org proof a required field
* Fix color picker and other minor org adjustments
* Add MVP of org add'l sidebar
* Add proof to org factory
* Fix org create action and fix tests
* Add new org fields to admin panel & lint
* Add proof to org edit for backward compatibility
* Add org info to edit preview
* Move preview edit notice to inside article div
* MVP of badge "final" steps
* Add info to user sidebar and clean up badge commit
* Modify sidebar for data
* Add organization decorator
* Add conditional so only users have new swipe nav, not orgs
* Add cloudinary prefix to badges
* Disallow duplicate badges
2018-05-17 18:22:37 -04:00
Mac Siri
1663e7e2c8
Implement Badge & BadgeAchievement model ( #273 )
...
* Create migration for Badge & BadgeAchievement
* Create Badge model with spec & BadgeUploader
* Create BadgeAchievement with spec
* Add badges & badge_achievements assoc to User
* Fix typo
* Clean up BadgeUploader
* Remove storage config & Fix lint
* Add allow-duplicate-badge spec
2018-05-07 13:35:16 -04:00