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

FEATURE: Dimension switcher #323

Merged
merged 11 commits into from
Sep 10, 2016
Merged

FEATURE: Dimension switcher #323

merged 11 commits into from
Sep 10, 2016

Conversation

skurfuerst
Copy link
Member

@skurfuerst skurfuerst commented Sep 8, 2016

  • Get available dimensions and presets from server and render in drop down
  • Update allowed presets after selecting a different dimension combination (implemented via guest metaData for now, could be improved to use an API service and async update via saga)
  • Update selected presets when navigating in the content canvas
  • Resolve URI after changing dimensions and update content canvas src

dimensionName={dimensionName}
icon={dimensionConfiguration.get('icon')}
dimensionLabel={dimensionConfiguration.get('label')}
presetLabel={activePresets.get(dimensionName).get('label')} />
Copy link
Member Author

Choose a reason for hiding this comment

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

here I'd rather use Plow.js, like $get([dimensionName, 'label'], activePresets) -- so to not couple the GET to Immutable.JS.

@skurfuerst
Copy link
Member Author

Hey @hlubek,

I just checked your code, generally 👍 really nice :) -just a few nitpicks.

If you like, we can also merge intermediate states, as the feature does not exist at all so far.

All the best,
Sebastian

@dimaip
Copy link
Contributor

dimaip commented Sep 8, 2016

@skurfuerst Hey, but why are tests failing again?
edit: there are linter errors. Plz adjust them or add eslint ignore rules inline, don't merge with failing tests or @Inkdpixels won't handle it again :)

@skurfuerst
Copy link
Member Author

Good question - we need to check this!

@hlubek
Copy link
Contributor

hlubek commented Sep 9, 2016

@dimaip Agreed, I'll check the test and lint and refactor a bit (including @skurfuerst comments) when the feature works basically.

@hlubek
Copy link
Contributor

hlubek commented Sep 9, 2016

Yippie, it's working! There are some improvements we could implement:

  • Close dropdown after selecting a preset
  • Refactor passing of allowed preset combinations, because it slows down the rendering of each page load

@hlubek hlubek changed the title WIP Feature/dimension switcher FEATURE: Dimension switcher Sep 9, 2016
new Map({
byName: Immutable.fromJS(byName(state)),
active: Immutable.fromJS(active(state)),
allowedPresets: Immutable.fromJS(allowedPresets(state))
Copy link
Member Author

Choose a reason for hiding this comment

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

Here, I'd like to have some documentation how the structure in the state actually looks like :-) As that is crucial to understand for the other parts

@skurfuerst
Copy link
Member Author

Hey Christopher @hlubek - awesome change :)

Just two nitpicks; once they are solved, feel free to merge the change 👍

All the best,
Sebastian

@hlubek
Copy link
Contributor

hlubek commented Sep 10, 2016

Merging with @skurfuerst's permission 😄

@hlubek hlubek merged commit 3ef9425 into master Sep 10, 2016
@grebaldi grebaldi removed the ready label Sep 10, 2016
@Inkdpixels Inkdpixels deleted the feature/dimension-switcher branch November 25, 2016 14:06
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.

4 participants