Skip to content

Esefah meng history strip#535

Open
NanaKwame wants to merge 6 commits into
esefah-mengfrom
esefah-meng-history-strip
Open

Esefah meng history strip#535
NanaKwame wants to merge 6 commits into
esefah-mengfrom
esefah-meng-history-strip

Conversation

@NanaKwame

@NanaKwame NanaKwame commented Mar 30, 2021

Copy link
Copy Markdown
Contributor

This PR includes:

  • changes for showing the history at the bottom of the page
  • DnD of the history items.
  • Being able to drag history items to x, y, fill or size on the bubble cursor and see scale updates
  • Being able to drag history items to the main chart but not on the bubble cursor to see aesthetic updates to marks: "size", "shape", "fill", "fillOpacity", "stroke", "strokeWidth"

TODOs amongst bigger todos:

  • fix any issues that might come up with changes to exporter.ts and cleanSpecForPreview in demonstrations.ts
  • figure out if I need to use History.ts
  • other mark types aren't working perfectly. currently symbols work the best

@NanaKwame NanaKwame requested a review from jonathanzong March 30, 2021 02:27
@lgtm-com

lgtm-com Bot commented Mar 30, 2021

Copy link
Copy Markdown

This pull request introduces 4 alerts when merging fdf2c63 into f805c6d - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class

Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryItem.tsx Outdated
Comment thread src/js/components/history/HistoryList.tsx Outdated
Comment thread src/js/components/history/HistoryList.tsx Outdated
Comment thread src/js/store/factory/Inspector.ts
Comment thread src/js/components/history/HistoryList.tsx Outdated
Comment thread src/js/components/history/HistoryList.tsx Outdated
Comment thread src/js/components/HistoryToolbar.tsx Outdated
Comment thread src/js/ctrl/demonstrations.ts Outdated
Comment thread src/js/components/interactions/InteractionPreview.tsx Outdated
Comment thread src/js/components/interactions/WidgetPreview.tsx Outdated
Comment thread src/js/ctrl/demonstrations.ts Outdated
Comment thread src/js/ctrl/demonstrations.ts Outdated
Comment thread src/js/ctrl/export.ts Outdated
Comment thread src/js/ctrl/export.ts
Comment thread src/js/ctrl/export.ts Outdated
Comment thread src/js/ctrl/export.ts Outdated
Comment thread src/js/store/factory/History.ts

@jonathanzong jonathanzong left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice work! i've left comments that i hope are helpful. since it's a working branch, i'll leave it up to you what level of detail you want to address them to before merging

@NanaKwame

Copy link
Copy Markdown
Contributor Author

nice work! i've left comments that i hope are helpful. since it's a working branch, i'll leave it up to you what level of detail you want to address them to before merging

I have pushed changes to address your comments. Please send any feedback especially for cleanHistorySpec in HistortyList.tsx. Not sure if that is the right/ok way to go about removing interactions from the history previews.

@lgtm-com

lgtm-com Bot commented Apr 4, 2021

Copy link
Copy Markdown

This pull request introduces 11 alerts when merging 82b2fa4 into f805c6d - view on LGTM.com

new alerts:

  • 11 for Unused variable, import, function or class

@lgtm-com

lgtm-com Bot commented Apr 4, 2021

Copy link
Copy Markdown

This pull request introduces 11 alerts when merging ba9b9fc into f805c6d - view on LGTM.com

new alerts:

  • 11 for Unused variable, import, function or class

@NanaKwame NanaKwame requested a review from jonathanzong April 4, 2021 20:15
@lgtm-com

lgtm-com Bot commented Apr 4, 2021

Copy link
Copy Markdown

This pull request introduces 1 alert and fixes 1 when merging 8515e2e into f805c6d - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

Comment thread src/js/ctrl/export.ts
const scaleInfo = getScaleInfoForGroup(state, group._id);
const fieldsOfGroup = getFieldsOfGroup(state, group._id);
const scaleInfo = getScaleInfoForGroup(storeState, group._id);
const fieldsOfGroup = getFieldsOfGroup(storeState, group._id);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

now that i think about it, these should use visState too. if we pass in an older visState to the exporter, we expect it to get the scale info for that state. using the store state will use the current scale info instead, which could cause problems.

this means that the getScaleInfoForGroup and getFieldsOfGroup functions should probably be edited to use visState as well, and all uses of those functions updated accordingly. could you add one more commit with that change?

@jonathanzong

Copy link
Copy Markdown
Member

great work implementing the earlier feedback! your approach in cleanHistorySpec looks right to me. left one comment for one last refactoring task then you're good to go

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.

2 participants