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

Make it a spa! #134

Merged
merged 5 commits into from
Feb 3, 2016
Merged

Make it a spa! #134

merged 5 commits into from
Feb 3, 2016

Conversation

mattnibs
Copy link
Member

@mattnibs mattnibs commented Feb 2, 2016

Lots of stuff going, here are the main features:

  • Moved the /run app to index
  • Added directory listing functionality
  • Implemented React-Router: changing urls no longer cause the entire app
    to refresh

Some of the under-the-hood changes:

  • Restructured run app to use redux
  • Add font-awesome to app
  • Standardized error handler for api

@mattnibs
Copy link
Member Author

mattnibs commented Feb 2, 2016

@go-oleg @davidvgalbraith

@mattnibs mattnibs force-pushed the client-dir branch 2 times, most recently from c4c2acc to ec5576d Compare February 2, 2016 19:50
@mattnibs
Copy link
Member Author

mattnibs commented Feb 2, 2016

screenshot:
screen shot 2016-02-02 at 11 51 47 am

let rendezvous;

function bundleReceived(bundle) {
api.describe(bundle)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should return this promise and return bundleReceived(res.bundle) on line 23 so that the catch on line 24 will catch errors from this.

Copy link
Member Author

Choose a reason for hiding this comment

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

snap, yeah #goodCall


export function newBundle(bundle, inputs) {
return {
type: NEW_BUNDLE,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thoughts on following FSA (i.e. sticking stuff in payload)? I started following it in some repo somewhere. Not saying we have to switch to it but just wanted to bring it up in case you think its a good idea/haven't seen it.

Copy link
Contributor

Choose a reason for hiding this comment

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

-1, as @aswan would say "a foolish consistency is the hobgoblin of small minds".

Copy link
Member Author

Choose a reason for hiding this comment

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

Its a really good idea, I'll switch to it future work. Not going to do it in this pr.

@mattnibs mattnibs force-pushed the client-dir branch 4 times, most recently from 7423aa1 to c042895 Compare February 3, 2016 18:33
@@ -15,10 +15,14 @@ class JuttleViewer extends Component {
}

render() {
let juttleSource = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

juttleSource seemed like a better variable name than the generic "bundle", can we keep it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think changing for consistency sake was a good idea (the thing is called a bundle everywhere else). As for changing bundle to juttleSource, thats a debate for another place

@dmehra
Copy link
Collaborator

dmehra commented Feb 3, 2016

What's the plan for testing things like the directory listing functionality?

@mattnibs
Copy link
Member Author

mattnibs commented Feb 3, 2016

Well I'm not going to handle it here because of the move to workbench... but, for server side we already have unit tests. For client side I'll have to mock the server and use jsdom to listen for path changes (if this is possible)

@mattnibs
Copy link
Member Author

mattnibs commented Feb 3, 2016

Just split the commits up to isolate changes in src for the move to workbench-app

@dmehra
Copy link
Collaborator

dmehra commented Feb 3, 2016

This seems like a big addition of new code, 500+ lines. If the tests are not coming with this PR, please file an issue that outlines which testcases should be added, and that the plan is to do it with jsdom, after the switch to workbench repo.

});
}

export let getDirectories = (path) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this function returns a list of directories and juttle files in a given path? maybe something like getDirectory?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah

Matt Nibecker added 3 commits February 3, 2016 11:59
Lots of stuff going, here are the main features:
- Moved the /run app to index
- Added directory listing functionality
- Implemented React-Router: changing urls no longer cause the entire app
  to refresh

Some of the under-the-hood changes:
- Restructured run app to use redux
- Add font-awesome to app
- Standardized error handler for api
@go-oleg
Copy link
Collaborator

go-oleg commented Feb 3, 2016

looks good overall

mattnibs added a commit that referenced this pull request Feb 3, 2016
@mattnibs mattnibs merged commit 1b75dd3 into master Feb 3, 2016
@mattnibs mattnibs deleted the client-dir branch February 3, 2016 21:10
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.

4 participants