liveview-native / elixirconf_chat

ElixirConf 2023 Chat App, built with LiveView Native
28 stars 6 forks source link

MacOS - Login fails #70

Open bcardarella opened 1 year ago

bcardarella commented 1 year ago

During attempted login the app will "reset". I see it flash and it seems to start the login process over. I can get to the point of getting the code in the email but when I enter in the code the app bombs

cohawk commented 1 year ago

appears to be due to the handle_event("set_login_code_buffer") code being removed FYI

https://github.com/liveview-native/elixirconf_chat/commit/5b75249f9b9df679950a3353446857d246a18c73#diff-60d8e7b213e19a0d212caeac071c07d29234a0035e2e952c201cdca8cc031c5aL98

bcardarella commented 1 year ago

Stacktrace captured from Fly:

2023-09-01T21:32:00.841 app[e2865d40c76e58] mia [info] ** (FunctionClauseError) no function clause matching in ElixirconfChatWeb.AuthLive.handle_event/3

2023-09-01T21:32:00.841 app[e2865d40c76e58] mia [info] (elixirconf_chat 0.1.0) lib/elixirconf_chat_web/live/auth_live.ex:55: ElixirconfChatWeb.AuthLive.handle_event("set_login_code_buffer", %{"login_code" => "906154"}, #Phoenix.LiveView.Socket<id: "phx-F4DjsrY2ikTkSweR", endpoint: ElixirconfChatWeb.Endpoint, view: ElixirconfChatWeb.AuthLive, parent_pid: nil, root_pid: #PID<0.4331.0>, router: ElixirconfChatWeb.Router, assigns: %{__changed__: %{}, error: nil, flash: %{}, live_action: nil, login_code_buffer: "", native: %LiveViewNativePlatform.Env{custom_modifiers: [], eex_engine: Phoenix.LiveView.TagEngine, modifiers_struct: LiveViewNativeSwiftUi.Modifiers, modifiers: %LiveViewNativeSwiftUi.Modifiers{stack: []}, platform_config: %LiveViewNativeSwiftUi.Platform{app_name: nil, os_name: "iOS", os_version: "16.6", simulator_opts: nil, user_interface_idiom: "pad", custom_modifiers: []}, platform_id: :swiftui, platform_modifiers: [z_index: LiveViewNativeSwiftUi.Modifiers.ZIndex, unredacted: LiveViewNativeSwiftUi.Modifiers.Unredacted, underline: LiveViewNativeSwiftUi.Modifiers.Underline, truncation_mode: LiveViewNativeSwiftUi.Modifiers.TruncationMode, trim: LiveViewNativeSwiftUi.Modifiers.Trim, transition: LiveViewNativeSwiftUi.Modifiers.Transition, transform_effect: LiveViewNativeSwiftUi.Modifiers.TransformEffect, tracking: LiveViewNativeSwiftUi.Modifiers.Tracking, toolbar_visibility: LiveViewNativeSwiftUi.Modifiers.ToolbarVisibility, toolbar_title_menu: LiveViewNativeSwiftUi.Modifiers.ToolbarTitleMenu, toolbar_role: LiveViewNativeSwiftUi.Modifiers.ToolbarRole, toolbar_color_scheme: LiveViewNativeSwiftUi.Modifiers.ToolbarColorScheme, toolbar_background: LiveViewNativeSwiftUi.Modifiers.ToolbarBackground, toolbar: LiveViewNativeSwiftUi.Modifiers.Toolbar, toggle_style: LiveViewNativeSwiftUi.Modifiers.ToggleStyle, tint: LiveViewNativeSwiftUi.Modifiers.Tint, text_selection: LiveViewNativeSwiftUi.Modifiers.TextSelection, text_input_autocapitalization: LiveViewNativeSwiftUi.Modifiers.TextInputAutocapitalization, text_field_style: LiveViewNativeSwiftUi.Modifiers.TextFieldStyle, text_content_type: LiveViewNativeSwiftUi.Modifiers.TextContentType, text_case: LiveViewNativeSwiftUi.Modifiers.TextCase, table_style: LiveViewNativeSwiftUi.Modifiers.TableStyle, tab_view_style: LiveViewNativeSwiftUi.Modifiers.TabViewStyle, tab_item: LiveViewNativeSwiftUi.Modifiers.TabItem, symbol_variant: LiveViewNativeSwiftUi.Modifiers.SymbolVariant, symbol_rendering_mode: LiveViewNativeSwiftUi.Modifiers.SymbolRenderingMode, swipe_actions: LiveViewNativeSwiftUi.Modifiers.SwipeActions, submit_scope: LiveViewNativeSwiftUi.Modifiers.SubmitScope, submit_label: LiveViewNativeSwiftUi.Modifiers.SubmitLabel, stroke_border: LiveViewNativeSwiftUi.Modifiers.StrokeBorder, ...], render_macro: :sigil_SWIFTUI, tag_handler: LiveViewNative.TagEngine, template_extension: ".swiftui.heex", template_namespace: LiveViewNativeSwiftUi}, platform_id: :swiftui, user: nil}, transport_pid: #PID<0.4322.0>, ...>)
cohawk commented 1 year ago

this was resolved here FYI - https://github.com/liveview-native/elixirconf_chat/commit/3caf2a0ea2f8f6cfbe3edf411b75054935e9d1f6