mensa 0.9.6 → 0.9.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd784c73c622f5a54cc41cd377bdd18021f82f0249be3e55b723f5aaf539e4a2
4
- data.tar.gz: e202a9ee523e3c43a3469b88d9fc8947ec20c2bdff2a80348e5481486e8908a7
3
+ metadata.gz: 381f05d45f31b238938d693c7aa3cd400548d1e1ae0d0ad7cbe741a90e848388
4
+ data.tar.gz: 404d83a3470a1aed66274acf316c8de5ef9cc5979b1b9690966bd75f9827d54c
5
5
  SHA512:
6
- metadata.gz: 78db0d1687bb04a577831a70a98b870f57daca88f8d32ac12cc0ccaf05d5fae38d4d6a364a13326672b3c8d8fd30d230bc474c17368e763276d6b32e686b622e
7
- data.tar.gz: d0a027ecf6d5cd5e4db5ad7bd8c8c4e9394a98244247fb492b9689ab861540832f08f1dd61e114bf930617c95229a153a13f45cda8a2c3de59456ff59d0ea16a
6
+ metadata.gz: 7d136de094a54f232f539adb89955e25bae6cf203adf00601bedb186dcd1b733421920cb1596bdcdf72eb14716d7c2cc227284b2d39a69a8eeb21b1efeebbc87
7
+ data.tar.gz: 0b0b225894bcb23f2443a853e30396c184dc38a3fb7a8a46fa1b3abca2c98fa0879858e3f74f80b94d3d063799d9031755955b9bd1c8c5164eba6d9db1e23a24
data/.shipkit.yml CHANGED
@@ -1,2 +1,2 @@
1
1
  ---
2
- previous_version: 0.9.5
2
+ previous_version: 0.9.7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.8
4
+
5
+ - The export, save-view and rename-view dialogs are in the middle of the
6
+ window again. A modal `<dialog>` is centred by the browser's
7
+ `margin: auto`, which Tailwind v4's preflight resets to 0, so they showed
8
+ at the top left; they now have `m-auto`.
9
+ - An export whose table can't be found (`NotImplementedError: No '…' table
10
+ defined`, e.g. when the worker can't load the table's class) is marked
11
+ failed. Before, that error, not a `StandardError`, slipped past the export
12
+ job's `rescue` and left the export processing, its dialog preparing for
13
+ good.
14
+
3
15
  ## 0.9.3
4
16
 
5
17
  - A Mensa table can be rendered inside a host `<form>`, such as a tab on an
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mensa (0.9.5)
4
+ mensa (0.9.7)
5
5
  csv
6
6
  importmap-rails
7
7
  pagy (>= 43)
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  .mensa-table__export-dialog {
22
- @apply w-[34rem] max-w-[92vw] max-h-[85vh] rounded-2xl border-0 p-0 bg-white dark:bg-gray-800 shadow-2xl ring-1 ring-black/5 dark:ring-white/10 text-gray-900 dark:text-gray-100;
22
+ @apply m-auto w-[34rem] max-w-[92vw] max-h-[85vh] rounded-2xl border-0 p-0 bg-white dark:bg-gray-800 shadow-2xl ring-1 ring-black/5 dark:ring-white/10 text-gray-900 dark:text-gray-100;
23
23
 
24
24
  &::backdrop {
25
25
  @apply bg-gray-900/40;
@@ -9,8 +9,8 @@
9
9
  data-mensa-filter-pill-list-storage-key-value="<%= table.storage_key %>"
10
10
  data-mensa-filter-pill-list-filters-customized-value="<%= table.filters_customized? %>"
11
11
  data-mensa-filter-pill-list-mensa-table-outlet=".mensa-table#table-<%= table.table_id %>"
12
- data-mensa-filter-pill-list-mensa-filter-pill-outlet=".mensa-filter-pill"
13
- data-mensa-filter-pill-list-mensa-add-filter-outlet="[data-controller=mensa-add-filter]">
12
+ data-mensa-filter-pill-list-mensa-filter-pill-outlet="#mensa-filter-pill-list-<%= table.table_id %> .mensa-filter-pill"
13
+ data-mensa-filter-pill-list-mensa-add-filter-outlet="#mensa-filter-pill-list-<%= table.table_id %> [data-controller=mensa-add-filter]">
14
14
  <div class="mensa-table__search-bar__pills-area">
15
15
  <%= render Mensa::FilterPill::Component.with_collection(table.active_filters) %>
16
16
  <% if has_filterable_columns %>
@@ -23,7 +23,7 @@
23
23
  placeholder="<%= t(has_filterable_columns ? ".search" : ".search_only") %>"
24
24
  data-mensa-filter-pill-list-target="searchInput"
25
25
  data-action="input->mensa-filter-pill-list#monitorSearch keydown.enter->mensa-filter-pill-list#search keydown.esc->mensa-filter-pill-list#resetSearch focus->mensa-filter-pill-list#searchFocused keydown.down->mensa-filter-pill-list#navigateDown keydown.up->mensa-filter-pill-list#navigateUp"
26
- value="<%= params[:query] %>">
26
+ value="<%= table.current_query %>">
27
27
  <i class="mensa-table__search-bar__search-icon <%= Mensa.config.icons[:filter_pill_list_search] %>"></i>
28
28
  </div>
29
29
  </div>
@@ -11,7 +11,7 @@ input.mensa-table__search__input {
11
11
  }
12
12
 
13
13
  .mensa-table__save-view-dialog {
14
- @apply w-[26rem] max-w-[90vw] rounded-2xl border-0 p-0 bg-white dark:bg-gray-800 shadow-2xl ring-1 ring-black/5 dark:ring-white/10 text-gray-900 dark:text-gray-100;
14
+ @apply m-auto w-[26rem] max-w-[90vw] rounded-2xl border-0 p-0 bg-white dark:bg-gray-800 shadow-2xl ring-1 ring-black/5 dark:ring-white/10 text-gray-900 dark:text-gray-100;
15
15
 
16
16
  &::backdrop {
17
17
  @apply bg-gray-900/40;
@@ -10,7 +10,7 @@
10
10
  data-mensa-table-storage-key-value="<%= table.storage_key %>"
11
11
  data-action="click@document->mensa-table#saveDropdownOutsideHandler"
12
12
  data-mensa-table-mensa-filter-pill-list-outlet="#mensa-filter-pill-list-<%= table.table_id %>"
13
- data-mensa-table-mensa-column-customizer-outlet="[data-controller='mensa-column-customizer']">
13
+ data-mensa-table-mensa-column-customizer-outlet="#table-<%= table.table_id %> [data-controller='mensa-column-customizer']">
14
14
  <div class="mensa-table__toolbar">
15
15
  <div class="mensa-table__search-container">
16
16
  <% if table.show_header? %>
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  .mensa-table__views__rename-dialog {
66
- @apply w-80 max-w-[90vw] rounded-xl border-0 p-5 bg-white dark:bg-gray-800 shadow-2xl ring-1 ring-black/5 dark:ring-white/10;
66
+ @apply m-auto w-80 max-w-[90vw] rounded-xl border-0 p-5 bg-white dark:bg-gray-800 shadow-2xl ring-1 ring-black/5 dark:ring-white/10;
67
67
 
68
68
  &::backdrop {
69
69
  @apply bg-gray-900/40;
@@ -38,7 +38,9 @@ module Mensa
38
38
  finalize(export, status: "completed", filename: filename)
39
39
 
40
40
  Mensa.config.run_callback(:export_completed, export)
41
- rescue => e
41
+ # NotImplementedError (no table by the export's name, e.g. one the
42
+ # worker can't load) isn't a StandardError, and would leave it processing
43
+ rescue StandardError, NotImplementedError => e
42
44
  Mensa.config.logger&.error("Mensa::ExportJob failed for export #{export&.id}: #{e.class}: #{e.message}")
43
45
  finalize(export, status: "failed") if export
44
46
  raise
data/lib/mensa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mensa
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mensa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt