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

Remove TableSectionViewModel.collapsed, close #120 #121

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

jessesquires
Copy link
Collaborator

This is seems to be a vestigial aspect of the framework from early PlanGrid days.

We don't use this anywhere in PlanGrid.

To achieve this sort of "collapsing" behavior, you'd capture this state elsewhere in your model, and simply regenerate your SectionModel with zero CellViewModels.

This is how we currently do this in PlanGrid.

And, I think this makes more sense to generate full state changes, rather than "hiding" a section. (i.e., this is sort of a hack)

Further, this is complicates notions of "empty/nil state" (see #48 and IP-3275) and I want to remove that complexity.

Closes #120

@ghost
Copy link

ghost commented Jul 9, 2018

This is seems to be a vestigial aspect of the framework from early PlanGrid days.

We don't use this anywhere in PlanGrid.

To achieve this sort of "collapsing" behavior, you'd capture this state elsewhere in your model, and simply regenerate your SectionModel with zero CellViewModels.

This is how we currently do this in PlanGrid.

And, I think this makes more sense to generate full state changes, rather than "hiding" a section. (i.e., this is sort of a hack)

Further, this is complicates notions of "empty/nil state" (see #48 and IP-3275) and I want to remove that complexity.

Closes #120
@jessesquires
Copy link
Collaborator Author

LOL Thanks Hera. 👩‍🚀

Copy link
Collaborator

@anayini anayini left a comment

Choose a reason for hiding this comment

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

LGTM

@PlanBot-iOS
Copy link

PlanBot-iOS commented Jul 9, 2018

1 Warning
⚠️ All pull requests should have a milestone attached

Generated by 🚫 Danger

@jessesquires jessesquires merged commit d165749 into master Jul 9, 2018
@jessesquires jessesquires deleted the jsq/fix-#120 branch July 9, 2018 22:04
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