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

#36 Creates search/drinks page #111

Merged
merged 30 commits into from
Oct 23, 2018
Merged

#36 Creates search/drinks page #111

merged 30 commits into from
Oct 23, 2018

Conversation

Cleop
Copy link
Collaborator

@Cleop Cleop commented Oct 18, 2018

#36 Creates search/drinks page
#37 Enables filters on search/drinks page to filter by drink type

@Cleop Cleop self-assigned this Oct 18, 2018

drinkDecoder : Decoder Drink
drinkDecoder =
Decode.map3 Drink
Copy link
Contributor

Choose a reason for hiding this comment

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

consider using decode pipeline in next iteration. https://github.com/NoRedInk/elm-json-decode-pipeline 👍

schema "drink_types" do
field(:name, :string)
field(:entry_id, :string)
field(:deleted, :boolean)
Copy link
Contributor

@nelsonic nelsonic Oct 22, 2018

Choose a reason for hiding this comment

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

alog should automatically add the :deleted column to any table where it is used.
see: dwyl/phoenix-ecto-append-only-log-example#7 (comment)

dwyl/alog#5

join_keys: [drink_type_id: :id, drink_id: :id]
)

timestamps()
Copy link
Contributor

Choose a reason for hiding this comment

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

we probably need to over-ride this phoenix macro as we don't need the updated_at column.

})
}

function swipe(el, callback){
Copy link
Contributor

Choose a reason for hiding this comment

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

please add JSDOC comments to JavaScript code so others can understand it.
ideally state the source of the code.

@@ -0,0 +1,15 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

please delete this file in the next iteration.

field(:logo, :string)
field(:website, :string)
field(:entry_id, :string)
field(:deleted, :boolean, default: false)
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -0,0 +1,41 @@
<%= form_for @changeset, @action, fn f -> %>
Copy link
Contributor

Choose a reason for hiding this comment

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

should this form be rendered by autoform ?

Copy link
Contributor

@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.

@Cleop & @Danwhy this looks good. thanks! 👍

@nelsonic nelsonic merged commit 92608a4 into master Oct 23, 2018
@nelsonic nelsonic deleted the search-drinks-page branch October 23, 2018 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants