-
Notifications
You must be signed in to change notification settings - Fork 6
Tailwinds conversions #425
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
Open
seanmarcia
wants to merge
74
commits into
main
Choose a base branch
from
tailwinds_conversions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,825
−1,895
Open
Changes from 49 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
aba8f9b
WIP
seanmarcia f34b00d
wip
seanmarcia d12793d
wip
seanmarcia cfcb6ab
Wip
seanmarcia 16b2189
Wip
seanmarcia b777c5b
wip
seanmarcia 316e8f4
wip
seanmarcia 5d3475c
wip
seanmarcia e791089
wip
seanmarcia 4bcbf61
Fix pagination and password reset tests after Tailwind conversion
seanmarcia ccbde42
Adjust topics search ordering and filter behavior; simplify order sel…
seanmarcia adaa276
Fix remaining topic search state/month test failures
seanmarcia 1edb1aa
Wip
seanmarcia 55d37a1
Remove unnecessary links
Oli0li 76c43a0
Fix merge conflict
Oli0li 3795fe7
Fix upload management specs
Oli0li a6811e4
Fix search spec expectations
Oli0li 1948d05
Remove duplicate gem
Oli0li 1b5061c
Fix pagination
Oli0li e9c5a4c
Fix missing closing div in Regions#index view
Oli0li 572389f
Remove purple letter on Topic list
Oli0li 51e7536
Fix alignement on Topic form
Oli0li c610c22
Merge main
Oli0li d18ea15
Fix broken svgs
Oli0li db90cd7
Fix Topic form loading button logic
Oli0li e5411cf
Style file upload interface
Oli0li 806d61d
Merge branch 'main' into tailwinds_conversions
Oli0li d3411d1
Change Topic edit form header color
Oli0li 6b90948
Use Tom Select for Topic search tag selection
Oli0li aa89d19
Fix layout on Topic form
Oli0li 92c42df
Extract repeated stylings into classes/partials
Oli0li 09ad7fd
Use full length for query field
Oli0li c4a5679
Use same dropdown styles everywhere
Oli0li 7857a2e
Merge branch 'main' into tailwinds_conversions
Oli0li 4c17b64
Use Tom Select to display provider_ids field
Oli0li 83e0b56
Only make password required for new users
Oli0li 95ad8e6
Remove unused files
Oli0li 58367a9
Only allow uploads of accepted content types
Oli0li b3774ef
Fix vulnerability warning for pagination partial
Oli0li 0fdac98
Fix password reset page
Oli0li d2dc1e0
Remove unused code for Tag form
Oli0li 15e7094
Fix tagging helper
Oli0li 93a8100
Fix topics/creation_spec
Oli0li 1d21809
Fix topics/search spec
Oli0li 1623a8e
Fix upload_management_spec
Oli0li e2822d4
Fix pagination tests
Oli0li a3db405
Fix tag update spec
Oli0li 9059a44
Fix CI issue not finding tailwind.css
Oli0li ef035af
Fix Tags#show page
Oli0li c8c2731
Merge branch 'main' into tailwinds_conversions
Oli0li cc4380d
Remove button to add new Tags from Tag index
Oli0li ae17a96
Restore bin/dev to previous state
Oli0li fb58770
Remove redundant information on Topic edit form
Oli0li 9340f0c
Change color buttons on Topic show page
Oli0li 3c9b31e
Use Tailwind classes on Topics#index
Oli0li e3acda8
Use Tailwind classes on Language#edit form
Oli0li 79a06dc
Use Tailwind classes on Languages#index
Oli0li c139d46
Use classes for gradient styles
Oli0li 57e46fb
Remove unnecessary info on Providers#edit
Oli0li 9a860f9
Merge branch 'main' into tailwinds_conversions
Oli0li b4e3d8e
Load animations as asset
Oli0li 11468a8
Simplify pagination
Oli0li bb2b240
Extract home JS into Stimulus controller
Oli0li d6f639d
Add spacing on Provider#show
Oli0li 37e159f
Refactor user views to avoid inline stylings
Oli0li 62972aa
Refactor tag views to avoid inline stylings
Oli0li 3ff2c31
Refactor topic views to avoid inline stylings
Oli0li 9f80220
Refactor region views to avoid inline stylings
Oli0li b82fb59
Refactor provider views to avoid inline stylings
Oli0li 196df31
Re-add columns that were present on Providers index
Oli0li 62f4ef5
Refactor language views to avoid inline stylings
Oli0li 08972ab
Refactor import report views to avoid inline stylings
Oli0li 64557ff
Remove redundant style and make text more readable
Oli0li f965248
Merge branch 'main' into tailwinds_conversions
Oli0li 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,3 +40,6 @@ db/structure.sql | |
| # Ignore IDE config files | ||
| .idea/ | ||
| .DS_Store | ||
|
|
||
| /app/assets/builds/* | ||
| !/app/assets/builds/.keep | ||
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 |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| web: bin/rails server -p 3000 | ||
| worker: bin/jobs -c config/queue.yml | ||
| css: bin/rails tailwindcss:watch |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,216 @@ | ||
| @import "tailwindcss"; | ||
|
|
||
| /* Tom Select Tailwind Styles */ | ||
|
|
||
| /* Hide the original select element */ | ||
| .ts-wrapper .ts-control + select, | ||
| .ts-wrapper + select { | ||
| @apply hidden; | ||
| } | ||
|
|
||
| select[data-select-tags-target="tagList"] { | ||
| @apply hidden; | ||
| } | ||
|
|
||
| .ts-wrapper { | ||
| @apply relative; | ||
| } | ||
|
|
||
| .ts-wrapper.single .ts-control, | ||
| .ts-wrapper.multi .ts-control { | ||
| @apply w-full px-3.5 py-2.5 border border-gray-300 rounded-lg text-sm bg-white transition-all duration-200; | ||
| min-height: 42px; | ||
| } | ||
|
|
||
| .ts-wrapper.multi .ts-control { | ||
| @apply flex flex-wrap items-center gap-1.5; | ||
| padding: 0.375rem 0.625rem; | ||
| } | ||
|
|
||
| .ts-wrapper .ts-control:focus-within { | ||
| @apply border-blue-500 outline-none ring-4 ring-blue-500/10; | ||
| } | ||
|
|
||
| .ts-wrapper.single .ts-control:hover:not(:focus-within), | ||
| .ts-wrapper.multi .ts-control:hover:not(:focus-within) { | ||
| @apply border-gray-400 bg-gray-50; | ||
| } | ||
|
|
||
| .ts-wrapper .ts-control > input { | ||
| @apply flex-grow outline-none bg-transparent text-sm; | ||
| min-width: 60px; | ||
| padding: 0.25rem; | ||
| } | ||
|
|
||
| .ts-wrapper .ts-control > input::placeholder { | ||
| @apply text-gray-400; | ||
| } | ||
|
|
||
| /* Selected items (tags/badges) */ | ||
| .ts-wrapper.multi .ts-control > div { | ||
| @apply inline-flex items-center gap-1.5 px-2.5 py-1 bg-blue-500 text-white text-sm rounded-md; | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .ts-wrapper.multi .ts-control > div.active { | ||
| @apply bg-blue-600; | ||
| } | ||
|
|
||
| /* Remove button */ | ||
| .ts-wrapper .ts-control .remove { | ||
| @apply inline-flex items-center justify-center ml-1 text-white/80 hover:text-white cursor-pointer; | ||
| font-size: 1.125rem; | ||
| line-height: 1; | ||
| padding: 0; | ||
| border: none; | ||
| background: none; | ||
| } | ||
|
|
||
| .ts-wrapper .ts-control .remove:hover { | ||
| @apply text-white; | ||
| } | ||
|
|
||
| /* Dropdown */ | ||
| .ts-dropdown { | ||
| @apply absolute z-50 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg overflow-hidden; | ||
| max-height: 280px; | ||
| overflow-y: auto; | ||
| } | ||
|
|
||
| .ts-dropdown .ts-dropdown-content { | ||
| @apply py-1; | ||
| } | ||
|
|
||
| /* Dropdown options */ | ||
| .ts-dropdown .option { | ||
| @apply px-3.5 py-2 text-sm text-gray-700 cursor-pointer transition-colors duration-150; | ||
| } | ||
|
|
||
| .ts-dropdown .option:hover, | ||
| .ts-dropdown .option.active { | ||
| @apply bg-blue-500 text-white; | ||
| } | ||
|
|
||
| .ts-dropdown .option.selected { | ||
| @apply hidden; | ||
| } | ||
|
|
||
| /* No results message */ | ||
| .ts-dropdown .no-results { | ||
| @apply px-3.5 py-2 text-sm text-gray-500 italic; | ||
| } | ||
|
|
||
| /* Loading state */ | ||
| .ts-wrapper.loading::after { | ||
| content: ''; | ||
| @apply absolute right-3 top-1/2 w-4 h-4 border-2 border-gray-300 border-t-blue-500 rounded-full animate-spin; | ||
| margin-top: -0.5rem; | ||
| } | ||
|
|
||
| /* Disabled state */ | ||
| .ts-wrapper.disabled .ts-control { | ||
| @apply bg-gray-100 text-gray-500 cursor-not-allowed border-gray-200; | ||
| } | ||
|
|
||
| /* Single select caret */ | ||
| .ts-wrapper.single .ts-control::after { | ||
| content: ''; | ||
| @apply absolute right-3 top-1/2 w-0 h-0; | ||
| border-left: 5px solid transparent; | ||
| border-right: 5px solid transparent; | ||
| border-top: 5px solid #6b7280; | ||
| margin-top: -2.5px; | ||
| pointer-events: none; | ||
| } | ||
|
|
||
| .ts-wrapper.single.input-active .ts-control::after { | ||
| border-top-color: #3b82f6; | ||
| } | ||
|
|
||
| /* Focus visible for accessibility */ | ||
| .ts-wrapper .ts-control:focus-visible { | ||
| @apply outline-none ring-4 ring-blue-500/10; | ||
| } | ||
|
|
||
| /* Form Styles */ | ||
| .form-label { | ||
| @apply block text-sm font-semibold text-gray-700 mb-2; | ||
| } | ||
|
|
||
| .form-input, | ||
| .form-select, | ||
| .form-textarea { | ||
| @apply w-full px-4 py-3 border-2 border-gray-200 rounded-lg text-sm transition-all duration-200 bg-gray-50; | ||
| } | ||
|
|
||
| .form-select { | ||
| appearance: none; | ||
| padding-right: 2.5rem; | ||
| } | ||
|
|
||
| .form-textarea { | ||
| @apply resize-y; | ||
| } | ||
|
|
||
| .form-input:focus, | ||
| .form-select:focus, | ||
| .form-textarea:focus { | ||
| @apply outline-none border-blue-500 ring-4 ring-blue-500/10 bg-white; | ||
| } | ||
|
|
||
| .form-input:hover:not(:focus), | ||
| .form-select:hover:not(:focus), | ||
| .form-textarea:hover:not(:focus) { | ||
| @apply border-gray-300; | ||
| } | ||
|
|
||
| .form-required { | ||
| @apply text-red-500; | ||
| } | ||
|
|
||
| .form-help-text { | ||
| @apply mt-2 text-xs text-gray-500; | ||
| } | ||
|
|
||
| .form-grid { | ||
| @apply grid gap-6; | ||
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | ||
| } | ||
|
|
||
| .form-grid-full { | ||
| grid-column: 1 / -1; | ||
| } | ||
|
|
||
| /* Alternative Input Styles (lighter borders, less padding) */ | ||
| .input-label { | ||
| @apply block text-sm font-semibold text-gray-700 mb-2; | ||
| } | ||
|
|
||
| .input-field { | ||
| @apply w-full border border-gray-300 rounded-lg text-sm transition-all duration-200 bg-white; | ||
| padding: 0.625rem 0.875rem; | ||
| } | ||
|
|
||
| .input-field:focus { | ||
| @apply outline-none border-blue-500 bg-white; | ||
| box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); | ||
| } | ||
|
|
||
| .input-field:hover:not(:focus) { | ||
| @apply border-gray-400; | ||
| } | ||
|
|
||
| .select-field { | ||
| @apply w-full border border-gray-300 rounded-lg text-sm bg-white transition-all duration-200 cursor-pointer; | ||
| padding: 0.625rem 2.5rem 0.625rem 0.875rem; | ||
| appearance: none; | ||
| } | ||
|
|
||
| .select-field:focus { | ||
| @apply outline-none border-blue-500; | ||
| box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); | ||
| } | ||
|
|
||
| .select-field:hover:not(:focus) { | ||
| @apply border-gray-400; | ||
| } |
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.