-
-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds type enum to request model. * Adds request type enum to request model. * Adds request_type to request. * Adds request_type to request. * Passes request_type to FamilyRequestCreateService.new * Passes request_type to FamilyRequestCreateService.new * Passes request_type to RequestCreateService.new * Passes request_type to Request.new. * Adds hidden field in order to pass request_type param on submit. * Adds request type flag to index and show pages as well as the requests export. Adds filter by request type to index. * Adds by_request_type scope for filtering by request type. * Adds request type flag to index and show pages as well as the requests export. Adds filter by request type to index. * Adds by_request_type filter. * Updates flag names and removes flag styles based on feedback from ruby for good. * Adds test for request_type enum. * Removes unnecessary line. * Adds Type to expected_headers. * Adds request_type traits to request factory. * Adds request_type to family_request_create_service_spec args. * Adds request_type to args. * Pass request_type directly. * Remove request_type partial and enter text directly into reqest_row * Revert changes to database.yml * Revert changes to request_spec.rb * Remove request_type * Remove hidden request_type fields. * Change request_type data_type to string, replace request_type string in view to display only the first letter, pull request_type from service instead of defining with an instance var. * Remove request_type from tests * Add request_type_label method * Undo changes to versions * Add request_type_label method * Add request_type to initialize * Fix request_type bug * Fix linting * Fix request_type_label method model spec * Remove unused for_families attribute from RequestCreateService * Remove leftover print debugging statement * Fix/add specs for new request_type attribute * Revert submit button color change for family requests * Hover over request type abbreviation to see full text * Show full request type when viewing individual request * Fix linting --------- Co-authored-by: nathan <[email protected]> Co-authored-by: Nathan Thomas <[email protected]>
- Loading branch information
1 parent
56cb8cb
commit b761496
Showing
17 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddTypeToRequests < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :requests, :request_type, :string | ||
end | ||
end |
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
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
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
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
Oops, something went wrong.