-
-
Notifications
You must be signed in to change notification settings - Fork 529
[WIP] Organization SMS Twilio Feature Updates Roadmap #4836
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
Closed
ShamiTomita
wants to merge
76
commits into
rubyforgood:main
from
ShamiTomita:st/4815/AddSMStoOrganizationFeaturesSection
Closed
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
76f3f4e
Twilio Accordion HTML/CSS
ShamiTomita 8a63717
add twilio_enabled boolean to casa_orgs table
ShamiTomita bdb406a
WIP JS file
ShamiTomita fd528a7
WIP frontend
ShamiTomita 878952e
WIP, next step working with persisted data
ShamiTomita 81a1ee4
form works?
ShamiTomita a7c423d
adding twilio_enabled bool to CasaOrg model#validate_twilio_credentials
ShamiTomita 770ae54
twilio checks, code comments, twilio flash notices
ShamiTomita 84f2adf
lint and casa_org factory add twilio_enabled
ShamiTomita 06d82c9
clean up on aisle casa_org.js
ShamiTomita 96ef969
Twilio redo
ShamiTomita f916f1b
lint
ShamiTomita 2622620
removed empty method
ShamiTomita 8f91448
yarn lint
ShamiTomita 8b62b53
removing debugger
ShamiTomita 9eb48ad
clean up
ShamiTomita c809fb9
sms button.js
ShamiTomita 56fa057
casa_org js
ShamiTomita 13e83cf
updates
ShamiTomita 81b0c23
lint
ShamiTomita 0462da3
Update sms.rb
ShamiTomita 3d514a0
spec updates
ShamiTomita 93f4c85
error updates
ShamiTomita e91f683
removing twilio check
ShamiTomita c4a423e
Merge branch 'main' into st/4815/AddSMStoOrganizationFeaturesSection
ShamiTomita 912c9f4
updates
ShamiTomita be2aab6
changes so far
ShamiTomita dc6cb7d
Merge branch 'st/4815/AddSMStoOrganizationFeaturesSection' of https:/…
ShamiTomita 28fb15b
changes
ShamiTomita 635fc04
changes
ShamiTomita 3247152
Merge branch 'st/4815/AddSMStoOrganizationFeaturesSection' of https:/…
ShamiTomita 0652fce
added back the return value
ShamiTomita 3dfeab6
lint and app controller spec
ShamiTomita 6857a3f
TwilioService resource to current_user
ShamiTomita e7b9336
remove unecessary code, refactor
ShamiTomita 4ac3e32
lint
ShamiTomita 85064d8
removing unnecessary complexity
ShamiTomita eff49f9
rename for sms_reactivation js file
ShamiTomita 6a52f91
password spec
ShamiTomita 609c812
lint
ShamiTomita 8d545a1
twilio service spec move
ShamiTomita 3daa15e
lint
ShamiTomita 77db3a0
remove comment
ShamiTomita e5abd7b
Delete Gemfile.lock
ShamiTomita e10cf21
remove comment
ShamiTomita a7905e5
revert to old gem file
ShamiTomita 97a1639
Merge branch 'st/4815/AddSMStoOrganizationFeaturesSection' of https:/…
ShamiTomita 2d7acc0
actual revert
ShamiTomita 3ae7afe
lint
ShamiTomita 403425e
Update Gemfile.lock
ShamiTomita 866db00
revert to old gem file
ShamiTomita 3f986d5
Merge branch 'st/4815/AddSMStoOrganizationFeaturesSection' of https:/…
ShamiTomita dfc0c7f
updates
ShamiTomita df73072
Do not use blank padding for hour display
littleforest 67c2fcf
build(deps): bump bootstrap-datepicker from 1.9.0 to 1.10.0 (#4826)
dependabot[bot] 7e51d0a
Add casa cases section without court dates to admin home page (#4798)
tonyaraujop 70cedae
Pr2 for Issue #2698 - Adds a task to backfill user preference sets. …
GALTdea 3041d23
add patch note diagrams
FireLemons 31e9a97
remove unused image
FireLemons a831c29
parent 31e9a97a2708f44731ef126845c5877cad57fba8
ShamiTomita 4bf1f91
Merge branch 'st/4815/AddSMStoOrganizationFeaturesSection' of https:/…
ShamiTomita faaf18e
Update Gemfile.lock
ShamiTomita e92b47b
Update Gemfile.lock
ShamiTomita 0e66032
flaky email export test
ShamiTomita 17f92a7
lint
ShamiTomita 59d6034
Merge branch 'main' into st/4815/AddSMStoOrganizationFeaturesSection
ShamiTomita 6023166
remove comment
ShamiTomita 95eed1a
Merge branch 'st/4815/AddSMStoOrganizationFeaturesSection' of https:/…
ShamiTomita e008b7c
notes
ShamiTomita b6ad45a
spec updates
ShamiTomita dcef4d1
controller updates
ShamiTomita 7a5e4f3
services updates
ShamiTomita a8949f0
view update
ShamiTomita 8400eb1
lint
ShamiTomita b934138
lint
ShamiTomita 877f6b5
lint
ShamiTomita File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,46 @@ | ||
| function twilioToggle () { | ||
| const phoneNumber = $('#casa_org_twilio_phone_number') | ||
| const accSid = $('#casa_org_twilio_account_sid') | ||
| const keySid = $('#casa_org_twilio_api_key_sid') | ||
| const secret = $('#casa_org_twilio_api_key_secret') | ||
|
|
||
| if ($('.accordionTwilio').is(':checked')) { | ||
| addCheckedAttr(phoneNumber) | ||
| addCheckedAttr(accSid) | ||
| addCheckedAttr(keySid) | ||
| addCheckedAttr(secret) | ||
| } else { | ||
| removeCheckedAttr(phoneNumber) | ||
| removeCheckedAttr(accSid) | ||
| removeCheckedAttr(keySid) | ||
| removeCheckedAttr(secret) | ||
| } | ||
| } | ||
|
|
||
| function addCheckedAttr (el) { | ||
| el.attr('required', true) | ||
| el.setAttribute('aria-disabled', false) | ||
| el.setAttribute('aria-required', true) | ||
| el.removeAttr('disabled') | ||
| } | ||
|
|
||
| function removeCheckedAttr (el) { | ||
| el.removeAttr('required') | ||
| el.setAttribute('aria-required', false) | ||
| el.setAttribute('aria-disabled', true) | ||
| el.attr('disabled', true) | ||
| } | ||
|
|
||
| $('document').ready(() => { | ||
| $('.accordionTwilio').attr('data-bs-toggle', 'collapse') | ||
| $('.accordionTwilio').attr('data-bs-target', '#collapseTwilio') | ||
| $('.accordionTwilio').attr('aria-expanded', 'false') | ||
|
|
||
| if ($('.accordionTwilio').is(':checked')) { | ||
| $('.accordionTwilio').attr('aria_expanded') | ||
| $('.accordionTwilio').removeClass('collapsed') | ||
| $('#collapseTwilio').addClass('show') | ||
| } | ||
|
|
||
| ($('.accordionTwilio').on('click', twilioToggle)) | ||
| }) |
This file contains hidden or 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,16 @@ | ||
|
|
||
| $('document').ready(() => { | ||
| if ($('#twilio_disabled').length) { | ||
| $('#twilio_disabled').removeClass('main-btn danger-btn-outline btn-hover btn-sm my-1') | ||
| $('#twilio_disabled').addClass('main-btn deactive-btn btn-sm my-1') | ||
| $('#twilio_tooltip').attr('data-bs-toggle', 'tooltip') | ||
| $('#twilio_tooltip').attr('data-bs-placement', 'bottom') | ||
| $('#twilio_tooltip').attr('data-turbo', 'false') | ||
| $('#twilio_tooltip').attr('title', "Twilio is not enabled for this user's CASA org") | ||
|
|
||
| $('#twilio_disabled').on('click', function (event) { | ||
| event.preventDefault() | ||
| console.log('tooltip?') | ||
| }) | ||
| } | ||
| }) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.