-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support of Stimulus change
action for Tramway Multiselect
#86
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5099aa1
Add stimulus `change` action
kalashnikovisme f250355
Fix getting external action
kalashnikovisme d5dc15b
Updates
kalashnikovisme 408cf53
Writing tests
kalashnikovisme 156eb4b
Many updates for tests
kalashnikovisme 4b9f0e3
onChange works!
kalashnikovisme 90b1cc8
Multiselect onchange stimulus works
kalashnikovisme ff426b8
Update README.md
kalashnikovisme cd88862
Remove sqlite from the main Gemfile
kalashnikovisme e2d2595
Fix tailwind classes
kalashnikovisme fc05e76
Update nav padding
kalashnikovisme cde1559
Send target with onChange
kalashnikovisme ad5f389
Fix setting selected value
kalashnikovisme 971c950
Fix tailwind styles
kalashnikovisme a424c00
Revert "Fix tailwind styles"
kalashnikovisme 3c67862
Fix pagination styles
kalashnikovisme 5f8f591
Updates to appraisal
kalashnikovisme c86ebfe
Fix showing empty collection
kalashnikovisme f8009d0
Fix tests
kalashnikovisme ab16abc
Rubocop fixes
kalashnikovisme 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 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
11 changes: 9 additions & 2 deletions
11
app/components/tailwinds/pagination/first_page_component.html.haml
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
- unless current_page.first? | ||
= link_to helpers.t('views.pagination.first').html_safe, url, remote:, class: pagination_classes(klass: 'first hidden sm:flex') | ||
= link_to '⭰', url, remote:, class: pagination_classes(klass: 'first sm:hidden font-bold') | ||
= link_to helpers.t('views.pagination.first').html_safe, | ||
url, | ||
remote:, | ||
class: pagination_classes(klass: 'first sm:hidden flex') | ||
|
||
= link_to '⭰', | ||
url, | ||
remote:, | ||
class: pagination_classes(klass: 'first hidden sm:flex font-bold') |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
%span.page.gap.px-3.py-2.text-sm.font-medium.text-purple-700.dark:text-white.sm:flex.hidden | ||
%span.page.gap.px-3.py-2.text-sm.font-medium.text-purple-700.dark:text-white.flex.sm:hidden | ||
= helpers.t('views.pagination.truncate').html_safe |
11 changes: 9 additions & 2 deletions
11
app/components/tailwinds/pagination/last_page_component.html.haml
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
- unless current_page.last? | ||
= link_to helpers.t('views.pagination.last').html_safe, url, remote:, class: pagination_classes(klass: 'last hidden sm:flex') | ||
= link_to '⭲', url, remote:, class: pagination_classes(klass: 'last sm:hidden font-bold') | ||
= link_to helpers.t('views.pagination.last').html_safe, | ||
url, | ||
remote:, | ||
class: pagination_classes(klass: 'last sm:hidden flex') | ||
|
||
= link_to '⭲', | ||
url, | ||
remote:, | ||
class: pagination_classes(klass: 'last hidden sm:flex font-bold') |
13 changes: 11 additions & 2 deletions
13
app/components/tailwinds/pagination/next_page_component.html.haml
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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
- unless current_page.last? | ||
= link_to helpers.t('views.pagination.next').html_safe, url, rel: 'next', remote:, class: pagination_classes(klass: 'next hidden sm:flex') | ||
= link_to '🠖', url, rel: 'next', remote:, class: pagination_classes(klass: 'next sm:hidden font-bold') | ||
= link_to helpers.t('views.pagination.next').html_safe, | ||
url, | ||
rel: 'next', | ||
remote:, | ||
class: pagination_classes(klass: 'next sm:hidden flex') | ||
|
||
= link_to '🠖', | ||
url, | ||
rel: 'next', | ||
remote:, | ||
class: pagination_classes(klass: 'next hidden sm:flex font-bold') |
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
13 changes: 11 additions & 2 deletions
13
app/components/tailwinds/pagination/prev_page_component.html.haml
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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
- unless current_page.first? | ||
= link_to helpers.t('views.pagination.previous').html_safe, url, rel: 'prev', remote:, class: pagination_classes(klass: 'prev hidden sm:flex') | ||
= link_to '🠔', url, rel: 'prev', remote:, class: pagination_classes(klass: 'prev sm:hidden font-bold') | ||
= link_to helpers.t('views.pagination.previous').html_safe, | ||
url, | ||
rel: 'prev', | ||
remote:, | ||
class: pagination_classes(klass: 'prev sm:hidden flex') | ||
|
||
= link_to '🠔', | ||
url, | ||
rel: 'prev', | ||
remote:, | ||
class: pagination_classes(klass: 'prev hidden sm:flex font-bold') |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
- cols = headers.map { |item| "1fr" }.join(",") | ||
|
||
.div-table-row.hidden.md:grid.text-white.text-small.gap-4.bg-purple-700.dark:bg-gray-700.dark:text-gray-400{ class: "grid-cols-[#{cols}]" } | ||
.div-table-row.block.grid.text-white.text-small.gap-4.bg-purple-700.dark:bg-gray-700.dark:text-gray-400{ class: "grid-cols-[#{cols}]" } | ||
- headers.each do |header| | ||
.div-table-cell.py-4.px-6 | ||
= header |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we have potential bugs with using
.last
? not so clear as for me