-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[WEB-2414] chore: remove modal for creating a page #5561
Conversation
WalkthroughThe pull request enhances the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (5)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx (2 hunks)
- web/core/components/pages/editor/title.tsx (1 hunks)
Additional comments not posted (5)
web/core/components/pages/editor/title.tsx (1)
59-59
: Verify the impact of autoFocus on user experience and accessibility.The addition of the
autoFocus
property on theTextArea
component is a good enhancement for user experience as it allows immediate interaction with the input field. However, please ensure that this change does not negatively impact the overall user experience or accessibility, especially if this component is used multiple times on the same page or within a larger form.web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx (4)
21-21
: Good use of state management for UI feedback.The introduction of the
isCreatingPage
state to manage the UI during the page creation process is a good practice. It enhances user feedback by indicating a loading state, which is crucial for a good user experience.
23-23
: Proper use of useRouter for navigation.The use of the
useRouter
hook for programmatic navigation after creating a page is correctly implemented. However, ensure that the navigation only occurs after the page creation is confirmed to be successful to avoid any potential issues with premature navigation.
38-58
: Well-implemented page creation logic with robust error handling.The
handleCreatePage
function is well-structured and effectively manages the page creation process. It includes robust error handling and state management, which are crucial for maintaining a good user experience. However, please verify that the error handling correctly captures all potential issues and that the UI state is appropriately reset in all scenarios, including any edge cases that may not have been considered.
91-92
: Effective UI feedback during page creation.The use of the
loading
prop on theButton
component to indicate the page creation process is an effective way to provide visual feedback to the user. Ensure that this feedback is consistently accurate across all possible states of the page creation process to maintain trust and clarity for the user.
@aaryan610 , I don't see the modal removal? |
Improvements:
Now, clicking on the
Add page
button doesn't open a modal, instead it directly creates a new untitled page and redirects the user to it.Pressing the shortcut
D
still opens up the create page modal.Media:
Screen.Recording.2024-09-09.at.18.40.51.mov
Plane issue: WEB-2414
Summary by CodeRabbit
New Features
Bug Fixes