Commit graph

3359 commits

Author SHA1 Message Date
Lance Edgar 10162b378a Remove legacy grid for alt codes in product view
whoops missed this in jquery purge
2023-02-10 21:23:57 -06:00
Lance Edgar de4667cc71 Update changelog 2023-02-10 20:25:02 -06:00
Lance Edgar 8fc3a71e0f Fix multi-file upload widget bug
happened when only one file was being uploaded
2023-02-10 12:40:23 -06:00
Lance Edgar 2d2c94e4d7 Expose setting for POD image URL 2023-02-10 12:21:55 -06:00
Lance Edgar 21669b5f4a Remove legacy vendor sources grid for product view
whoops, missed that when purging jquery theme
2023-02-10 11:39:10 -06:00
Lance Edgar ad5dec3dc6 Use label handler to avoid deprecated logic 2023-02-08 20:19:15 -06:00
Lance Edgar 32fc0415da Fix auto-advance on ENTER for login form
if user hits ENTER while focused on username field, just set focus to
password field but do not submit form.  if user hits ENTER on while
the password field is focused, then submit form

this has long been the behavior but it was broken when removing jquery
2023-02-07 16:13:07 -06:00
Lance Edgar 5f70a524e9 Use latest zope.sqlalchemy package
session / transaction registration modified per upstream changes, but
previous logic kept to support older versions of zope.sqlalchemy - for
now, although probably should require minimum version soon?
2023-02-07 12:20:22 -06:00
Lance Edgar f17ff59ba6 Update changelog 2023-02-03 19:52:26 -06:00
Lance Edgar 15fb7f45b8 Fix auto-focus username for login form 2023-02-03 19:51:50 -06:00
Lance Edgar f71eadd409 Update changelog 2023-02-03 18:07:50 -06:00
Lance Edgar 49122d940d Stop including deform JS static files
although maybe we *should* be using that method, for some things?  can
revisit later if desired
2023-02-03 18:06:40 -06:00
Lance Edgar eb1351d108 Update changelog 2023-02-03 17:39:28 -06:00
Lance Edgar b67df1328b Remove liburl logic, config for jquery 2023-02-03 17:32:39 -06:00
Lance Edgar 976a5836a9 Purge even more jquery stuff
and related static files etc. from old themes

this might be the end of it..??
2023-02-03 17:08:33 -06:00
Lance Edgar 2ebae17839 Refactor the Ordering Worksheet generator, per Buefy 2023-02-03 16:10:08 -06:00
Lance Edgar eddbfcab36 Allow editing the Department field for a Subdepartment 2023-02-03 16:10:08 -06:00
Lance Edgar 320aaab4b3 Replace 'default' theme to match 'falafel'
falafel is now an empty wrapper around default

hell yeah
2023-02-03 16:10:08 -06:00
Lance Edgar f0880785a9 Add new Buefy-specific upgrade template
since that was broken..
2023-02-03 16:10:08 -06:00
Lance Edgar 9faaea881d Remove all deprecated use_buefy logic
also remove some static files no longer used, etc.
2023-02-03 16:10:04 -06:00
Lance Edgar 94a0a57cfe Update changelog 2023-02-02 22:45:58 -06:00
Lance Edgar 265c7ad76f Always assume use_buefy=True within main page template
so can start removing from context for various views
2023-02-02 21:18:00 -06:00
Lance Edgar 36a902398a Update changelog 2023-02-02 20:24:19 -06:00
Lance Edgar 506de0383f Form constructor assumes use_buefy=True by default
until we get rid of it altogether
2023-02-02 20:21:19 -06:00
Lance Edgar 9b67010f2c Fix checkbox behavior for Inventory Worksheet 2023-02-02 19:26:47 -06:00
Lance Edgar f7f8f8dabf Update changelog 2023-02-02 16:51:12 -06:00
Lance Edgar 01182ef752 Add progress bar page for Buefy theme 2023-02-01 23:09:33 -06:00
Lance Edgar 8410419717 Remove support for Buefy 0.8
only Buefy 0.9 and greater are supported now
2023-02-01 18:44:55 -06:00
Lance Edgar 5f7fa33eb2 Update changelog 2023-01-30 21:06:08 -06:00
Lance Edgar a1d88a5e6b Refactor the Inventory Worksheet generator, per Buefy 2023-01-30 11:56:09 -06:00
Lance Edgar a3723e4879 Tweak the Ordering Worksheet generator, per Buefy 2023-01-30 11:46:07 -06:00
Lance Edgar b7f3a67cd0 Add basic API support for printing product labels 2023-01-29 18:46:49 -06:00
Lance Edgar c880065da8 Tweak customer panel header style for new custorder 2023-01-29 13:02:39 -06:00
Lance Edgar 86af4baef5 Fix icon for multi-file upload widget 2023-01-29 12:45:14 -06:00
Lance Edgar 8cdfe4a22c Update changelog 2023-01-28 16:22:54 -06:00
Lance Edgar d6f05684be Tweak styles for Quantity panel when viewing Receiving row
when no buttons were visible in panel, right-hand side looked "cut off"
2023-01-28 16:12:03 -06:00
Lance Edgar 17251b2c88 Tweak import handler form, some fields not required
those particular fields are for read-only display, not meant for user
to provide values.  so must provide defaults, else form missing those
will not validate.
2023-01-28 15:54:53 -06:00
Lance Edgar 64acfbcb4e Update changelog 2023-01-26 13:36:14 -06:00
Lance Edgar 55a3f9669b Fix click event for right-aligned buttons on profile view
for some reason when `is-pulled-right` was used, buttons were not
clickable?!  never did figure out precisely why, but this fixes
anyway.  was not an issue w/ buefy 0.8 fwiw, but using 0.9 now
2023-01-26 13:34:13 -06:00
Lance Edgar 884f136e99 Update changelog 2023-01-18 22:04:35 -06:00
Lance Edgar dc6bd4d4a7 Rename frontend request handler logic to SimpleRequestMixin 2023-01-18 21:56:29 -06:00
Lance Edgar 1e5b7e7ee7 Add a couple more menu items to default set 2023-01-18 21:54:24 -06:00
Lance Edgar c874d97507 Add default view config for Trainwreck 2023-01-18 20:11:46 -06:00
Lance Edgar 3f61c9ee18 Add some more menu items to default set 2023-01-18 19:21:34 -06:00
Lance Edgar eece358e20 Update changelog 2023-01-18 18:58:32 -06:00
Lance Edgar 2b1fd9e986 Add way to override particular 'essential' views 2023-01-18 18:41:23 -06:00
Lance Edgar 79e4e596e8 Include permission views by default 2023-01-18 17:58:04 -06:00
Lance Edgar 23dea7bced Add more views, menus to default set 2023-01-18 16:55:30 -06:00
Lance Edgar e4c2336659 Add specific data type options for new table entry form
including basic FK / relationship support
2023-01-17 00:00:06 -06:00
Lance Edgar 98fa6eea05 Misc. tweaks for App Details / Configure Menus 2023-01-16 21:55:52 -06:00
Lance Edgar 9b21d52206 Update changelog 2023-01-16 18:44:54 -06:00
Lance Edgar 00548a259b Add basic "new model view" wizard 2023-01-16 13:50:27 -06:00
Lance Edgar f4bc280da7 Wrap up steps for new table wizard
it actually works.. :)  needs more polish, but will let usage drive that
2023-01-15 22:52:01 -06:00
Lance Edgar 68ed5942e6 Add basic "Review Model" step for new table wizard 2023-01-14 23:23:21 -06:00
Lance Edgar 9d2bcff96b Add full set of default menus
plus dynamic set of integration menus, from providers
2023-01-14 18:48:56 -06:00
Lance Edgar 39d53617bd Add new handlers, TailboneHandler and MenuHandler 2023-01-14 16:01:26 -06:00
Lance Edgar cfdaa1e927 Add default logic to get merge data for object 2023-01-14 12:17:05 -06:00
Lance Edgar aef679c030 Fix bug when adding new profile via datasync configure 2023-01-14 11:51:22 -06:00
Lance Edgar dec0ebba30 Let the API "rawbytes" response be just that, w/ no file 2023-01-14 10:31:31 -06:00
Lance Edgar e82e27acd7 Update changelog 2023-01-14 08:40:08 -06:00
Lance Edgar 23358d9c5d Tweak how backfill task is launched
per upstream changes
2023-01-14 02:20:21 -06:00
Lance Edgar 80989cc84f Update changelog 2023-01-13 20:53:26 -06:00
Lance Edgar d8bd4bd847 Prevent listing for top-level Messages view
user must access inbox, archive etc. directly instead
2023-01-13 20:28:00 -06:00
Lance Edgar f18f24962e Refactor tempmon dashboard view, for buefy themes 2023-01-13 20:18:42 -06:00
Lance Edgar 0753e956f9 Revert logic that assumes all themes use buefy
that just isn't a safe assumption yet..alas
2023-01-13 18:10:28 -06:00
Lance Edgar 83f9a3faa7 Fix "toggle batch complete" for Chrome browser 2023-01-13 16:49:16 -06:00
Lance Edgar cac005f993 Semi-finish logic for writing new table model class to file
definitely needs more polish and features, but the gist..
2023-01-13 03:51:12 -06:00
Lance Edgar fb7368993c Show basic column info as row grid when viewing Table 2023-01-12 22:56:12 -06:00
Lance Edgar 38f88407ff Update changelog 2023-01-12 15:33:56 -06:00
Lance Edgar d842a3d8e0 Add new views for App Info, and Configure App
and a way to specify version/url overrides for buefy, vue etc.

also, begin logic for "standard" admin menu
2023-01-12 15:30:10 -06:00
Lance Edgar 2163522e7c Update changelog 2023-01-11 23:31:09 -06:00
Lance Edgar 225e13f43b Allow all external dependency URLs to be set in config
so can host all files locally if needed.

we also now assume all themes support buefy unless otherwise
configured
2023-01-11 23:29:28 -06:00
Lance Edgar fa1cf353b8 Update changelog 2023-01-11 19:55:52 -06:00
Lance Edgar 4746b6fae9 Refactor inventory batch "add row" page, per new theme 2023-01-11 19:31:14 -06:00
Lance Edgar 2c7f2c0fcd Fix panel header icon behavior for new custorder
had to work around a buefy bug..?
2023-01-11 16:41:11 -06:00
Lance Edgar b8389c72bb Add support for per-item default discount, for new custorder 2023-01-11 16:41:07 -06:00
Lance Edgar dfa4178204 Add basic support for receiving from multiple invoice files 2023-01-10 16:46:21 -06:00
Lance Edgar 2b7ebedb22 Update changelog 2023-01-08 11:36:42 -06:00
Lance Edgar 33ffd7e855 Improve "download rows as XLSX" for importer batch
still could be better, but at least this avoids error
2023-01-07 22:46:35 -06:00
Lance Edgar b11f9f62b7 Update changelog 2023-01-07 11:53:10 -06:00
Lance Edgar c6765fd9a9 Expose, start to honor "units only" setting for products 2023-01-07 11:52:37 -06:00
Lance Edgar 8c201dced7 Update changelog 2023-01-05 13:43:38 -06:00
Lance Edgar 71851e1a05 Use product handler to normalize data for products API
at least, as much as possible
2023-01-04 21:23:57 -06:00
Lance Edgar db62bd20b3 Show help link when generating or viewing report, if applicable 2023-01-04 16:39:37 -06:00
Lance Edgar 31b213610f Fix template bug for generating report 2023-01-04 15:31:51 -06:00
Lance Edgar d0881cbd09 Keep aspect ratio for product images in new custorder 2023-01-04 12:38:04 -06:00
Lance Edgar 7e4bd851f1 Update changelog 2023-01-04 10:57:14 -06:00
Lance Edgar ab80aedb63 Allow xref buttons to have "internal" links
still assume external (open in new tab) by default
2023-01-04 00:09:35 -06:00
Lance Edgar c7537e7994 Update changelog 2023-01-02 16:55:39 -06:00
Lance Edgar 9f763b46eb Expose some settings for Trainwreck DB rotation 2023-01-02 13:12:01 -06:00
Lance Edgar d21826c70d Make invalid email more obvious, in profile view 2023-01-02 11:11:01 -06:00
Lance Edgar a061e362c3 Add beginnings of "New Table" feature
nowhere near complete yet, but skeleton is more or less in place
2023-01-02 09:44:05 -06:00
Lance Edgar 7e852c1836 Allow buefy version to be 'latest' 2023-01-01 13:17:55 -06:00
Lance Edgar a01982ae55 Show only "core" app settings by default 2022-12-31 17:57:22 -06:00
Lance Edgar 884f960d3b Update changelog 2022-12-28 16:12:33 -06:00
Lance Edgar 0c6bfcbee6 Use minified version of vue.js by default, in falafel theme 2022-12-28 14:40:50 -06:00
Lance Edgar 03639d73fa Show global search as button instead of link 2022-12-27 22:51:42 -06:00
Lance Edgar cfc92ac9e7 Hide the "configure field help" icons until user requests access
user can technically "request access" on "any page" and not just those
with configurable fields..but who cares for now i think..
2022-12-27 22:30:25 -06:00
Lance Edgar dc90abcf09 Add "global searchbox" for quicker access to main views 2022-12-26 17:31:37 -06:00
Lance Edgar b985124bef Fix product image view for python3 2022-12-26 10:33:12 -06:00
Lance Edgar b653351f71 Avoid error when no form present 2022-12-25 23:05:53 -06:00
Lance Edgar 0a0b471a03 Add support for websockets over HTTP
in addition to HTTPS
2022-12-25 15:37:54 -06:00
Lance Edgar c389ebabd0 Show *correct* system title when upgrading
may not be the same as primary app title
2022-12-25 15:13:59 -06:00
Lance Edgar 8264a69cec Add "direct link" support for master grids 2022-12-25 14:42:29 -06:00
Lance Edgar cd466a64e5 Filter by person instead of user, for Generated Reports "Created by" 2022-12-25 12:45:23 -06:00
Lance Edgar b04c1054fc Override document title when upgrading
when using websockets, to mimic old behavior without them
2022-12-25 12:25:55 -06:00
Lance Edgar 3befdc09e3 Add basic support for editing field help info 2022-12-24 21:46:02 -06:00
Lance Edgar 9fe9983bf9 Add basic support for editing page help info
site admin should be able to point help wherever they want
2022-12-24 16:08:09 -06:00
Lance Edgar ed54092268 Add cleanup logic for old Beaker session data
pretty basic, but good enough for now
2022-12-23 23:30:45 -06:00
Lance Edgar 50dafc91d4 Preserve current tab for page reload in profile view
also makes sharing links better etc.
2022-12-23 20:58:27 -06:00
Lance Edgar d409e1d088 Make static files optional, for new tailbone-integration project 2022-12-23 20:18:49 -06:00
Lance Edgar 64c8768314 Fix checkbox values when re-running a report 2022-12-23 19:43:31 -06:00
Lance Edgar c5bd40793b Fix HUD display when toggling employee status in profile view 2022-12-23 19:06:05 -06:00
Lance Edgar 8a6fdb5ea5 Warn user when luigi is not installed, for relevant view
better than getting a server error
2022-12-23 18:55:53 -06:00
Lance Edgar 6fbc79fe5e Add support for Buefy 0.9.x
or: add hacks to continue supporting Buefy 0.8.x

..depending on your perspective
2022-12-22 20:49:20 -06:00
Lance Edgar 7ccd9ad896 Update changelog 2022-12-21 20:01:31 -06:00
Lance Edgar ef9dc9ff6d Expose the terms field for Vendor CRUD 2022-12-21 18:05:38 -06:00
Lance Edgar ed0a1f2740 Add make_status_renderer() to MasterView
batches aren't the only table/view where a status code/text combo may
be in use
2022-12-20 19:15:31 -06:00
Lance Edgar 871ea84f96 Add support for "is row checkable" in grids
i.e. when grid has checkboxes, some rows maybe shouldn't get one
2022-12-20 19:14:54 -06:00
Lance Edgar e427e50d67 Update changelog 2022-12-15 13:32:27 -06:00
Lance Edgar 99a5615e91 Add configure_execute_form() hook for batch views
also enable bulk-delete of row results by default for batch views
2022-12-15 09:12:26 -06:00
Lance Edgar c8201de2ff Update changelog 2022-12-10 12:41:41 -06:00
Lance Edgar 3c54960612 Fix error if no view supplements defined 2022-12-10 12:41:10 -06:00
Lance Edgar 5045df0b57 Update changelog 2022-12-10 11:35:02 -06:00
Lance Edgar f388f84b07 Suppress error if menu entry has bad route name 2022-12-10 10:09:39 -06:00
Lance Edgar f8f6b76657 Add xref buttons for Customer, Member tabs in profile view 2022-12-10 09:48:22 -06:00
Lance Edgar cb6c25f829 Let view supps give data instead of actual xref button 2022-12-10 09:48:22 -06:00
Lance Edgar 05a3e3f805 Add common logic to determine panel fields for product view
so we don't have to override templates, but just the view logic

more needed, but this proves the concept
2022-12-10 09:48:22 -06:00
Lance Edgar 273fa7eb55 Add common logic for xref buttons, links when viewing object
about dang time for this..probaby needs improvement but a good start
2022-12-10 09:48:22 -06:00
Lance Edgar 2278082a4d Cleanup employees view per new supplements
also add permission for "view employee secrets" (where applicable)
2022-12-10 09:48:22 -06:00
Lance Edgar d5d9c644a2 Add the ViewSupplement concept
also fix cell-class for grid columns.  cannot use "raw" fieldname
because in some cases (e.g. 'number', 'rate') Bulma may interpret that
as actually meaning something, and affect the display
2022-12-10 09:46:54 -06:00
Lance Edgar 1a51f3d854 Fix ordering worksheet API for date objects 2022-12-08 14:54:36 -06:00
Lance Edgar f80d3cd530 Show simple error string, when subprocess batch actions fail
logs still have more info, can't show user the whole traceback..but
this is better than we had before..
2022-12-08 14:15:38 -06:00
Lance Edgar cea06c9673 Update changelog 2022-12-07 14:20:04 -06:00
Lance Edgar 22176e89dd Add support for Beaker >= 1.12.0
but still support previous versions too, for now
2022-12-07 14:00:32 -06:00
Lance Edgar c1b2b7e177 Update changelog 2022-12-06 19:32:10 -06:00
Lance Edgar 6ac07e1255 Fix bug when viewing certain receiving batches 2022-12-06 19:31:22 -06:00
Lance Edgar 1509b6fce5 Update changelog 2022-12-06 10:33:57 -06:00
Lance Edgar ebe2013849 Add helptext for "Admin-ish" field when editing Role 2022-12-06 10:30:30 -06:00
Lance Edgar cceb66e500 Add support for editing invoice cost in receiving batch, per new theme 2022-12-05 16:25:55 -06:00
Lance Edgar 36a5f2ab49 Show invoice cost in receiving batch, if "from scratch" 2022-12-05 16:05:27 -06:00
Lance Edgar 9c54a4ada1 Add receiving workflow as param when making receiving batch 2022-12-05 15:26:43 -06:00
Lance Edgar 2e3823364c Add support for editing catalog cost in receiving batch, per new theme
had to add several "under the hood" features to make this work, to
embed a Vue component within grid `<td>` cells, etc.
2022-12-05 14:03:03 -06:00
Lance Edgar ec71f532a1 Include email address for current API user info 2022-12-04 09:39:08 -06:00
Lance Edgar 4030904d40 Add simple template hook for "before object helpers"
not sure how useful, but needed in one place, and hook makes for
cleaner template inheritance
2022-12-02 12:16:51 -06:00
Lance Edgar 9f62c280de Update changelog 2022-12-01 13:14:17 -06:00
Lance Edgar 94fa0380ba Avoid web config when launching overnight task 2022-12-01 09:37:30 -06:00
Lance Edgar b3bdee60bb Add way to quickly re-run "any" report 2022-11-28 17:55:08 -06:00
Lance Edgar 434633924a Update changelog 2022-11-28 10:54:37 -06:00
Lance Edgar 88aeaf31c2 Show "next date" when launching overnight task
just to make things a bit more clear
2022-11-27 14:55:49 -06:00
Lance Edgar 604420c7d4 Auto-format phone number when saving for contact records 2022-11-23 12:27:09 -06:00
Lance Edgar b64f6c7884 Use newer config strategy for all views
to make inheritance easier
2022-11-23 12:20:58 -06:00
Lance Edgar db9b3617a4 Fix page title for datasync status 2022-11-23 11:52:44 -06:00
Lance Edgar 42888c0983 Add prompt dialog when launching overnight task 2022-11-23 11:40:03 -06:00
Lance Edgar 9abbc001b3 Update changelog 2022-11-21 14:31:49 -06:00
Lance Edgar 4741ee0a7b Let the Luigi handler take care of removing some DB settings
so that command line can also remove them via same logic
2022-11-21 14:01:22 -06:00
Lance Edgar de5a8fae7c Update 'testing' watermark for dev background
for some reason Firefox suddenly would not display the old one.  so i
opened it in gimp, then re-exported to same filename.  apparently
something changed, this one worked in FF.

obviously not much care was taken in the migration here.  so maybe see
the previous file as starting point in case this needs revisiting
2022-11-20 21:01:15 -06:00
Lance Edgar a63d7e9b64 Update changelog 2022-11-20 20:26:48 -06:00
Lance Edgar 194f49c561 Add luigi module/class awareness for overnight tasks 2022-11-20 19:37:29 -06:00
Lance Edgar 922b550c17 Update changelog 2022-11-20 16:00:03 -06:00
Lance Edgar 7f0305fb7a Fix how keys are stored for luigi overnight/backfill tasks 2022-11-20 13:58:39 -06:00
Lance Edgar e4392cd00a Allow disabling, or per-day scheduling, of problem reports 2022-11-19 17:44:09 -06:00
Lance Edgar 163c65600d Update changelog 2022-11-18 11:22:08 -06:00
Lance Edgar 3c740549e2 Turn on download results feature for Employees 2022-11-18 11:20:29 -06:00
Lance Edgar 3178894e4f Update changelog 2022-11-17 19:23:44 -06:00
Lance Edgar deed2111fb Add "between" verb for numeric grid filters 2022-11-15 16:29:15 -06:00
Lance Edgar 3e8924e7cc Update changelog 2022-11-15 13:39:17 -06:00
Lance Edgar fec259629e Let the auth handler manage user merge 2022-11-15 13:37:37 -06:00
Lance Edgar 3b64950a38 Update changelog 2022-11-03 11:34:32 -05:00
Lance Edgar be533922a2 Show UPC for receiving line item if no product reference
to help with troubleshooting invoice file parsing etc.
2022-11-03 11:28:38 -05:00
Lance Edgar 38e6441b61 Log a warning to troubleshoot luigi restart failure 2022-10-31 21:41:01 -05:00
Lance Edgar c2b2d11141 Use shared logic for rendering percentage values 2022-10-29 13:40:35 -05:00
Lance Edgar 22c33b58c7 Fix start_date param for pricing batch upload 2022-10-19 16:26:05 -05:00
Lance Edgar 9b101963e5 Use people handler to update address 2022-10-18 10:55:47 -05:00
Lance Edgar 733e7ee00c Add template method for rendering row grid component
so custom event hooks can be added more easily, when needed
2022-09-24 10:34:32 -05:00
Lance Edgar 3877346b3a Update changelog 2022-09-09 14:53:47 -05:00
Lance Edgar e67cde4255 Avoid use of self.handler within batch API views 2022-09-07 20:46:18 -05:00
Lance Edgar e46f4bf01e Do not convert date if already a date 2022-09-06 22:19:01 -05:00
Lance Edgar f7a019ed83 Make past item lookup optional for custorders 2022-09-06 16:44:26 -05:00
Lance Edgar 2950827c63 Add basic per-item discount support for custorders 2022-09-06 16:31:59 -05:00
Lance Edgar b37f63a231 Update changelog 2022-09-06 13:21:29 -05:00
Lance Edgar 365e4a4194 Convert value for more date filters; only add condition if valid
missed these in 187fea6d1b
2022-09-06 13:09:14 -05:00
Lance Edgar c43a4edec7 Move logic for "bulk-delete row objects" into MasterView
i guess so far it has only been needed for batch, but some day surely
it will be needed for something else..?

some of the template logic is still batch only i think..
2022-08-31 20:55:03 -05:00
Lance Edgar b5a519d132 Disable "Delete Results" button if no results, for row grid 2022-08-31 16:41:58 -05:00
Lance Edgar 35728e20be Add default normalize logic for API views
and use common logic for getting field list in traditional Form class
2022-08-30 21:56:46 -05:00
Lance Edgar 960d6279a9 Include WorkOrder.estimated_total for API 2022-08-30 21:14:01 -05:00
Lance Edgar 9ea103c0eb Update changelog 2022-08-30 14:18:57 -05:00
Lance Edgar 12e4b0a139 Expose more attrs for new product batch rows 2022-08-30 13:57:18 -05:00
Lance Edgar 731c2168b0 Improve parsing of purchase order quantities 2022-08-30 11:28:48 -05:00
Lance Edgar ef045607d9 Update changelog 2022-08-30 11:04:26 -05:00
Lance Edgar bb4e98af8d Add uom fields, configurable template for newproduct batch 2022-08-30 10:58:13 -05:00
Lance Edgar 6ea8a02b57 Add 'warning' flash messages to old jquery base template 2022-08-27 23:36:09 -05:00
Lance Edgar 187fea6d1b Convert value for date filter; only add condition if valid 2022-08-27 22:45:52 -05:00
Lance Edgar 36ba6f1463 Update changelog 2022-08-25 22:18:33 -05:00
Lance Edgar f005ef4d52 Add max lengths when editing person name via profile view 2022-08-25 22:15:56 -05:00
Lance Edgar 6a0a4627b4 Avoid error when no datasync profiles configured
at least, according to the web app none are configured..but they may
be in another config file
2022-08-24 20:06:38 -05:00
Lance Edgar bcedc58d9f Update changelog 2022-08-24 18:24:42 -05:00
Lance Edgar 78500770d9 Add basic support for backfill Luigi tasks
idea being, sometimes you must import many days worth of data into
Trainwreck or what-not, and it must be split up b/c e.g. it would take
too long to import all at once (i.e. might interfere with overnight
tasks)
2022-08-23 23:27:47 -05:00
Lance Edgar 488696cb39 Fix index title for datasync configure page 2022-08-22 01:07:58 -05:00
Lance Edgar 6dfda20116 Update changelog 2022-08-21 20:41:55 -05:00
Lance Edgar e50356d276 Expose, honor "admin-ish" flag for roles
prevent user (un)assignment etc. unless admin is doing it
2022-08-21 19:36:48 -05:00
Lance Edgar 7b2fef5f09 Allow configuring datasync watcher kwargs 2022-08-21 15:22:29 -05:00
Lance Edgar 87cced1637 Fix perm check 2022-08-21 11:32:39 -05:00
Lance Edgar 2ce242ba42 Make textout scrolling "smooth" for upgrade progress 2022-08-20 23:33:46 -05:00
Lance Edgar bdbbe990dd Add global context from handler, for email previews 2022-08-20 23:07:19 -05:00
Lance Edgar 2ca93a07e9 Make separate tasks for collect vs. transmit of upgrade progress data 2022-08-20 22:40:16 -05:00
Lance Edgar 0a113611e8 Let just one "task" handle collect/transmit of progress for websocket
first client to connect, will cause task to start; subsequent clients
are just added to running set, for broadcast messaging
2022-08-20 21:19:20 -05:00
Lance Edgar e93063a344 Refactor upgrade websocket progress, so "anyone" can join in to see
now while an upgrade is executing, anyone with permission can "view"
the upgrade and see the same progress the executor is seeing
2022-08-20 18:56:35 -05:00
Lance Edgar 18cec49a86 Add websockets progress, "multi-system" support for upgrades
and related things to better support that
2022-08-20 17:39:33 -05:00
Lance Edgar db3f215ebe Add way to declare failure for an upgrade
doesn't really cancel it, since Tailbone isn't actually tracking the
subprocess etc.  but saves a step when something goes off the rails
2022-08-19 17:20:01 -05:00
Lance Edgar 8470126918 Add render_person_profile() method to MasterView 2022-08-18 19:22:04 -05:00
Lance Edgar 8afc376636 Update changelog 2022-08-18 17:29:13 -05:00
Lance Edgar 89da6ae501 Expose setting for auto-correct when receiving from invoice 2022-08-18 17:27:30 -05:00
Lance Edgar d23e5d169a Add basic views for Luigi / overnight tasks 2022-08-18 15:11:09 -05:00
Lance Edgar 9de35a6e8b Add brief delay before declaring websocket broken 2022-08-17 22:59:50 -05:00
Lance Edgar d8de36b5ac Update changelog 2022-08-17 21:30:39 -05:00
Lance Edgar 2fde1db83c Allow user feedback to request email reply back 2022-08-17 21:08:54 -05:00
Lance Edgar 5fb99c54c9 Fix initial datasync status display when supervisor error occurs 2022-08-17 19:06:02 -05:00
Lance Edgar ed55fbca9e Log a warning if can't get supervisor process info 2022-08-17 18:44:10 -05:00
Lance Edgar 2375733d0f Add first experiment with websockets, for datasync status page 2022-08-17 18:24:55 -05:00
Lance Edgar 065f845707 Add proper status page for datasync
or rather, it's a good start..  plenty more could be added
2022-08-15 21:06:19 -05:00
Lance Edgar 839c4e0c28 Add get_next_url_after_submit_new_order() for customer orders
after new custorder batch is executed, where do we send user?
2022-08-14 17:33:12 -05:00
Lance Edgar a20eb468df Redirect to custom index URL when user cancels new custorder entry 2022-08-14 15:53:43 -05:00
Lance Edgar 303eba6bca Update changelog 2022-08-14 10:17:52 -05:00
Lance Edgar bc51a868ce Consolidate master API view logic
also let all API views use new config defaults convention
2022-08-14 00:59:35 -05:00
Lance Edgar f2c73acd3b Refactor usage of get_vendor() lookup 2022-08-13 23:59:09 -05:00
Lance Edgar 2f5de67ee7 Move handheld batch view module to appropriate location 2022-08-13 23:23:30 -05:00
Lance Edgar db3ea2e34a Fix default help URLs for ordering, receiving 2022-08-13 23:12:39 -05:00
Lance Edgar 2388ab88b6 Add the FormPosterMixin to ProfileInfo component 2022-08-12 20:47:32 -05:00
Lance Edgar e49a31df6a Avoid double-quotes in field error messages JS code 2022-08-12 19:47:25 -05:00
Lance Edgar d5a9aa6925 Update changelog 2022-08-12 18:29:46 -05:00
Lance Edgar 409a49ba20 Standardize merge logic when a handler is defined for it
also adds basic merge support for products view
2022-08-12 14:27:26 -05:00
Lance Edgar 4c29a667cb Couple of API tweaks for work orders
made a change to sorting such that it assumes the primary model is
being sorted, if caller does not specify
2022-08-11 00:15:12 -05:00
Lance Edgar 8d70107b5d Update changelog 2022-08-10 18:58:18 -05:00
Lance Edgar 51aeb50d39 Allow download results for Customers grid 2022-08-10 18:55:59 -05:00
Lance Edgar 0e8f383c14 Fix sequence of events re: grid component creation
somehow if the master view template had rows, the Delete Results
button was not working.  not clear when that problem started?! but
this seemed to be the correct fix
2022-08-09 23:26:41 -05:00
Lance Edgar ca5e2c1ff9 Add initial views for work orders
at least a head start maybe
2022-08-09 22:57:26 -05:00
Lance Edgar a6d5b262f9 Log traceback output when batch action subprocess fails 2022-08-09 16:35:48 -05:00
Lance Edgar 5952df82ff Tweak flash msg, logging when batch population fails 2022-08-09 15:05:03 -05:00
Lance Edgar 8f1f8abf42 Fix HTML literal for hidden form field 2022-08-09 14:48:23 -05:00
Lance Edgar 3edbe96968 Some API tweaks to support a byjove app 2022-08-09 14:37:41 -05:00
Lance Edgar d6aeb1d10f Add convenience wrapper to make customer field widget, etc.
customer widget is either autocomplete or dropdown, per config

also added a way to pass arbitrary kwargs to the chameleon template
rendering for a field

also moved the logic for rendering a <b-field> out of the template and
into the Form class

also start to prefer `input_handler` over `input_callback` when
specifying client-side JS hook
2022-08-09 14:37:29 -05:00
Lance Edgar 5334cf1871 Update changelog 2022-08-08 18:13:34 -05:00
Lance Edgar a999b996fb Add separate product grid filters for Category Code, Category Name
this also fixes a join bug in some edge cases
2022-08-08 14:39:26 -05:00
Lance Edgar 903afc111e Update changelog 2022-08-08 09:42:54 -05:00
Lance Edgar 3413d7c6f6 Expose setting for sendmail failure alerts 2022-08-07 18:45:45 -05:00
Lance Edgar fe4c3d4942 Make sure "configure" pages use AppHandler to save/delete settings
so that beaker config cache is invalidated, if in use
2022-08-07 18:23:15 -05:00
Lance Edgar 6352a6dc9a Add button to raise bogus error, for testing email alerts 2022-08-07 12:58:49 -05:00
Lance Edgar 172dbba8aa Update changelog 2022-08-07 10:10:17 -05:00
Lance Edgar 1152fba067 Always show "all" email settings if user has config perm
also tweak view config, per newer convention
2022-08-06 22:57:10 -05:00
Lance Edgar d74025318e Update changelog 2022-08-06 20:48:34 -05:00
Lance Edgar dd2631d27c Only show "all" emails if config says to use the entry points
otherwise traditional behavior needs to be preserved as the default,
for now...
2022-08-06 19:18:49 -05:00
Lance Edgar d52a186e12 Add support for toggling visibility of email profile settings 2022-08-06 18:38:17 -05:00
Lance Edgar 7d3f2e6bdf Update changelog 2022-08-05 13:28:47 -05:00
Lance Edgar 8776cd19dd Clean up URL routes for row CRUD 2022-08-05 12:09:32 -05:00
Lance Edgar 9c31e92c01 Update changelog 2022-08-04 09:08:56 -05:00
Lance Edgar cd9004b32b Invalidate config cache when raw setting is deleted 2022-08-04 08:14:04 -05:00
Lance Edgar ba8faacbd0 Update changelog 2022-08-03 16:58:06 -05:00
Lance Edgar 927470db72 Force cache invalidation when Raw Setting is edited
only applies if caching is actually in use
2022-08-03 15:15:49 -05:00
Lance Edgar 4ff0450632 Stop using the old rattail.db.api.settings module 2022-08-03 14:50:45 -05:00
Lance Edgar 862198cf82 Improve "touch" logic for employees
also use app handler for default touch logic
2022-08-03 11:13:43 -05:00
Lance Edgar 3726a2685a Update changelog 2022-07-27 10:21:08 -05:00
Lance Edgar 17810d9cae Misc. improvements for desktop receiving views
- don't expose "cases" if config says not to
- don't expose "expired" if config says not to
- use `numeric-input` for quantity fields
- add `product_key_field` to global-ish template context
2022-07-26 16:30:04 -05:00
Lance Edgar 92a52133de Add some more views to potentially include via poser 2022-07-26 14:25:20 -05:00
Lance Edgar 9589606fb5 Update changelog 2022-07-25 11:42:46 -05:00
Lance Edgar ad7b347e16 Add "auto-receive all items" support for receiving batch API 2022-07-24 22:29:55 -05:00
Lance Edgar f33d7b7f90 Add iter(Form) logic, to loop through fields 2022-07-24 21:11:36 -05:00
Lance Edgar 36d4f0a5f7 Add basic edit support for Purchases 2022-07-24 21:10:52 -05:00
Lance Edgar 0dc344b821 Assume default vendor for new receiving batch
i.e. if there is only one vendor
2022-07-24 15:05:51 -05:00
Lance Edgar 25f39f4173 Add basic/minimal merge support for customers 2022-07-24 13:21:47 -05:00
Lance Edgar e656f769b1 Allow optional row grid title for master view 2022-07-23 22:18:17 -05:00
Lance Edgar 28238c6fb5 Add setting to expose/hide "active in POS" customer flag 2022-07-23 22:09:47 -05:00
Lance Edgar e77ca93d80 Update changelog 2022-07-22 12:41:54 -05:00
Lance Edgar da3aaafbcd Misc deform template improvements
for sake of a custom form
2022-07-20 21:36:52 -05:00
Lance Edgar 10628eeb91 Add template_kwargs_clone() stub for master view 2022-07-20 11:01:22 -05:00
Lance Edgar 20aa6a3fbb Expose the complete flag for pricing batch
also update view config defaults per new convention
2022-07-19 16:36:21 -05:00
Lance Edgar e9edf205d9 Make caching products optional, when creating vendor catalog batch 2022-07-19 15:50:57 -05:00
Lance Edgar 6397a93f97 Allow download of results for common product-related tables 2022-07-19 14:52:31 -05:00
Lance Edgar 9c5f3a3b64 Split out rendering of this-page component in falafel theme
it's possible a template may need to override that
2022-07-19 11:45:52 -05:00
Lance Edgar 5e0253927c Update changelog 2022-07-18 12:41:27 -05:00
Lance Edgar d16290cb70 Add new-style config defaults for BrandView 2022-07-18 12:31:54 -05:00
Lance Edgar c6df827311 Add basic "download results" for Subdepartments grid 2022-07-08 12:57:57 -05:00
Lance Edgar 496e03a3ec Honor default pagesize for all grids, per setting 2022-07-01 12:00:17 -05:00
Lance Edgar 7e0e881017 Fix form validation for app settings page w/ buefy theme 2022-07-01 12:00:06 -05:00
Lance Edgar 11cda10ca5 Update changelog 2022-06-24 14:20:17 -05:00
Lance Edgar a289216eac Add autocomplete support for subdepartments 2022-06-14 17:52:59 -05:00
Lance Edgar c79ecab719 Add minimal buefy support for 'percentinput' field widget
this isn't complete but seems to work well enough so far..
2022-06-14 17:40:06 -05:00
Lance Edgar 4fb226ad98 Update changelog 2022-06-14 14:03:42 -05:00
Lance Edgar 6b466bb90f Add start date support for "future" pricing batch 2022-06-14 13:51:00 -05:00
Lance Edgar cb6499522e Let default grid page size correspond to first option 2022-06-14 11:25:29 -05:00
Lance Edgar 78a9ba5084 Update changelog 2022-05-15 16:47:31 -05:00
Lance Edgar cff4942769 Allow restricting to supported vendors only, for Receiving 2022-05-15 16:45:31 -05:00
Lance Edgar e3b1be5835 Expose config for identifying supported vendors
unfortunately must identify vendors at each app node separately, but
this is definitely still an improvement..
2022-05-15 16:04:22 -05:00
Lance Edgar 983a06abe3 Update changelog 2022-05-10 20:08:06 -05:00
Lance Edgar 75319c0d6a Add grid workarounds when data is list instead of query
ugh, this is not very intuitive.  pretty sure all that needs an
overhaul someday
2022-05-10 20:06:21 -05:00
Lance Edgar 18c3c57930 Sort roles list when viewing a user 2022-05-03 14:13:47 -05:00
Lance Edgar c371db3534 Update changelog 2022-05-03 13:43:57 -05:00
Lance Edgar a49aa77ec0 Tweak how family data is displayed 2022-05-03 13:36:14 -05:00
Lance Edgar 129455a31f Update changelog 2022-04-13 20:19:00 -05:00
Lance Edgar 10a801aa10 Flush early when populating batch, to ensure error is shown 2022-04-13 16:42:47 -05:00
Lance Edgar aea7f01047 Fix quotes for field helptext 2022-04-07 12:57:40 -05:00
Lance Edgar 56c5c4e540 Update changelog 2022-04-04 13:57:31 -05:00
Lance Edgar d48a92c88d Fix "touch" url for non-standard record types 2022-04-04 13:56:27 -05:00
Lance Edgar aa37fc3add Tweak where description field is shown for receiving batch 2022-04-03 14:42:40 -05:00
Lance Edgar 1bb41b21af Honor case vs. unit restrictions for new custorder
and expose them in config view
2022-03-29 18:19:14 -05:00
Lance Edgar 4e25e87bfb Log error when failing to submit new custorder batch 2022-03-29 17:43:42 -05:00
Lance Edgar 80b9593651 Add template kwargs stub for view_row() 2022-03-29 17:30:37 -05:00
Lance Edgar edef084121 Raise 404 if report not found 2022-03-29 17:19:23 -05:00
Lance Edgar fc32542f55 Add touch for report codes 2022-03-29 17:19:14 -05:00
Lance Edgar efcfd787af Update changelog 2022-03-29 11:49:24 -05:00
Lance Edgar 700b5f0b91 Let errors raise when showing poser reports 2022-03-29 11:39:32 -05:00
Lance Edgar dfc88193b2 Update changelog 2022-03-29 10:32:03 -05:00
Lance Edgar b4d5d70e4c Force session flush within try/catch, for batch refresh 2022-03-26 15:29:28 -05:00
Lance Edgar 1bad1cd3e7 Update changelog 2022-03-25 22:18:01 -05:00
Lance Edgar f0b6b62791 Use common logic for fetching batch handler 2022-03-25 13:49:39 -05:00
Lance Edgar ae1e9dba0f Improve vendor validation for new receiving batch 2022-03-25 12:33:37 -05:00
Lance Edgar 777a7afd46 Update changelog 2022-03-21 17:33:26 -05:00
Lance Edgar ab3a66542d Show link to txn as field when viewing trainwreck item 2022-03-17 21:19:05 -05:00
Lance Edgar c72d99794e Update changelog 2022-03-17 17:35:00 -05:00
Lance Edgar fc5b931007 Expose custorder xref markers for trainwreck 2022-03-17 16:59:50 -05:00
Lance Edgar cdae4bf8da Update changelog 2022-03-16 21:28:47 -05:00
Lance Edgar 71d8d5a70d Make problem report titles searchable in grid
at least if buefy version is new enough
2022-03-16 21:27:59 -05:00
Lance Edgar 322335f4ab Show helptext when applicable for "new batch from product query" 2022-03-15 22:58:19 -05:00
Lance Edgar 0904cda2c6 Always show batch params by default when viewing 2022-03-15 22:53:24 -05:00
Lance Edgar fad8b44be2 Update changelog 2022-03-15 19:55:55 -05:00
Lance Edgar da910b1414 Add default help link for Receiving feature
also stop showing "buyer" filter by default
2022-03-11 20:55:01 -06:00
Lance Edgar 6037519fbe Log error instead of warning, when batch population fails
user experience does not change but should help the admin to track
down the problem quicker..
2022-03-11 12:37:43 -06:00
Lance Edgar 7e15f75d44 Update changelog 2022-03-10 10:19:55 -06:00
Lance Edgar 25ecade1e6 Add "batch" to model title for new customer order batch
just to make things a bit more clear..
2022-03-10 10:18:43 -06:00
Lance Edgar 69161b7037 Default behavior for report chooser should *not* be form/dropdown 2022-03-10 09:55:42 -06:00
Lance Edgar 4e892d09ec Add line break for report chooser page 2022-03-10 09:53:15 -06:00
Lance Edgar e284370c4b Add Form.insert() method, to insert field based on index 2022-03-09 19:41:46 -06:00
Lance Edgar 01b78d7513 Add workaround when inserting new fields to form field list
i.e. if inserting "before" or "after" a field which does not exist
2022-03-09 18:39:12 -06:00
Lance Edgar b9fa324bb4 Cleanup view config syntax for vendor catalog batch
also make sure vendor autocomplete url exists, before using that
widget.  this can be an issue when app deals "directly" with POS when
making the batch etc.
2022-03-09 18:26:27 -06:00
Lance Edgar 0a42ec77b2 Cleanup grid filters for vendor catalog batches 2022-03-08 16:35:11 -06:00
Lance Edgar a9e64e931e Update changelog 2022-03-08 14:49:00 -06:00
Lance Edgar caa13f5a75 Bump the default Buefy version to 0.8.13
0.8.6 seemed to be causing some problems.  probably need to bump it
even further but 0.8.13 has been the "soft default" for a while..
2022-03-08 14:47:00 -06:00
Lance Edgar 9d5adf7793 Fix gotcha when defining new provider views
UI should show the key if label is missing
2022-03-07 17:40:48 -06:00
Lance Edgar 8f4b223125 Log warning/traceback when failing to include a configured view 2022-03-07 17:12:06 -06:00
Lance Edgar e38cfda076 Update changelog 2022-03-07 11:16:25 -06:00
Lance Edgar 511e185f33 Link to email settings profile when viewing email attempt 2022-03-07 10:53:12 -06:00
Lance Edgar 7c4e9b56c7 Let tailbone providers include static views
also add more native (batch) views to default list
2022-03-06 22:06:57 -06:00
Lance Edgar d18bade951 Let providers add extra views, options for includes config 2022-03-06 19:03:08 -06:00
Lance Edgar c4e872c94c Add the "provider" concept, let them configure db sessions
more to come...
2022-03-06 18:49:09 -06:00
Lance Edgar 57f3b942e5 Update changelog 2022-03-05 14:53:09 -06:00
Lance Edgar 37d4ef751c Add flash message when upgrade execution completes (pass or fail) 2022-03-05 14:31:43 -06:00
Lance Edgar b5effaa01b Add tailbone.views.essentials to include common / "core" views 2022-03-05 10:50:33 -06:00
Lance Edgar 66a15fb9a1 Add initial/basic support for configuring "included views"
also stub for managing "poser views"
2022-03-05 09:26:25 -06:00
Lance Edgar 33abeb1aca Improve the Poser Setup page; allow poser dir refresh 2022-03-05 09:12:01 -06:00
Lance Edgar 128657810b Add PoserMasterView, rename route for poser_reports
must use e.g. `poser_reports` and `poser_views` for the "meta" stuff,
i.e. maintenance of actual poser things, b/c it will be possible to
define poser views, and those routes should be `poser.*` probably..
2022-03-05 09:10:05 -06:00