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

Componentize UI parts #2

Merged
merged 7 commits into from
May 17, 2015
Merged

Componentize UI parts #2

merged 7 commits into from
May 17, 2015

Conversation

srid
Copy link
Owner

@srid srid commented May 17, 2015

All of model, actions, update, view of conceptual UI parts are put in their own file(s). This should make it easier to add more UI parts.

There were some challenges such as having to chain actions from master mailbox to the component's mailbox due to lack of interface types and action composition in Elm (See the Action type in src/Chronicle/Controller.elm).

srid added 7 commits May 16, 2015 20:42
Search component.

The action type chaining may not be ideal.
but keep view in a separate file to avoid cyclic imports. it further
gives us the advantage of keeping semantics and UI separate.
Elm handled it well (no runtime errors), but now I’m more cautious to
over-engineer this any further.
srid added a commit that referenced this pull request May 17, 2015
@srid srid merged commit fdd0d9a into master May 17, 2015
@srid srid deleted the componentize branch May 17, 2015 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant