mat_views 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +42 -0
- data/app/assets/stylesheets/mat_views/application.css +937 -223
- data/app/controllers/mat_views/admin/application_controller.rb +4 -4
- data/app/controllers/mat_views/admin/dashboard_controller.rb +1 -1
- data/app/controllers/mat_views/admin/mat_view_definitions_controller.rb +144 -20
- data/app/controllers/mat_views/admin/mat_view_runs_controller.rb +185 -0
- data/app/controllers/mat_views/admin/preferences_controller.rb +1 -1
- data/app/helpers/mat_views/admin/datatable_helper.rb +249 -0
- data/app/helpers/mat_views/admin/localized_digit_helper.rb +70 -0
- data/app/helpers/mat_views/admin/ui_helper.rb +189 -35
- data/app/javascript/mat_views/controllers/body_setup_controller.js +120 -0
- data/app/javascript/mat_views/controllers/datatable_controller.js +351 -0
- data/app/javascript/mat_views/controllers/details_controller.js +81 -3
- data/app/javascript/mat_views/controllers/drawer_controller.js +391 -173
- data/app/javascript/mat_views/controllers/flash_controller.js +100 -1
- data/app/javascript/mat_views/controllers/mv_confirm_controller.js +154 -0
- data/app/javascript/mat_views/controllers/tabs_controller.js +146 -29
- data/app/javascript/mat_views/controllers/tooltip_controller.js +196 -1
- data/app/javascript/mat_views/controllers/turbo_frame_lifecycle_controller.js +328 -34
- data/app/models/concerns/mat_views_paginate.rb +70 -0
- data/app/models/concerns/mat_views_query_helper.rb +36 -0
- data/app/models/mat_views/application_record.rb +4 -0
- data/app/models/mat_views/mat_view_definition.rb +151 -0
- data/app/models/mat_views/mat_view_run.rb +168 -0
- data/app/views/layouts/mat_views/_footer.html.erb +23 -17
- data/app/views/layouts/mat_views/_header.html.erb +10 -10
- data/app/views/layouts/mat_views/admin.html.erb +5 -5
- data/app/views/layouts/mat_views/turbo_frame.html.erb +1 -1
- data/app/views/mat_views/admin/dashboard/index.html.erb +8 -3
- data/app/views/mat_views/admin/mat_view_definitions/_definition_actions.html.erb +23 -23
- data/app/views/mat_views/admin/mat_view_definitions/_dt-index-empty-row.html.erb +11 -0
- data/app/views/mat_views/admin/mat_view_definitions/_dt-index-row.html.erb +27 -0
- data/app/views/mat_views/admin/mat_view_definitions/empty.html.erb +1 -1
- data/app/views/mat_views/admin/mat_view_definitions/form.html.erb +2 -2
- data/app/views/mat_views/admin/mat_view_definitions/index.html.erb +4 -4
- data/app/views/mat_views/admin/mat_view_definitions/show.html.erb +4 -4
- data/app/views/mat_views/admin/mat_view_runs/_dt-index-empty-row.html.erb +11 -0
- data/app/views/mat_views/admin/mat_view_runs/_dt-index-row.html.erb +41 -0
- data/app/views/mat_views/admin/mat_view_runs/index.html.erb +1 -0
- data/app/views/mat_views/admin/{runs → mat_view_runs}/show.html.erb +10 -10
- data/app/views/mat_views/admin/preferences/show.html.erb +8 -9
- data/app/views/mat_views/admin/ui/_datatable.html.erb +34 -0
- data/app/views/mat_views/admin/ui/_datatable_filters.html.erb +45 -0
- data/app/views/mat_views/admin/ui/_datatable_tbody.html.erb +11 -0
- data/app/views/mat_views/admin/ui/_datatable_tfoot.html.erb +70 -0
- data/app/views/mat_views/admin/ui/_datatable_thead.html.erb +105 -0
- data/config/locales/ar.yml +223 -0
- data/config/locales/de.yml +230 -0
- data/config/locales/en-AU-ocker.yml +183 -147
- data/config/locales/en-AU.yml +15 -0
- data/config/locales/en-BORK.yml +185 -147
- data/config/locales/en-CA.yml +180 -144
- data/config/locales/en-GB.yml +181 -145
- data/config/locales/en-LOL.yml +179 -147
- data/config/locales/en-SCOT.yml +182 -146
- data/config/locales/en-SHAKESPEARE.yml +183 -145
- data/config/locales/en-US-pirate.yml +182 -147
- data/config/locales/en-US.yml +183 -145
- data/config/locales/en-YODA.yml +181 -147
- data/config/locales/en.yml +180 -144
- data/config/locales/es.yml +226 -0
- data/config/locales/fa.yml +223 -0
- data/config/locales/fr-CA.yml +227 -0
- data/config/locales/fr.yml +227 -0
- data/config/locales/he.yml +218 -0
- data/config/locales/hi.yml +223 -0
- data/config/locales/it.yml +225 -0
- data/config/locales/ja-JP.yml +215 -0
- data/config/locales/pt.yml +225 -0
- data/config/locales/ru.yml +228 -0
- data/config/locales/ur.yml +225 -0
- data/config/locales/zh-CN.yml +214 -0
- data/config/locales/zh-TW.yml +214 -0
- data/config/routes.rb +1 -1
- data/lib/mat_views/admin/default_auth.rb +2 -1
- data/lib/mat_views/helpers/ui_test_ids.rb +6 -0
- data/lib/mat_views/version.rb +1 -1
- metadata +34 -49
- data/app/controllers/mat_views/admin/runs_controller.rb +0 -74
- data/app/javascript/mat_views/controllers/filter_controller.js +0 -90
- data/app/javascript/mat_views/controllers/submitter_controller.js +0 -15
- data/app/javascript/mat_views/controllers/timezone_controller.js +0 -16
- data/app/views/mat_views/admin/mat_view_definitions/_table.html.erb +0 -48
- data/app/views/mat_views/admin/runs/_table.html.erb +0 -61
- data/app/views/mat_views/admin/runs/index.html.erb +0 -38
- data/config/locales/en-BB.yml +0 -187
- data/config/locales/en-BD.yml +0 -187
- data/config/locales/en-BE.yml +0 -187
- data/config/locales/en-BS.yml +0 -187
- data/config/locales/en-BZ.yml +0 -187
- data/config/locales/en-CM.yml +0 -187
- data/config/locales/en-CY.yml +0 -187
- data/config/locales/en-EG.yml +0 -187
- data/config/locales/en-FJ.yml +0 -187
- data/config/locales/en-GH.yml +0 -187
- data/config/locales/en-GI.yml +0 -187
- data/config/locales/en-GM.yml +0 -187
- data/config/locales/en-GY.yml +0 -187
- data/config/locales/en-HK.yml +0 -187
- data/config/locales/en-IE.yml +0 -187
- data/config/locales/en-IN.yml +0 -187
- data/config/locales/en-JM.yml +0 -187
- data/config/locales/en-KE.yml +0 -187
- data/config/locales/en-LK.yml +0 -187
- data/config/locales/en-LR.yml +0 -187
- data/config/locales/en-MS.yml +0 -187
- data/config/locales/en-MT.yml +0 -187
- data/config/locales/en-MW.yml +0 -187
- data/config/locales/en-MY.yml +0 -187
- data/config/locales/en-NG.yml +0 -187
- data/config/locales/en-NP.yml +0 -187
- data/config/locales/en-NZ.yml +0 -187
- data/config/locales/en-PG.yml +0 -187
- data/config/locales/en-PH.yml +0 -187
- data/config/locales/en-PK.yml +0 -187
- data/config/locales/en-RW.yml +0 -187
- data/config/locales/en-SG.yml +0 -187
- data/config/locales/en-SL.yml +0 -187
- data/config/locales/en-SS.yml +0 -187
- data/config/locales/en-TH.yml +0 -187
- data/config/locales/en-TT.yml +0 -187
- data/config/locales/en-TZ.yml +0 -187
- data/config/locales/en-UG.yml +0 -187
- data/config/locales/en-ZA.yml +0 -187
- data/config/locales/en-ZW.yml +0 -187
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 974af875a1734132602a2e7399f1e59018967eda8f5bec833ba60662e7aaf5ba
|
|
4
|
+
data.tar.gz: fc46a66673cf33a04b0a1e0bb278b1c5a3618b6da7189065f5b1194318420252
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b804e909a542003ae1f8443ff02f5e4839472ce4a174495fb7f43f5a62e43e54db6398831ad453a4d89279d3cac23c0e7f597979bfebf2b8db2db37d1e26cf03
|
|
7
|
+
data.tar.gz: 5d85a38e9a08c4e07ac89e1583defc047407069e5e7359be4a0b5900a28004e8de101e66ce8180d0cfae0a1c16a03918eaac365e2972c889d967397aa5f3d310
|
data/README.md
CHANGED
|
@@ -113,6 +113,48 @@ bundle exec rake mat_views:delete_all\[cascade,row_count_strategy,--yes]
|
|
|
113
113
|
|
|
114
114
|
---
|
|
115
115
|
|
|
116
|
+
## Rails version matrix
|
|
117
|
+
|
|
118
|
+
Use the pinned Gemfiles in `gemfiles/` to exercise the engine against specific Rails releases:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Rails 7.2.x
|
|
122
|
+
bundle install --gemfile gemfiles/rails_7_2.gemfile
|
|
123
|
+
BUNDLE_GEMFILE=gemfiles/rails_7_2.gemfile bundle exec bin/rspec-unit
|
|
124
|
+
BUNDLE_GEMFILE=gemfiles/rails_7_2.gemfile bundle exec bin/rspec-e2e
|
|
125
|
+
|
|
126
|
+
# Rails 8.0.x
|
|
127
|
+
bundle install --gemfile gemfiles/rails_8_0.gemfile
|
|
128
|
+
BUNDLE_GEMFILE=gemfiles/rails_8_0.gemfile bundle exec bin/rspec-unit
|
|
129
|
+
BUNDLE_GEMFILE=gemfiles/rails_8_0.gemfile bundle exec bin/rspec-e2e
|
|
130
|
+
|
|
131
|
+
# Rails main branch
|
|
132
|
+
bundle install --gemfile gemfiles/rails_edge.gemfile
|
|
133
|
+
BUNDLE_GEMFILE=gemfiles/rails_edge.gemfile bundle exec bin/rspec-unit
|
|
134
|
+
BUNDLE_GEMFILE=gemfiles/rails_edge.gemfile bundle exec bin/rspec-e2e
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
The CI workflow consumes the same Gemfiles to run the unit suite across the compatibility matrix.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Screenshots
|
|
142
|
+
|
|
143
|
+
The end-to-end tests generate screenshots for visual verification. They are uploaded as artifacts in the GitHub Actions workflow runs.
|
|
144
|
+
After creating a pull request, apply the `e2e-screenshots` label to trigger screenshot generation.
|
|
145
|
+
|
|
146
|
+
You can trigger screenshot in your local setup as well:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# 'en' is the desired locale
|
|
150
|
+
SCREENSHOT_LANG=en bin/rspec-app-screenshot
|
|
151
|
+
|
|
152
|
+
# OR
|
|
153
|
+
|
|
154
|
+
# runs for all configured locales (this may take long time)
|
|
155
|
+
bin/rspec-app-screenshots
|
|
156
|
+
```
|
|
157
|
+
|
|
116
158
|
## Docs & policies
|
|
117
159
|
|
|
118
160
|
- Root README: [../README.md](../README.md)
|