Commit graph

104 commits

Author SHA1 Message Date
Zach Daniel
26672093c5 chore: fix session option 2023-07-17 23:10:35 -04:00
Zach Daniel
83d548e44b fix: fix behaviour and support on_mount and session 2023-07-17 23:05:43 -04:00
Zach Daniel
1e0d33876e chore: remove IO.inspect 2023-07-17 22:12:24 -04:00
Zach Daniel
1adcd9b9a2 improvement: support setting an actor
note to users: this is kind of a hack. We're adding it for
edge cases, but its not a full solution.
2023-07-17 22:11:29 -04:00
Zach Daniel
5bd76a7104 improvement: show all errors on form submit 2023-07-13 16:35:12 -04:00
Zach Daniel
b237d031f0 fix: use authorize?: false when reading actor from session 2023-07-13 12:41:03 -04:00
Wout De Puysseleir
a26b0ff503
improvement: Improve frontend a little bit (#52)
* First cut of UI improvements for resource landing page

* improvement: Use overflow-auto instead of overflow-scroll on table

* chore: Run `npm build`

---------

Co-authored-by: Josh Price <josh@alembic.com.au>
2023-06-12 23:49:49 -04:00
Zach Daniel
37331eedfa fix: don't authorize actor read 2023-04-22 08:18:52 -06:00
Kevin Mathew
58444c47c7
fix: Admin links are not aware of the scope where ash_admin is called (#49)
* WIP - pass 1

* Pass prefix in session map and use in page_live.ex

* Update logic and add test
2023-03-25 21:09:46 -04:00
Zach Daniel
a8554182c5 fix: handle cases where actions of a given type don't exist 2023-03-20 10:27:29 -04:00
Rebecca Le
0f68ae8685
fix: Add missing mix.lock changes (#43)
* fix: Add missing mix.lock changes

* chore: Remove duplicated and unused template file
2023-02-28 07:00:02 -05:00
Rebecca Le
dce0baa7a2
feat: Inline style nonce (#42)
* chore: Support Phoenix 1.7 final

* feat: Specify nonces on inline styles/JavaScript so they can be allowed by CSPs

* docs: Remove note about Phoenix 1.7 from README
2023-02-27 23:04:08 -05:00
Zach Daniel
2cca46895c chore: credo 2023-02-01 00:20:23 -05:00
Zach Daniel
3002af9ec6 improvement: only show 1000k records of unpaginated reads 2023-01-26 02:49:11 -05:00
Zach Daniel
cdb3b469ab fix: don't need to track root level fields 2022-12-20 22:58:26 -05:00
Zach Daniel
83fa8ebd8d fix: properly render template 2022-12-19 22:28:58 -05:00
Zach Daniel
d4bc664f72 fix: name our live session not *default* 🤦 2022-12-12 10:44:27 -05:00
Zach Daniel
8d671d28f9 chore: fix build 2022-11-03 10:10:59 -07:00
Zach Daniel
94f67cd321 chore: format code
fix: fix markdown editor and make things cleaner
2022-11-01 03:12:56 -04:00
Zach Daniel
e2bd5f3d5f improvement: add markdown editor 2022-10-31 16:58:12 -04:00
Zach Daniel
2178f709a8 fix: handle missing api/resource better
fix: if pagination is available but not required, opt to use it

Generally the admin UI will be looking at "everything" and so we should assume that if an action
*can* be paginated, that it *should* be.
2022-10-20 13:29:26 -04:00
Zach Daniel
a68b3a76de fix: don't call into ash_postgres for tables anymore 2022-09-08 13:25:45 -04:00
Zach Daniel
8d841c597a fix: properly match on Code.ensrue_compiled/1 output 2022-09-07 16:12:33 -04:00
Zach Daniel
46427f09c6 improvement: update to latest ash 2022-08-30 23:49:33 -06:00
Rebecca Le
4a502c2ced
fix: Binary data display (#25) 2022-08-25 10:54:53 -04:00
Zach Daniel
b8858a933e improvement: specify include_non_map_types?: true for auto forms 2022-08-23 22:49:42 -04:00
Zach Daniel
40ea12b3f4 improvement: support value-backed nested forms 2022-08-22 15:45:59 -04:00
Zach Daniel
6d9a8d83e6 fix: remove unnecessary code
fix: fix data loading, change tracking (handled by AshPhoenix.Form)
2022-08-15 15:31:55 -04:00
Zach Daniel
d87eb2a1dc improvement: use new authorize? configuration 2022-08-10 17:18:53 -04:00
Rebecca Le
ed12d79866
Skip check for embedded types when rendering attributes (#22) 2022-06-27 10:49:10 -04:00
Josh Price
dbd75bf3f3
fix: failing error case for nested forms (#21) 2022-05-31 10:17:46 -04:00
Josh Price
c9c0a8cb4f
feat: allow setting primary read action as default resource page (#19) 2022-05-23 12:41:19 -04:00
Zach Daniel
0fd921b46f chore: format 2022-05-20 11:14:56 -04:00
Theo Harris
a3c5343849
docs: Docs formatting (#17)
* Add formatting for api.ex docs

* Minor docs tweaks and corrections
2022-05-20 11:06:04 -04:00
Rebecca Le
c050c8c228
improvement: Top nav resource grouping (#15) 2022-05-19 12:22:37 -04:00
Zach Daniel
cae33cafbc fix: get the original value using AshPhoenix.Form.value/2 2022-05-18 20:33:40 -04:00
Zach Daniel
6963195cd5 improvement: add DateInput for dates 2022-03-20 20:38:29 -04:00
Zach Daniel
deac48365d fix: a bunch of behavior fixes, getting the demo to snuff with new Ash
improvement: update tons of dependencies
2022-03-17 14:18:01 -04:00
Zach Daniel
ef0e947cd6 fix: fix tenant/actor session w/ new phx version 2022-03-17 10:38:41 -04:00
Zach Daniel
ed0373a951 fix: various other fixes for events and hooks 2022-03-17 00:22:02 -04:00
Zach Daniel
0cc5473cfa fix: fix issues w/ admin UI not rendering 2022-03-16 23:34:52 -04:00
Zach Daniel
591e83a011 docs: update setup instructions with new process 2021-11-14 00:22:14 -05:00
Zach Daniel
1f95223309 fix: handle new liveview arg pattern 2021-11-13 23:44:15 -05:00
Zach Daniel
b214535f0c improvement: remove compile-time router, use params instead
improvement!: support latest surface/phoenix
2021-09-01 02:43:31 -04:00
Zach Daniel
dcdbf83818 chore: remove unused variables 2021-07-24 18:39:32 -04:00
Zach Daniel
126f1243a0 chore: remove IO.inspect 2021-07-24 18:37:47 -04:00
Zach Daniel
2f72ababa8 fix: render values properly when no format set 2021-07-24 18:37:05 -04:00
Zach Daniel
24ac7f8894 chore: add some examples in dev, regen formatter 2021-07-23 20:31:14 -04:00
Nicol Acosta
46d6076431
improvement: define custom formats for any field (#7)
Co-authored-by: Nicol Acosta <nicol@landonearth.com>
2021-07-23 20:20:14 -04:00
Zach Daniel
289961b737 chore: fix typespecs, update .formatter 2021-07-23 13:34:02 -04:00