-
Notifications
You must be signed in to change notification settings - Fork 9
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
update users migration to make :work col json #1125
Merged
camillevilla
merged 19 commits into
user-public-bio-feature-branch
from
dm-5089-dynamic-user-work-field
Nov 20, 2024
Merged
update users migration to make :work col json #1125
camillevilla
merged 19 commits into
user-public-bio-feature-branch
from
dm-5089-dynamic-user-work-field
Nov 20, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adds #work method that returns values of work entries adds validation method #validate_work_links to detect invalid links and store with proper protocol
…e w/ arrow functions
redundant as per User model validation callback for the col
adds disable_with: false to submit button
4e0bb77
to
5b5a06e
Compare
camillevilla
approved these changes
Nov 20, 2024
camillevilla
pushed a commit
that referenced
this pull request
Nov 20, 2024
* update users migration to make :work col json * update users profile partial to expect new json datatype for :work attribute * update user profile js to add logic for dynamic work link management * update UsersController to handle changes to user's :work attribute * update User model adds #work method that returns values of work entries adds validation method #validate_work_links to detect invalid links and store with proper protocol * update user bio page to list user's work links as hyperlinks * add feature and unit specs for user work management and display * update user profile form work fields to include placeholder texts * update schema with new json data type for :work col on users table * update styling of "work" section in user's edit_profile partial * refactor user_profile_utilities js to use modern class-based structure w/ arrow functions * remove avatar cropping logic from UsersController * remove UsersController#sanitize_work_links redundant as per User model validation callback for the col * update User#validate_work_links to use html_escape to sanitize links * update User bio partial to utilize work link for display if text not present * add before_validate method to User model to clear empty work values * update edit_profile partial adds disable_with: false to submit button * update user_profile_utilities js to validate work text fields upon form submission * update "Add" button for work entries in user profile form to use kebab case
PhilipDeFraties
added a commit
that referenced
this pull request
Nov 21, 2024
* update users migration to make :work col json * update users profile partial to expect new json datatype for :work attribute * update user profile js to add logic for dynamic work link management * update UsersController to handle changes to user's :work attribute * update User model adds #work method that returns values of work entries adds validation method #validate_work_links to detect invalid links and store with proper protocol * update user bio page to list user's work links as hyperlinks * add feature and unit specs for user work management and display * update user profile form work fields to include placeholder texts * update schema with new json data type for :work col on users table * update styling of "work" section in user's edit_profile partial * refactor user_profile_utilities js to use modern class-based structure w/ arrow functions * remove avatar cropping logic from UsersController * remove UsersController#sanitize_work_links redundant as per User model validation callback for the col * update User#validate_work_links to use html_escape to sanitize links * update User bio partial to utilize work link for display if text not present * add before_validate method to User model to clear empty work values * update edit_profile partial adds disable_with: false to submit button * update user_profile_utilities js to validate work text fields upon form submission * update "Add" button for work entries in user profile form to use kebab case
camillevilla
pushed a commit
that referenced
this pull request
Nov 28, 2024
* update users migration to make :work col json * update users profile partial to expect new json datatype for :work attribute * update user profile js to add logic for dynamic work link management * update UsersController to handle changes to user's :work attribute * update User model adds #work method that returns values of work entries adds validation method #validate_work_links to detect invalid links and store with proper protocol * update user bio page to list user's work links as hyperlinks * add feature and unit specs for user work management and display * update user profile form work fields to include placeholder texts * update schema with new json data type for :work col on users table * update styling of "work" section in user's edit_profile partial * refactor user_profile_utilities js to use modern class-based structure w/ arrow functions * remove avatar cropping logic from UsersController * remove UsersController#sanitize_work_links redundant as per User model validation callback for the col * update User#validate_work_links to use html_escape to sanitize links * update User bio partial to utilize work link for display if text not present * add before_validate method to User model to clear empty work values * update edit_profile partial adds disable_with: false to submit button * update user_profile_utilities js to validate work text fields upon form submission * update "Add" button for work entries in user profile form to use kebab case
PhilipDeFraties
added a commit
that referenced
this pull request
Dec 2, 2024
* update users migration to make :work col json * update users profile partial to expect new json datatype for :work attribute * update user profile js to add logic for dynamic work link management * update UsersController to handle changes to user's :work attribute * update User model adds #work method that returns values of work entries adds validation method #validate_work_links to detect invalid links and store with proper protocol * update user bio page to list user's work links as hyperlinks * add feature and unit specs for user work management and display * update user profile form work fields to include placeholder texts * update schema with new json data type for :work col on users table * update styling of "work" section in user's edit_profile partial * refactor user_profile_utilities js to use modern class-based structure w/ arrow functions * remove avatar cropping logic from UsersController * remove UsersController#sanitize_work_links redundant as per User model validation callback for the col * update User#validate_work_links to use html_escape to sanitize links * update User bio partial to utilize work link for display if text not present * add before_validate method to User model to clear empty work values * update edit_profile partial adds disable_with: false to submit button * update user_profile_utilities js to validate work text fields upon form submission * update "Add" button for work entries in user profile form to use kebab case
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA issue link
https://agile6.atlassian.net/browse/DM-5338
Description - what does this code do?
Adds logic and updates views to allow for management and display of users'
work
entries as hyperlinksTesting done - how did you test it/steps on how can another person can test it
granted_public_bio: true
, nav to/edit-profile
Screenshots, Gifs, Videos from application (if applicable)
Link to mock-ups/mock ups (image file if you have it) (if applicable)
Acceptance criteria
Definition of done