Michael Kohl
f11e7b49d4
Remove check_box type from profile fields ( #14832 )
...
* Remove check_box type from profile fields
* Fix profile field spec
* Delete emphasized_comments_experiment.rb
This file was not supposed to be part of this PR
2021-09-30 13:27:39 -04:00
Michael Kohl
521f1d26bc
Upgrade to Ruby 3.0.2 ( #12103 )
...
Co-authored-by: rhymes <rhymes@hey.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2021-08-25 14:26:33 -04:00
Michael Kohl
1ebec4b67f
Remove hardcoded user profile fields ( #14079 )
...
* Remove duplicated work display from header
* Update work profile field handling
* Update DUS + spec
* Delegate more carefully
* Update delegation guard
* Adapt for removed delegation
* Undo accidental schema changes
* Fix seeds
* Remove accidentaly change
* Fix User#processed_website_url
* Update guard clause
* Update profile card content
* Add Organization#profile
* Be more conservative with profile fields
* Spec fixes round 1
* Fix typo
* Update spec
* Limit number of header fields and update card content
* Decorate correct model
* Update factory
* Update schema.rb
* Fix validation
* How bad could this possibly be?
* Pretty bad, nevermind
* Remove obsolete code
* Reset profile fields during test runs
* Move profile fields back to before(:suite)
* Spec fixes
* Remove accidentally re-added files
* More spec fixes
* Specs
* Change User#tag_keywords_for_search
* More spec fixes
* Add comment
* Undo accidental schema changes
* Attempt spec fix
* Remove fix attempt
* Fix e2e test
* Update spec
* Remove guard clause
* Remove hardcoded instances of education field
* WIP Access display_email_on_profile via User Settings
* Remove unused profile column
* WIP fix issues revealed by systems specs
* WIP fix issues revealed by services specs
* WIP Fix failing tests
* WIP Fix spec failures
* wip
* Move two attributes from controller to decorator
* Update comment
* More consistently use user.tag_line
Even before the profile changes we sometimes used the user.summary
attribute directly but used the user.tag_line method in other places.
* Remove education
* Add comment
* WIP
* Clean up mostly_work_with
* WIP
* Update work profile field handling
* More work-related changes
* Remove settings_only from display_area enum
* Remove quickfix from _metadata partial
* Remove special attributes
* Remove leftover spec
* Retrieve location from profile, not user
* Profile.special_attributes no longer exists
* Update specs
* More spec fixes
* Update UsersController
* Update UsersController and spec
* Fix e2e seeds
* Minor cleanup
* More e2e seed fixes
* Fix profile field CSV
* Fix e2e seeds
* Move one more attribute in e2e seeds
* Remove duplicate line
* Clear inputs before typing in them
Co-authored-by: Jacob Herrington <jacobherringtondeveloper@gmail.com>
2021-08-18 11:44:53 +07:00
Michael Kohl
43ccdb31f1
Remove duplicated work display from header / profile work ( #14210 )
...
* Remove duplicated work display from header
* Update work profile field handling
* Update DUS + spec
* Delegate more carefully
* Update delegation guard
* Adapt for removed delegation
* Undo accidental schema changes
* Fix seeds
* Remove accidentaly change
* Fix User#processed_website_url
* Update guard clause
* Update profile card content
* Add Organization#profile
* Be more conservative with profile fields
* Spec fixes round 1
* Fix typo
* Update spec
* Limit number of header fields and update card content
* Decorate correct model
* Update factory
* Update schema.rb
* Fix validation
* How bad could this possibly be?
* Pretty bad, nevermind
* Remove obsolete code
* Reset profile fields during test runs
* Move profile fields back to before(:suite)
* Spec fixes
* Remove accidentally re-added files
* More spec fixes
* Specs
* Change User#tag_keywords_for_search
* More spec fixes
* Add comment
* Undo accidental schema changes
* Attempt spec fix
* Remove fix attempt
* Fix e2e test
* Update spec
* Remove guard clause
* Remove outdated guard clause
* Re-add validation
* Update header field validation
* Fix auto-complete fail
2021-07-30 12:28:40 +02:00
Michael Kohl
dc27f597fb
Remove CustomProfileField ( #14286 )
...
* Remove custom profile fields
* Update profile model
* Fix specs, more cleanup
* Remove no longer valid validation
* Update spec
* Update search serializer spec
* Update migration
2021-07-22 10:05:39 +07:00
Michael Kohl
84a85fe1a4
Remove color_field input type from profiles ( #14239 )
...
* Move brand color validation to Users::Setting
* Fix specs
* Remove color_field as ProfileField input type
2021-07-19 18:42:36 +07:00
Michael Kohl
d64943958d
Prepare for profile column drop ( #11246 )
...
* Add new display area for settings only fields
* Update CSV importer
* Prepare for dropping profile columns from user
* Update spec
* Don't migrate nil values
* Update spec
* Update forem:setup task
2020-11-09 10:17:39 +07: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
Michael Kohl
4ae59b56e3
Add custom profile fields ( #10202 )
...
* Add custom_profile_fields table
* Add CustomProfileField model and refactor
* Remove trailing whitespace
* Stop ignoring removed column
* Add explanatory comment
* Update service object
* Fix bug in service object
* Refactor and fix specs
* Increase limit from 3 to 5
* Update comment to reflect code changes
2020-09-09 14:37:15 +00:00
Michael Kohl
cfe288d8cc
[deploy] Start ignoring group column for profile fields ( #10045 )
...
* Start ignoring group column for profile fields
* Fix specs
Co-authored-by: mstruve <mollylbs@gmail.com>
2020-08-31 10:16:37 +07:00
Michael Kohl
161ed7d55e
[deploy] Introduce ProfileFieldGroup model ( #10007 )
...
* Introduce ProfileFieldGroup model
* Make profile_fields_groups name column unique
* Fix some specs
* feat: allow the page to work again
* Add guard clause to data update script
* Remove unused file
* Fix specs
* Add foreign key
Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2020-08-28 10:51:33 +07:00
Ridhwana
b0bacf60fb
Profile Fields Admin UI v2 ( #9830 )
...
* feat: add a select and a new text field
* feat: groups need to be unique and present
* feat: make the ui a little better
* chore: update the label
* chore: just present
* feat: add some js ( still a work in progress)
* feat: update the interface to work better :)
* chore: indent
* feat: make sure the toggles work
* chore: rename more aptly
* refactor: toggling pulled out into two functions
* refactor: move group form to a partial so that we can reuse it
* chore: move the js to the group form
* chore: update alignment and nav element
* chore: update text
* chore: update specs
2020-08-25 17:39:12 +02:00
Michael Kohl
1f66056f28
[deploy] Stop using ProfileField#active Part 2 ( #9911 )
...
* Remove ProfileField#active
* Add schema.rb
2020-08-24 13:13:51 +07:00
Michael Kohl
5e59f7b79d
[deploy] Stop using ProfileField#active Part 1 ( #9910 )
...
* Stop using ProfileField#active
* Fix specs
2020-08-24 11:55:53 +07:00
Michael Kohl
b318b0a139
Add display columns to ProfileField ( #9886 )
...
Co-authored-by: rhymes <rhymes@hey.com>
2020-08-21 10:25:54 +07:00
Michael Kohl
2b3242087c
[deploy] Start using profile model ( #9724 )
...
* Persist attribute_name for profile fields
* Update fields
* Add temporary Rake task for creating profile fields
* Update specs
* Fix problems after splitting branch
2020-08-17 09:57:50 +07:00
Michael Kohl
2555de8a5f
Add profile model ( #9648 )
...
* Create profiles table
* Add store_attribute gem
* Add profile model
* Add default value to data column
* Add and update factories
* Add cascading delete
* Make field non-nullable
* Add specs
* Fix cascading delete for profiles
2020-08-11 10:15:22 +07:00
Ridhwana
a191fd2ca7
[deploy] Profile Admin UI Setup Screen Refactor (v1.5) ( #9649 )
...
* implement some suggestions from https://github.com/forem/forem/pull/9610
* chore: update the errors based on suggestions
* feat: make query readable on blazer
2020-08-07 17:35:18 -04:00
Ridhwana
fc86c30790
Profile Admin UI Setup Screen (v1) ( #9610 )
...
* Add ProfileField model
* Fix schema.rb
* Add service objects for base and link fields
* feat: show an index of profile fields and allow them to be edited
* Fix schema.rb
* Add service objects for base and link fields
* Add link fields to seeds
* Make placeholder a keyword argument
* Add work fields
* Add explanation column to profile fields
* Add coding fields
* Switch from inheritance to mixin
* Add email checkbox to base fields
* Add branding fields
* Add spec for ProfileFields::FieldDefinition
* chore: moved the migration file
* feat: add a create and destroy route
* feat: render a partial form
* fix: oops form instead of f
* Move migration back into correct location
* Rename column from explanation to description
* Rename attribute in mixin
* chore: update classed for buttons
* chore: rename from explanation to description
* chore: explanation to description
* chore: new profie field
* fix: only one submit button per form
* fix: update the form
* fix: remove files that got merged mistakenly
* chore: finally, some specs...
Co-authored-by: Michael Kohl <citizen428@dev.to>
2020-08-06 09:26:17 +02:00
Michael Kohl
e9bbcbb789
[deploy] Add ProfileField model ( #9580 )
...
* Add ProfileField model
* Fix schema.rb
* Fix schema.rb again
* Fix validation
2020-08-03 16:16:50 -04:00