Current section

192 Versions

Jump to

Compare versions

5 files changed
+18 additions
-4 deletions
  @@ -5,6 +5,17 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
5 5
6 6 <!-- changelog -->
7 7
8 + ## [v1.2.9](https://github.com/ash-project/ash_phoenix/compare/v1.2.8...v1.2.9) (2023-03-09)
9 +
10 +
11 +
12 +
13 + ### Bug Fixes:
14 +
15 + * Patch for new Form Access Protocol (#77)
16 +
17 + * Remove line causing errors (#76)
18 +
8 19 ## [v1.2.8](https://github.com/ash-project/ash_phoenix/compare/v1.2.7...v1.2.8) (2023-03-06)
  @@ -2,7 +2,7 @@
2 2
3 3 The AshPhoenix plugin adds lots of helpers for working with Phoenix Liveview (and regular views).
4 4
5 - `{:ash_phoenix, "~> 1.2.8"}`
5 + `{:ash_phoenix, "~> 1.2.9"}`
6 6
7 7 ## Whats in the box?
  @@ -51,4 +51,4 @@
51 51 {<<"optional">>,false},
52 52 {<<"repository">>,<<"hexpm">>},
53 53 {<<"requirement">>,<<"~> 0.15">>}]]}.
54 - {<<"version">>,<<"1.2.8">>}.
54 + {<<"version">>,<<"1.2.9">>}.
  @@ -631,7 +631,6 @@ defmodule AshPhoenix.FilterForm do
631 631 @doc "Returns the list of available predicates for the given resource, which may be functions or operators."
632 632 def predicates(resource) do
633 633 resource
634 - |> Ash.DataLayer.data_layer()
635 634 |> Ash.DataLayer.functions()
636 635 |> Enum.concat(Ash.Filter.builtin_functions())
637 636 |> Enum.filter(fn function ->
  @@ -965,6 +964,10 @@ defmodule AshPhoenix.FilterForm do
965 964 def input_value(%{negated?: negated?}, _, :negated), do: negated?
966 965 def input_value(%{operator: operator}, _, :operator), do: operator
967 966
967 + def input_value(form, phoenix_form, :components) do
968 + to_form(form, phoenix_form, :components, [])
969 + end
970 +
968 971 def input_value(_, _, field) do
969 972 raise "Invalid filter form field #{field}. Only :id, :negated, and :operator are supported"
970 973 end
  @@ -5,7 +5,7 @@ defmodule AshPhoenix.MixProject do
5 5 Utilities for integrating Ash with Phoenix
6 6 """
7 7
8 - @version "1.2.8"
8 + @version "1.2.9"
9 9
10 10 def project do
11 11 [