-
Notifications
You must be signed in to change notification settings - Fork 165
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
Project creation #718
Project creation #718
Conversation
…rname is not entered as an email
…r a video link. Not both at the same time
… multiple prop is set and also add checkboxes when the withCheckbox property is set
@kamthamc Requesting your code review. I am doing testing in parallel 🙏 |
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.
Mostly it looks good to me.
- I think some of the files missing translations
- I would suggest to access colors through theme and few places the colors are not being consumed from colors object
- Remove commented code and console logs
- And some minor comments
@@ -1,4 +1,4 @@ | |||
printWidth: 80 | |||
printWidth: 120 |
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.
FYI The recommended width is 80
Cc @tuxology
borderRadius: 30, | ||
color: colors.primary, | ||
'&:hover': { | ||
backgroundColor: '#00B8C4', |
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.
Please use colors/theme colors
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 will merge the "theme" work #712 a bit later and rebase it. So we can avoid this for now
@@ -122,6 +125,11 @@ const styles = theme => ({ | |||
position: 'absolute!important', | |||
width: '1px', | |||
}, | |||
username: { | |||
color: `${colors.white} !important`, |
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.
Try to avoid important flags, if not possible increase specificity.
zubhub_frontend/zubhub/src/components/Sidenav/sidenav.styles.js
Outdated
Show resolved
Hide resolved
if (multiple && value) { | ||
let valueTemp = []; | ||
(Array.isArray(value) ? value : [{ name: value }]).forEach( | ||
item => Object.keys(item).length > 0 && valueTemp.push(item), | ||
); | ||
value = valueTemp; | ||
} |
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.
May be move it to memo?
const handleFileChange = files => { | ||
const maxAssets = 5; | ||
if (files?.length > maxAssets || value?.length > maxAssets) { | ||
alert('You can only select up to 7 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.
missing translation?
@@ -0,0 +1,45 @@ | |||
import { colors } from "../../../assets/js/colors"; |
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 would suggest to use colors through theme
Hey @yaya-mamoudou Have been testing this PR and noticing a few minor issues only! So listing them here. Good work on this 🎉 |
@yaya-mamoudou So we did a more thorough analysis on staging. Here are some blocker bugs, design and UX fixes that are needed. Most are quick and minor. We can't proceed with a merge unless those are resolved: Text & Font changes
Design changes
Bugs
|
…ubhub into project-creation
* Currently, the email gets displayed on the user profile. (#714) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Project creation (#718) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Create project creation form and navigation layouts * Fix form spacing and made banner fixed on mobile * modify videoInput component so the user can only add either a video or a video link. Not both at the same time * Create Rich text editor component * - * create project in steps and modified project details page * + * removed extra linear gradient on project details page * add method to display the right message based on current step and create mode * Add success dialog to project details page after successful project creation * bypass validation of image and video fields when publish mode is draft * Added modal * Create modal component * Add dialogs for step 3 for user to add tags * Add confetti to successfull project creation dialog * refactored the dropdown component to allow maximum selection when the multiple prop is set and also add checkboxes when the withCheckbox property is set * Add query to exclude a project in the list of projects of a creator * Add more projects to project details page * + * validate multiple categories * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * Accept multiple categories in a project * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * + * Update multiple categories * + * Add comments in project details * Add cat to draft and my projects empty page * unauthorized user navbar and categories new ui * remove publish without tags dialog when tags are available * Add preview page * + * Add link preview * Made preview project to render in a modal * Make landing page visible to non logged in users * Add old search bar * Fixes on profile * + * + * + * fix grid on other projects for non logged in users * Add create activity to sidenav for staff users * remove commented code and some clogs * fixes * update email regex * Text & Font & Design changes * Fix * input improvement --------- Co-authored-by: Yaya Mamoudou <57509871+yaya-mamoudou@users.noreply.github.com>
* Currently, the email gets displayed on the user profile. (unstructuredstudio#714) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Project creation (unstructuredstudio#718) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Create project creation form and navigation layouts * Fix form spacing and made banner fixed on mobile * modify videoInput component so the user can only add either a video or a video link. Not both at the same time * Create Rich text editor component * - * create project in steps and modified project details page * + * removed extra linear gradient on project details page * add method to display the right message based on current step and create mode * Add success dialog to project details page after successful project creation * bypass validation of image and video fields when publish mode is draft * Added modal * Create modal component * Add dialogs for step 3 for user to add tags * Add confetti to successfull project creation dialog * refactored the dropdown component to allow maximum selection when the multiple prop is set and also add checkboxes when the withCheckbox property is set * Add query to exclude a project in the list of projects of a creator * Add more projects to project details page * + * validate multiple categories * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * Accept multiple categories in a project * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * + * Update multiple categories * + * Add comments in project details * Add cat to draft and my projects empty page * unauthorized user navbar and categories new ui * remove publish without tags dialog when tags are available * Add preview page * + * Add link preview * Made preview project to render in a modal * Make landing page visible to non logged in users * Add old search bar * Fixes on profile * + * + * + * fix grid on other projects for non logged in users * Add create activity to sidenav for staff users * remove commented code and some clogs * fixes * update email regex * Text & Font & Design changes * Fix * input improvement --------- Co-authored-by: Yaya Mamoudou <57509871+yaya-mamoudou@users.noreply.github.com>
* Currently, the email gets displayed on the user profile. (unstructuredstudio#714) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Project creation (unstructuredstudio#718) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Create project creation form and navigation layouts * Fix form spacing and made banner fixed on mobile * modify videoInput component so the user can only add either a video or a video link. Not both at the same time * Create Rich text editor component * - * create project in steps and modified project details page * + * removed extra linear gradient on project details page * add method to display the right message based on current step and create mode * Add success dialog to project details page after successful project creation * bypass validation of image and video fields when publish mode is draft * Added modal * Create modal component * Add dialogs for step 3 for user to add tags * Add confetti to successfull project creation dialog * refactored the dropdown component to allow maximum selection when the multiple prop is set and also add checkboxes when the withCheckbox property is set * Add query to exclude a project in the list of projects of a creator * Add more projects to project details page * + * validate multiple categories * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * Accept multiple categories in a project * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * + * Update multiple categories * + * Add comments in project details * Add cat to draft and my projects empty page * unauthorized user navbar and categories new ui * remove publish without tags dialog when tags are available * Add preview page * + * Add link preview * Made preview project to render in a modal * Make landing page visible to non logged in users * Add old search bar * Fixes on profile * + * + * + * fix grid on other projects for non logged in users * Add create activity to sidenav for staff users * remove commented code and some clogs * fixes * update email regex * Text & Font & Design changes * Fix * input improvement --------- Co-authored-by: Yaya Mamoudou <57509871+yaya-mamoudou@users.noreply.github.com>
* minor changes * outline * landing page changes * some design changes * call for testing * Project creation overhaul and minor fix (#721) * Currently, the email gets displayed on the user profile. (#714) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Project creation (#718) * Fixed issue with comment form submitting when empty * Add validation of username when creating new creator to make sure username is not entered as an email * Fixed issue with comment form submitting when empty * - * Wrap error string with translation method * Create project creation form and navigation layouts * Fix form spacing and made banner fixed on mobile * modify videoInput component so the user can only add either a video or a video link. Not both at the same time * Create Rich text editor component * - * create project in steps and modified project details page * + * removed extra linear gradient on project details page * add method to display the right message based on current step and create mode * Add success dialog to project details page after successful project creation * bypass validation of image and video fields when publish mode is draft * Added modal * Create modal component * Add dialogs for step 3 for user to add tags * Add confetti to successfull project creation dialog * refactored the dropdown component to allow maximum selection when the multiple prop is set and also add checkboxes when the withCheckbox property is set * Add query to exclude a project in the list of projects of a creator * Add more projects to project details page * + * validate multiple categories * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * Accept multiple categories in a project * refactor sidenav * Add project mode selection page * + * Fix edit * + * Add correct links to sidenav and modified the styles of the associated pages * Fixes * + * Update multiple categories * + * Add comments in project details * Add cat to draft and my projects empty page * unauthorized user navbar and categories new ui * remove publish without tags dialog when tags are available * Add preview page * + * Add link preview * Made preview project to render in a modal * Make landing page visible to non logged in users * Add old search bar * Fixes on profile * + * + * + * fix grid on other projects for non logged in users * Add create activity to sidenav for staff users * remove commented code and some clogs * fixes * update email regex * Text & Font & Design changes * Fix * input improvement --------- Co-authored-by: Yaya Mamoudou <57509871+yaya-mamoudou@users.noreply.github.com> * minor changess * outlinee * landing page changess * call for testingg * rebase * image and breadcrumb changes --------- Co-authored-by: Suchakra Sharma <suchakra@unstructured.studio> Co-authored-by: Yaya Mamoudou <57509871+yaya-mamoudou@users.noreply.github.com>
Summary
Redesign of Project creation.
Closes #557
Changes
Screenshots