Commit graph

3802 commits

Author SHA1 Message Date
Lance Edgar ab57fb3f0f Tweak flex styles for grid filters 2024-04-25 18:16:39 -05:00
Lance Edgar f43259fbc1 Use proper flex styles for grid pagination footer 2024-04-25 16:04:30 -05:00
Lance Edgar bfe6b5bc25 Use explicit flex styles for grid-tools element
and so, must ensure children of grid-tools are atomic elements
2024-04-25 15:41:06 -05:00
Lance Edgar 23e6eef604 Update changelog 2024-04-25 14:05:10 -05:00
Lance Edgar d2aa91502a Allow deleting rows from executed batches
requires a view to explicitly opt-in.  and a separate permission is
required for the user
2024-04-25 14:02:45 -05:00
Lance Edgar 4f6ee1fb22 Use v-model to track selection etc. for download results fields 2024-04-24 22:10:56 -05:00
Lance Edgar ddafa9ed97 Tweak icon for Download Results button
make it more portable for oruga
2024-04-24 20:19:15 -05:00
Lance Edgar 0ca3b31b2e Use normal button for grid filters
since that's more portable (for oruga) than "checkbox button"
2024-04-24 18:20:16 -05:00
Lance Edgar 9f984241c4 Cleanup grid/filters logic a bit
get rid of grids.js file, remove filter templates from complete.mako

move all that instead to filter-components.mako

for now, base template does import + setup for the latter, "just in
case" a given view has any grids.  each grid should (still) be
isolated but no code should be duplicated now.  whereas before the
grid filter templates were in comlete.mako and hence could be declared
more than once if multiple grids are on a page
2024-04-24 17:43:22 -05:00
Lance Edgar d6fa83cd87 Fix permission checks for root user with pyramid 2.x 2024-04-19 22:27:30 -05:00
Lance Edgar 8781e34c98 Rename setting for custom user css (remove "buefy")
but have to keep support for older setting name for now
2024-04-19 21:18:57 -05:00
Lance Edgar 49da9776e7 Remove unused test fixtures 2024-04-19 20:25:07 -05:00
Lance Edgar 36b9e00dc9 Remove unused code for webhelpers2_grid 2024-04-19 20:15:44 -05:00
Lance Edgar 5cb643a32a Update changelog 2024-04-19 19:47:41 -05:00
Lance Edgar 1fa6e35663 Remove config "style" from appinfo page
there is only one style now (finally)
2024-04-19 17:45:58 -05:00
Lance Edgar e82f0f37d8 Fix raw query to avoid SQLAlchemy 2.x warnings 2024-04-16 23:29:56 -05:00
Lance Edgar 7fa39d42e2 Fix ASGI websockets when serving on sub-path under site root 2024-04-16 23:27:50 -05:00
Lance Edgar a95cc2b9e8 Update changelog 2024-04-16 21:14:23 -05:00
Lance Edgar e7b8b6e818 Fix master template bug when no form in context 2024-04-16 21:13:53 -05:00
Lance Edgar 5a7deadba2 Update changelog 2024-04-16 20:11:15 -05:00
Lance Edgar 9065f42195 Fix typo when getting app instance 2024-04-16 20:10:10 -05:00
Lance Edgar b37981e83f Prevent multi-click for grid filters "Save Defaults" button 2024-04-16 20:09:39 -05:00
Lance Edgar 0d9c5a078b Improve form support for view supplements
this seems a bit hacky yet but works for now..

cf. field logic for Vendor -> Quickbooks Bank Accounts, which requires this
2024-04-16 18:21:59 -05:00
Lance Edgar c35c0f8b61 Update changelog 2024-04-16 10:44:33 -05:00
Lance Edgar 8b4b3de336 Add support for Pyramid 2.x; new security policy
custom apps are still free to use pyramid 1.x

new security policy is only used if config file says so
2024-04-16 09:48:29 -05:00
Lance Edgar 85d62a8e38 Reminder to improve css hack for datepicker in modal 2024-04-15 13:31:42 -05:00
Lance Edgar 52c8f3e12c Rename custom user_css context
and stop checking an older deprecated setting
2024-04-15 13:31:35 -05:00
Lance Edgar d0d568b3a5 Escape underscore char for "contains" query filter
since underscore has special meaning for LIKE clause
2024-04-15 12:44:46 -05:00
Lance Edgar 666c16b74e Fix default dist filename for release task
not sure why this fix was needed, did setuptools behavior change?
2024-04-15 10:58:16 -05:00
Lance Edgar 2f115c0717 Update changelog 2024-04-15 10:56:49 -05:00
Lance Edgar d4089fbc6e Some more tweaks to remove "buefy" references
mostly just docstring / comments but there were some code changes too
2024-04-14 20:56:11 -05:00
Lance Edgar ba521abf4f Remove some references to "buefy" name within docstrings, comments 2024-04-14 20:30:52 -05:00
Lance Edgar c036932ce4 Remove several references to "buefy" name
class methods, template filenames, etc.

also made various edits per newer conventions
2024-04-14 19:54:29 -05:00
Lance Edgar 96ba039299 Rename grids/complete template (avoid buefy name)
and rename grid methods accordingly
2024-04-13 10:13:51 -05:00
Lance Edgar 1103b09a76 Rename forms/deform template (drop buefy suffix)
for now, deprecate `form.render()` method and just use
`render_deform()` - but probably should change that to something
else eventually..?
2024-04-13 09:45:10 -05:00
Lance Edgar cd7c1bba21 Rename template for grid filters (drop buefy suffix)
also remove some deprecated functions
2024-04-13 09:21:48 -05:00
Lance Edgar 1973614840 Rename people "view_profile" template (drop buefy suffix) 2024-04-13 09:09:23 -05:00
Lance Edgar cbbd77c49c Show toast msg instead of silent error, when grid fetch fails
specifically, if a user clicks "Save defaults" for the grid filters,
but they aren't currently logged in, error will ensue.

this is a bit of an edge case which IIUC would require multiple tabs
etc. but still is worth avoiding an error email from it.
2024-04-11 16:58:12 -05:00
Lance Edgar aa500351ed Avoid error for tax field when creating new department
someday should fix that for real..
2024-04-11 16:37:55 -05:00
Lance Edgar de8751b86c Try to return JSON error when receiving API call fails
although in my testing, the error still got raised somehow in the
tweens or something?  client then sees it as a 500 response and gets
no JSON
2024-04-11 14:14:27 -05:00
Lance Edgar a1b05540be Avoid uncaught error when updating order batch row quantities 2024-04-10 12:24:13 -05:00
Lance Edgar e0dc858451 Update changelog 2024-04-01 18:28:39 -05:00
Lance Edgar 1889f7d269 Add basic CRUD for Person "preferred first name"
only shown if config flag says so
2024-04-01 18:26:18 -05:00
Lance Edgar cdc857065b Update changelog 2024-03-27 13:14:23 -05:00
Lance Edgar dfdb7a9b59 Fix bulk-delete rows for import/export batch
per changes in SQLAlchemy 1.4
2024-03-27 13:13:33 -05:00
Lance Edgar 4363b7c5d7 Update changelog 2024-03-26 12:53:20 -05:00
Lance Edgar 27fce173ce Fix how row grid values are fetched, for row proxy objects
per changes coming in SQLAlchemy 2.0
2024-03-26 11:48:52 -05:00
Lance Edgar 0b7d2f5aed Fix how metadata/bind is used for importer batch table
per changes coming in SQLAlchemy 2.0
2024-03-26 11:47:37 -05:00
Lance Edgar 25c48a97c5 Update changelog 2023-12-26 20:17:05 -06:00
Lance Edgar a40add8f41 Expose default custorder discount for Departments 2023-12-22 11:50:05 -06:00