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

chore(content-explorer): Migrate ContentExplorer #3870

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

@@ -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' });
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
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