-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PR] Phoenix 1.7rc upgrade #55
Conversation
This is super frustrating. The old way was using I really don't want to have to import I shouldn't need to... 😤 |
Opened a question yesterday night but it was pending. https://elixirforum.com/t/how-to-use-embed-heex-inside-heex-phoenix-1-7rc/52281 (although I think only one is viable) |
Got it to work. Explained it here -> https://elixirforum.com/t/how-to-use-embed-heex-inside-heex-phoenix-1-7rc/52281/4?u=luchoturtle. Calling Let's keep going... |
Great that |
Calling actions from the view seems to be the bane of my existence. It's super demotivating when nothing seems to work. |
... Why does it work here? <.table id="items" rows={@items} row_click={&JS.navigate(~p"/items/#{&1}")}>
<:action :let={item}>
<.link href={~p"/items/#{item}"} method="delete" data-confirm="Are you sure?">
Delete
</.link>
</:action>
</.table>
And not simply? <.link
class="destroy"
navigate={~p"/items/#{item.id}"}
method="delete"
>
</.link>
And if I want to use I mean, if I run
Why isn't there a simple way of accessing Here's the question I posted on Elixir Forums https://elixirforum.com/t/cant-get-delete-links-to-work-in-phoenix-1-7rc/52317 Sigh |
Thank you for capturing your frustrations on this quest. 🙏 |
Finished updating all the README and all the permalinks in each step. |
Assigning his over to @nelsonic . Need to get this merged in order to deploy it to Fly.io |
@@ -0,0 +1,3 @@ | |||
defmodule App.Mailer do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that we aren't using mailer in this app, could we just delete this file? ✂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want me to delete these files? Why did you merge if you gave this feedback?
@@ -0,0 +1,621 @@ | |||
defmodule AppWeb.CoreComponents do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This auto-generated file is massive. 😮
But at least it has good docs. 👍
JS commands may be passed to the `:on_cancel` and `on_confirm` attributes | ||
for the caller to react to each button press, for example: | ||
|
||
<.modal id="confirm" on_confirm={JS.push("delete")} on_cancel={JS.navigate(~p"/posts")}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modals
are horrible in most cases, don't use them! dwyl/product-ux-research#38
) | ||
end | ||
|
||
def show_modal(js \\ %JS{}, id) when is_binary(id) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't.
@@ -50,13 +50,23 @@ msgid "are still associated with this entry" | |||
msgstr "" | |||
|
|||
## From Ecto.Changeset.validate_length/3 | |||
msgid "should have %{count} item(s)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we actually using gettext
for translating the UI? 💭
If so, we could add a whole new section to this tutorial! 💡
@@ -50,13 +50,23 @@ msgid "are still associated with this entry" | |||
msgstr "" | |||
|
|||
## From Ecto.Changeset.validate_length/3 | |||
msgid "should have %{count} item(s)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we actually using gettext
for translating the UI? 💭
If so, we could add a whole new section to this tutorial! 💡
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuchoTurtle this is a great update. Nice work! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuchoTurtle this is a great update. Nice work! 🎉
closes #54
Still very much in progress. It's taking much longer than expected. The migration guide isn't really helping much, as I'm constantly getting stuck with routing.
The
Routes.Helper
isn't dynamically created no more and there are no instances of how to fix this in the guide, so I had to look in the docs for anything similar.I'll keep on working 👍