Skip to content
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: Simplify MVP + Update to Phoenix 1.6 #89 #90

Merged
merged 127 commits into from
Aug 9, 2022

Conversation

nelsonic
Copy link
Member

@nelsonic nelsonic commented Jun 24, 2022

This PR contains a re-write of the app to use the PETAL Stack. 🚀
The bulk of the code is in LiveView to facilitate realtime interactions between devices. 😍
There isn't very much code ... scroll down to the CodeCov comment ... 131 lines of (relevant) code. 🤯
Most of the changes in this PR are docs/comments. 📜
Details in the Epic #89 ⛰️

The code + tutorial is split into a separate file: BUILDIT.md (I didn't have a better name ... feel free to re-name if you do!)

Thanks. 👌

@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality in-progress An issue or pull request that is being worked on by the assigned person priority-1 Highest priority issue. This is costing us money every minute that passes. labels Jun 24, 2022
@nelsonic nelsonic self-assigned this Jun 24, 2022
@nelsonic nelsonic temporarily deployed to dwylauth June 24, 2022 08:50 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth June 24, 2022 10:47 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth June 24, 2022 11:16 Inactive
@codecov
Copy link

codecov bot commented Jun 24, 2022

Codecov Report

Merging #90 (8c0545f) into main (298d680) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #90   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19         7   -12     
  Lines          167       131   -36     
=========================================
- Hits           167       131   -36     
Impacted Files Coverage Δ
lib/app/item.ex 100.00% <100.00%> (ø)
lib/app/timer.ex 100.00% <100.00%> (ø)
lib/app_web/controllers/auth_controller.ex 100.00% <100.00%> (ø)
lib/app_web/controllers/init_controller.ex 100.00% <100.00%> (ø)
lib/app_web/live/app_live.ex 100.00% <100.00%> (ø)
lib/app_web/router.ex 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@nelsonic nelsonic temporarily deployed to dwylauth June 25, 2022 15:20 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth June 25, 2022 20:39 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth June 26, 2022 06:41 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth June 27, 2022 16:17 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth August 7, 2022 20:31 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth August 7, 2022 20:33 Inactive
@nelsonic
Copy link
Member Author

nelsonic commented Aug 7, 2022

@SimonLab I feel this is now in a reviewable state. (Hope you agree ... 🤞 )
Please take a look when you're back at your desk on Monday Morning. Thanks! 🙏
Feedback very much welcome. 👌

@nelsonic nelsonic assigned SimonLab and unassigned nelsonic Aug 7, 2022
@nelsonic nelsonic added awaiting-review An issue or pull request that needs to be reviewed and removed in-progress An issue or pull request that is being worked on by the assigned person labels Aug 7, 2022
@nelsonic nelsonic changed the title WiP PR: Simplify MVP + Update to Phoenix 1.6 #89 PR: Simplify MVP + Update to Phoenix 1.6 #89 Aug 7, 2022
@nelsonic nelsonic temporarily deployed to dwylauth August 8, 2022 03:49 Inactive
@nelsonic nelsonic temporarily deployed to dwylauth August 8, 2022 04:13 Inactive
Copy link
Member

@SimonLab SimonLab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix a few typos in the Readme and BUILDIT files

BUILDIT.md Outdated Show resolved Hide resolved
BUILDIT.md Outdated Show resolved Hide resolved
BUILDIT.md Outdated Show resolved Hide resolved
BUILDIT.md Outdated Show resolved Hide resolved
BUILDIT.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
…dance! dwyl/dev-setup#45 ...]

Co-authored-by: Simon <simon.labondance@gmail.com>
@nelsonic nelsonic temporarily deployed to dwylauth August 8, 2022 14:40 Inactive
Copy link
Member Author

@nelsonic nelsonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonLab typo fixes applied. ✅ (thanks again)

Copy link
Member

@SimonLab SimonLab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I might spot more things to improve on later on, but I'll open issues for them
👍

@@ -1,5 +1,4 @@
export ALLOW_API_ORIGINS=*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we use this env?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope it's a remnant from the previous version where we had an API and a Frontend UI. 👍
Feel free to remove when you are doing your work. #119

@impl true
def mount(_params, _session, socket) do
# subscribe to the channel
if connected?(socket), do: AppWeb.Endpoint.subscribe(@topic)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do some research and write somwhere when to use Endpoint vs PubSub

@SimonLab SimonLab merged commit 2e9dcdd into main Aug 9, 2022
@SimonLab SimonLab deleted the phoenix-1.6-2022-refresh-issue-#89 branch August 9, 2022 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review An issue or pull request that needs to be reviewed enhancement New feature or enhancement of existing functionality priority-1 Highest priority issue. This is costing us money every minute that passes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants