Skip to content

extract the form state out of the branches view - #847

Merged
niik merged 10 commits into
masterfrom
down-with-homework
Feb 6, 2017
Merged

niik merged 10 commits into
masterfrom
down-with-homework

Conversation

@shiftkey

Copy link
Copy Markdown
Member

Fixes #846

@joshaber

Copy link
Copy Markdown
Contributor

assigning @niik since he has the most context here

Comment thread app/src/lib/dispatcher/dispatcher.ts Outdated
return this.appStore._clearContextualCommitMessage(repository)
}

/** Create a new branch from the given starting point and check it out. */

This comment was marked as spam.

Comment thread app/src/lib/dispatcher/dispatcher.ts Outdated
}

/** Create a new branch from the given starting point and check it out. */
public setBranchesPopoverState(repository: Repository, showCreateForm: boolean) {

This comment was marked as spam.

Comment thread app/src/lib/dispatcher/app-store.ts Outdated
return Promise.resolve()
}

public _setBranchesPopoverState(repository: Repository, showCreateBranchForm: boolean) {

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member Author

🍭

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member Author

🌔

@joshaber

Copy link
Copy Markdown
Contributor

So I feel bad about continuing to beat this 🐴, but...

This PR and #863 handle the "how do we indicate expansion" differently. I think your initial instinct of

/** app-state.ts */

{ type: FoldoutType.Branch, expandCreateForm?: boolean }

was pretty spot-on. You just needed to stop storing it in the component's state too.

So that's the route I've taken in #863. Are we ok with standardizing on that approach?

@shiftkey

shiftkey commented Feb 1, 2017

Copy link
Copy Markdown
Member Author

@joshaber not at all. Any objections @niik?

@niik

niik commented Feb 1, 2017

Copy link
Copy Markdown
Member

@joshaber not at all. Any objections @niik?

None

@shiftkey shiftkey changed the title extract the form state out of the branches view [WIP] extract the form state out of the branches view Feb 1, 2017
@shiftkey

shiftkey commented Feb 6, 2017 •

Copy link
Copy Markdown
Member Author

I think that's everything. Let's see if there's anything else left to review.

EDIT: actually, let me look over #863 and ensure I'm consistent with that.

@shiftkey shiftkey changed the title [WIP] extract the form state out of the branches view extract the form state out of the branches view Feb 6, 2017
@shiftkey

shiftkey commented Feb 6, 2017

Copy link
Copy Markdown
Member Author

🌔

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.

3 participants