3
0
Fork 0
Commit graph

41 commits

Author SHA1 Message Date
343567128f fix: use smarter default for grid.sort_multiple based on model class 2025-12-20 21:45:50 -06:00
5b6c686a9d fix: discard non-declared field values for grid vue data 2025-12-20 19:48:04 -06:00
7fcb331806 feat: add "complete" (sic) timezone support
at least for now, this is enough to let admin define the global
default timezone for app, and override system local timezone.

eventually should support per-user timezone..some day..
2025-12-16 22:52:33 -06:00
dd25d98e7d fix: fix 'attribute-defined-outside-init' for pylint 2025-09-01 11:53:50 -05:00
4d0693862d fix: format all code with black
and from now on should not deviate from that...
2025-08-31 12:26:43 -05:00
fcfa47af4a fix: add default sorter, tools for basic table-element grid 2025-08-09 08:44:11 -05:00
37ae69de00 fix: add value choice/enum support for grid filters
also add `set_enum()` method for grids, which updates column renderer
as well as filter choices
2025-02-21 13:27:52 -06:00
80aae74907 fix: add hidden flag for grid columns
sometimes a column is rendered such that its data cannot be used for
other component logic.  in which case, can add a hidden column to pass
the raw data, for component use
2025-02-18 16:31:25 -06:00
70ed2dc78c fix: do not auto-create grid filters for uuid columns 2025-01-27 15:55:07 -06:00
29d3183a88 fix: add render_percent() method for Grid
also shortcut for grid.set_renderer()
2025-01-25 22:34:49 -06:00
e618957381 tests: fix tests per upstream changes 2025-01-15 17:03:13 -06:00
a405b19217 fix: add render_date() method for grids
and corresponding built-in for set_renderer()
2025-01-13 17:41:02 -06:00
b3f1f8b6d9 fix: improve built-in grid renderer logic
- add `render_batch_id()`
- allow kwargs for `render_currency()`
- caller may specify built-in renderer w/ string identifier
2025-01-06 16:56:31 -06:00
7895ce4676 tests: move WebTestCase to wuttaweb.testing module 2025-01-06 16:47:48 -06:00
a612bf3846 fix: add grid renderers for bool, currency, quantity
also set bool renderer by default when possible
2025-01-02 20:13:04 -06:00
84ab931081 fix: include grid filters for all column properties of model class
by default anyway.  previous logic started from `grid.columns` and
then only included column properties, but now we start from the model
class itself and let sa-utils figure out the default list
2024-12-28 21:14:20 -06:00
3cad7f1b13 fix: improve support for date, datetime fields in grids, forms 2024-12-12 15:15:00 -06:00
Lance Edgar
dcdc0e7dab fix: improve support for random objects with grid, master view
thus far we expected either dict or "native" ORM object which can
essentially behave like a dict when needed.  but a "non-native" object
may not behave like a dict and this hopefully fixes the logic to allow
for those anyway..
2024-11-25 19:11:41 -06:00
Lance Edgar
6fa8b0aeaa feat: add basic "delete results" grid tool
this is done synchronously with no progress indicator yet
2024-08-24 14:26:13 -05:00
Lance Edgar
e332975ce9 feat: add per-row css class support for grids 2024-08-23 14:14:41 -05:00
Lance Edgar
f6fb6957e3 feat: improve grid filter API a bit, support string/bool filters 2024-08-23 12:23:49 -05:00
Lance Edgar
1443f5253f feat: add initial support for proper grid filters
only "text contains" filter supported so far, more to come as needed
2024-08-22 14:35:49 -05:00
Lance Edgar
9751bf4c2e feat: add initial filtering logic to grid class
still missing the actual filters, subclass must provide those for now
2024-08-21 20:15:23 -05:00
Lance Edgar
a042d511fb feat: add "searchable" column support for grids
frontend / basic only
2024-08-21 15:50:36 -05:00
Lance Edgar
770c4612d5 feat: improve page linkage between role/user/person
- show Users grid when viewing a Role
- add hyperlinks between things
2024-08-21 15:09:05 -05:00
Lance Edgar
f7e371d21d fix: add render_vue_finalize() methods for grids, forms
to make the templates just that much cleaner
2024-08-19 13:40:23 -05:00
Lance Edgar
8d6f4ad368 feat: add multi-column sorting (frontend or backend) for grids 2024-08-18 19:52:11 -05:00
Lance Edgar
58f7a862a2 feat; add single-column sorting (frontend or backend) for grids 2024-08-18 14:05:10 -05:00
Lance Edgar
f21efbab9f fix: improve grid display when data is empty 2024-08-17 11:48:06 -05:00
Lance Edgar
d151758c48 feat: add backend pagination support for grids 2024-08-16 22:52:24 -05:00
Lance Edgar
dd3d640b1c feat: add initial/basic pagination for grids
so far this is only for client-side pagination; which means *all* grid
data is dumped to JSON for Vue access.  backend pagination coming soon
2024-08-16 18:19:24 -05:00
Lance Edgar
cd706821b2 feat: add form/grid label auto-overrides for master view 2024-08-15 20:51:36 -05:00
Lance Edgar
be8a45e543 fix: make some tweaks for better tailbone compatibility
this is the result of minimally testing the PersonView from wutta,
configured via a tailbone app.

had to add the `view_profile()` stub, pretty sure we want that..?
2024-08-15 02:10:08 -05:00
Lance Edgar
97e914c2e0 feat: expose User "roles" for editing 2024-08-13 21:44:56 -05:00
Lance Edgar
bdfa0197b2 feat: improve widget, rendering for Role notes 2024-08-13 21:44:53 -05:00
Lance Edgar
eac3b81918 feat: add Users view; improve CRUD master for SQLAlchemy models 2024-08-12 21:17:08 -05:00
Lance Edgar
fc01fa283a feat: add basic support for SQLAlchemy model in master view
must more to be done for this yet, but basics are in place for the
Setting view
2024-08-11 16:52:47 -05:00
Lance Edgar
c46b42f76d feat: add basic Delete support for CRUD master view 2024-08-11 09:57:01 -05:00
Lance Edgar
e0de4e9a65 feat: add auto-link (to "View") behavior for grid columns 2024-08-10 16:45:12 -05:00
Lance Edgar
4c467f5267 feat: add basic support for "view" part of CRUD
still no SQLAlchemy yet, view must be explicit about data/model.  but
should support simple dict records, which will be needed in a few
places anyway
2024-08-07 19:47:24 -05:00
Lance Edgar
754e0989e4 feat: add basic Grid class, and /settings master view 2024-08-07 14:00:53 -05:00