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

feat(cells): repository logic for the file dropzone #18800

Open
wants to merge 28 commits into
base: dev
Choose a base branch
from

Conversation

olafsulich
Copy link
Contributor

@olafsulich olafsulich commented Feb 26, 2025

Description

What's changed:

  • added the cells repository and utilized the logic within file dropzone
  • added extra states (loading & error)

Demo

Upload success:

successful_upload.mov

Upload failed:

upload_error_plus_retries.mov

Checklist

  • mentions the JIRA issue in the PR name (Ex. [WPB-XXXX])
  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

@olafsulich olafsulich changed the title Feat/cells service api feat(cells): repository logic for the file dropzone Mar 4, 2025
@olafsulich olafsulich marked this pull request as ready for review March 6, 2025 06:17
@olafsulich olafsulich requested review from otto-the-bot and a team as code owners March 6, 2025 06:17
Comment on lines +39 to +48
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: '32px',
height: '32px',
backgroundColor: 'var(--white)',
borderRadius: '50%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of this, You can use inset: 0, display: 'grid', (placeContent | placeSelf | placeItems): 'center', instead of transform, top, left, and flex with alignItems and justifyContent ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll take a look

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can replace flexbox centering with grid and placeItems - but IMO there's no difference, just one property less

Same with the transform part, I can, and it's just property less, but I think it's not important

Comment on lines +46 to +55
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: '32px',
height: '32px',
backgroundColor: 'var(--white)',
borderRadius: '50%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe You can create common styles for this? Because I see You have in multiple places same styles :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking about it, but as long as it's not that much code, and it's only in two places, I would stay with it for now

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.

3 participants