-
-
Notifications
You must be signed in to change notification settings - Fork 80
Wired up upload progress bar to CTA Card #1474
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
Conversation
ref https://linear.app/ghost/issue/PLG-367/image-upload-is-missing-progress-indicator - Wired up Progress Bar data to CTA Card
WalkthroughThis pull request implements several modifications across media upload components. The changes adjust the conditional logic for applying CSS classes based on a Possibly related PRs
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
packages/koenig-lexical/src/components/ui/cards/CallToActionCard.jsxOops! Something went wrong! :( ESLint: 8.57.0 ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct. The config "react-app" was referenced from the config file in "/packages/koenig-lexical/.eslintrc.cjs". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. packages/koenig-lexical/src/components/ui/MediaUploaderBeta.jsxOops! Something went wrong! :( ESLint: 8.57.0 ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct. The config "react-app" was referenced from the config file in "/packages/koenig-lexical/.eslintrc.cjs". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. packages/koenig-lexical/src/components/ui/SettingsPanel.jsxOops! Something went wrong! :( ESLint: 8.57.0 ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct. The config "react-app" was referenced from the config file in "/packages/koenig-lexical/.eslintrc.cjs". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (11)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| imageUploadHandler: PropTypes.func, | ||
| imageDragHandler: PropTypes.object | ||
| imageDragHandler: PropTypes.object, | ||
| imageUploader: PropTypes.func |
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 think this is an object rather than a func? Worth keeping dev tools open and watching the console whilst developing, this sort of mismatch usually creates error logs
| const fileChooser = await fileChooserPromise; | ||
| await fileChooser.setFiles([filePath]); | ||
| const progressBar = page.locator('[data-testid="progress-bar"]'); | ||
| await expect(progressBar).toBeVisible(); |
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.
Is it worth expanding this test a bit to make sure the progress bar correctly disappears once the upload is finished?
ref https://linear.app/ghost/issue/PLG-367/image-upload-is-missing-progress-indicator
MediaUploaderBeta, displaying upload progress with dynamic min-width adjustments for loading statesCallToActionCardto integrateimageUploaderwithisLoadingandprogresspropsMediaUploader.jsxstyles for consistency (borderStyle 'rounded' logic)call-to-action-card.test.jsto verify progress bar visibility during upload and disappearance on completionSettingsPanel.jsxandSignupCard.jsxfor prop alignment