Skip to content

transferring over the drawer PR + updates #368

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

Closed
wants to merge 17 commits into from
Closed

Conversation

laurenic0l
Copy link
Contributor

  • updated welcome drawer to match BBj demo

- updated welcome drawer to match BBj demo
@hyyan
Copy link
Member

hyyan commented Jun 16, 2025

@laurenic0l, did you fix all the reported requests and issues from the old PR?

@laurenic0l
Copy link
Contributor Author

@hyyan yes I updated it based off the feedback you had left on the previous PR

- Removed extra component wrappers
- Added cssURL
- Removed styling in drawerWelcome.css that wasn't used
Copy link
Member

@bbrennanbasis bbrennanbasis left a comment

Choose a reason for hiding this comment

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

@laurenic0l, for DrawerPlacementView:

  • Add an [Open Placement] button that opens the drawer, like the [Open Preferences] button for DrawerAutoFocusView
  • Add in the TOP_CENTER and BOTTOM_CENTER options

- Replaced text-decoration toggle logic with CSS-based opacity changes
for completed tasks.
- Updated DrawerPlacementView with a radio group to switch between
drawer placements and added an "Open Placement" button.
Copy link
Member

@jturfanbasis jturfanbasis left a comment

Choose a reason for hiding this comment

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

Recording.2025-06-17.112132.mp4

@laurenic0l
Copy link
Contributor Author

@jturfanbasis I'm not seeing this error on my end. What steps did you take? I'd like to see if I can recreate this

@laurenic0l laurenic0l requested a review from bbrennanbasis June 17, 2025 17:33
@jturfanbasis
Copy link
Member

jturfanbasis commented Jun 17, 2025

@jturfanbasis I'm not seeing this error on my end. What steps did you take? I'd like to see if I can recreate this
The steps:

I fetched your PR #368 on VS Code, as you can see, and navigated to localhost. @laurenic0l

pr368.mp4

@bbrennanbasis
Copy link
Member

@jturfanbasis you're experiencing a 404 because you manually altered the Route annotation to pr368 , but not any of the AppNavItem paths, so they are going to a non existing page, when normally this page would be found at: http://localhost:8080/webforj/drawerwelcome

See Also:
Defining Routes

@jturfanbasis
Copy link
Member

@jturfanbasis you're experiencing a 404 because you manually altered the Route annotation to pr368 , but not any of the AppNavItem paths, so they are going to a non existing page, when normally this page would be found at: http://localhost:8080/webforj/drawerwelcome

See Also:

Defining Routes

Thank you for clarification @bbrennanbasis

jturfanbasis and others added 3 commits June 17, 2025 16:40
- DrawerWelcomeView
  - Added dark mode filter for the webforJ logo
  - Changed the component type for `header` to `Toolbar`, removed extra CSS
  - Changed `demo` variable to `appLayout`
- DrawerView
  - Added `checkTaskLimit` event to prevent unlimited additions of tasks
  - Added maximum character limit for each task
- DrawerPlacementView
  - Set `–dwc-drawer-max-width` to distinguish between top/top center and bottom/bottom center for smaller screen sizes
- Drawer.md
  - Clarified that the first example has a `Drawer` that's part of the `AppLayout` component
  - Put `Placement` property in code format
bbrennanbasis
bbrennanbasis previously approved these changes Jun 18, 2025
Copy link
Member

@bbrennanbasis bbrennanbasis left a comment

Choose a reason for hiding this comment

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

@laurenic0l Looks good, I also added some limits to DrawerView to prevent more than 50 tasks to be on at the same time and each task can only be 50 characters long.

@jturfanbasis The only requested change that I saw from your review was about the navigation, were there any other changes needed that you saw?

@jturfanbasis jturfanbasis self-requested a review June 18, 2025 19:43
jturfanbasis
jturfanbasis previously approved these changes Jun 18, 2025
@jturfanbasis
Copy link
Member

@laurenic0l Looks good, I also added some limits to DrawerView to prevent more than 50 tasks to be on at the same time and each task can only be 50 characters long.

@jturfanbasis The only requested change that I saw from your review was about the navigation, were there any other changes needed that you saw?

No, just approved it, thanks.

Copy link
Member

@hyyan hyyan left a comment

Choose a reason for hiding this comment

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

@laurenic0l The samples look great, but the content feels too wordy. The entire "Usage" section doesn’t add much value, it could be summarized in the instructions instead. Also, it doesn’t seem directly related to the sample that follows.

Please go over the content again. Make it more concise, focus less on describing obvious things, and avoid AI-sounding phrases like “saving time and effort.” Those are just filler and we should try to cut them out.

Also, recheck the original docs to make sure everything’s covered. And please include the contact picker sample too.

@hyyan hyyan dismissed stale reviews from jturfanbasis and bbrennanbasis via 1af8c1c June 23, 2025 07:25
This reverts commit 3d317ee, reversing
changes made to 9fce1b9.
@laurenic0l laurenic0l requested a review from hyyan June 25, 2025 20:00
@laurenic0l
Copy link
Contributor Author

@hyyan I've revised the prose to be less wordy and included the contacts demo. Please let me know if there's anything else

@bbrennanbasis
Copy link
Member

@laurenic0l seems like there was an issue trying to get your branch up-to-date, as the commits shown have changes unrelated to Drawer component.

As a side note, be specific with the wording showing the first example because there is only one Drawer component being used. The second drawer is part of the AppLayout component. Depending on when PR #321 gets merged, you could make a reference to the AppLayout Drawer utilities section.

jturfanbasis
jturfanbasis previously approved these changes Jun 26, 2025
@laurenic0l
Copy link
Contributor Author

@bbrennanbasis I've clarified the distinction between the two drawers. Please let me know if there's anything else, if not I'll assign to Hyyan for his final review

@bbrennanbasis
Copy link
Member

@laurenic0l rewrite looks good, but the branch is still out-of-date. Please resolve the merge conflicts and it should be good.

@laurenic0l
Copy link
Contributor Author

@bbrennanbasis It was getting a bit messy so I just created a new PR: #373

@laurenic0l laurenic0l marked this pull request as draft June 26, 2025 20:12
@bbrennanbasis
Copy link
Member

Closing this PR, as the work got transferred to PR #373.

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.

4 participants