Skip to content

chore(content-explorer): Migrate ContentExplorer#3870

Merged
greg-in-a-box merged 1 commit intobox:masterfrom
greg-in-a-box:content-explorer
Feb 28, 2025
Merged

chore(content-explorer): Migrate ContentExplorer#3870
greg-in-a-box merged 1 commit intobox:masterfrom
greg-in-a-box:content-explorer

Conversation

@greg-in-a-box
Copy link
Contributor

@greg-in-a-box greg-in-a-box commented Jan 27, 2025

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

@greg-in-a-box greg-in-a-box force-pushed the content-explorer branch 2 times, most recently from ecbd64e to e9419ae Compare January 31, 2025 20:16
@greg-in-a-box greg-in-a-box force-pushed the content-explorer branch 6 times, most recently from 0aef079 to ffe382a Compare February 5, 2025 18:03
@greg-in-a-box greg-in-a-box marked this pull request as ready for review February 5, 2025 18:11
@greg-in-a-box greg-in-a-box requested review from a team as code owners February 5, 2025 18:11
Copy link
Contributor

@tjuanitas tjuanitas left a 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 {
Copy link
Contributor

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?

Copy link
Contributor Author

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,

Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

came with the codemod

Copy link
Contributor

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

Comment on lines +47 to +48
name: 'Jeremy Press',
login: 'jpress@boxdemo.com',
Copy link
Contributor

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


const moreOptionsButton = await canvas.findByRole('button', { name: 'More options' });
await userEvent.click(moreOptionsButton);
const moreOptionsButton = await canvas.findAllByRole('button', { name: 'More options' });
Copy link
Contributor

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?

Copy link
Contributor Author

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

@greg-in-a-box greg-in-a-box force-pushed the content-explorer branch 2 times, most recently from 8e2b746 to 7c88ceb Compare February 5, 2025 23:07
@greg-in-a-box greg-in-a-box requested a review from a team as a code owner February 5, 2025 23:07
tjiang-box
tjiang-box previously approved these changes Feb 27, 2025
tjuanitas
tjuanitas previously approved these changes Feb 27, 2025
@greg-in-a-box greg-in-a-box merged commit 1f5180f into box:master Feb 28, 2025
4 checks passed
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