-
Notifications
You must be signed in to change notification settings - Fork 313
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
chore(content-explorer): Migrate ContentExplorer #3870
base: master
Are you sure you want to change the base?
Conversation
ecbd64e
to
e9419ae
Compare
0aef079
to
ffe382a
Compare
ffe382a
to
ab5cf70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick skim
token: Token, | ||
uploadHost: string, | ||
}; | ||
export interface ContentExplorerProps { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that many props are changed to optional. Is the intention that only the token
prop is needed? Can we verify that this is the only prop required to get Explorer to run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats what it seems like, only the rootFolderId
and token
is needed, thats pretty much whats in the basic storybook for contentexplorer,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need flow files anymore for this component? Once the root level element is migrated, what's the purpose of the flow files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove it in a separate PR, otherwise this PR will be huge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do we use this file for? there are no types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
came with the codemod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say we start removing the flow files for this element
name: 'Jeremy Press', | ||
login: 'jpress@boxdemo.com', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should codify people's names in the repo. This is an ex-boxer
@@ -42,36 +42,43 @@ export const openDeleteConfirmationDialog = { | |||
play: async ({ canvasElement }) => { | |||
const canvas = within(canvasElement); | |||
|
|||
const moreOptionsButton = await canvas.findByRole('button', { name: 'More options' }); | |||
await userEvent.click(moreOptionsButton); | |||
const moreOptionsButton = await canvas.findAllByRole('button', { name: 'More options' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there multiple buttons that show with the "More Options" button? if not why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are multiple, have to indicator which one
8e2b746
to
7c88ceb
Compare
7c88ceb
to
506fada
Compare
Updated the mocks
Updated the styleguide config to switch to a tsx
Updated ContentExplorer to use TS
Remove old Enzyme test
Added new RTL tests, increase coverage significantly but still room for improvement
Updated VRTs
Updated some missing types