refine icon indicating copy to clipboard operation
refine copied to clipboard

feat: control for navigation tweak

Open Mr0nline opened this issue 2 years ago • 16 comments

When we rely on the mount effects, Clicking on the same sider item will result in a page reload due to them being linked. We need to prevent the default behavior if the item is selected so that it doesn't remount the components!

Test plan (required)

I've tested all 5 packages touched by changes. core, antd, mui, mantine and chakra-ui!

Closing issues

closes #4310

Self Check before Merge

Please check all items below before review.

  • [x] Corresponding issues are created/updated or not needed
  • [x] Docs are updated/provided or not needed
  • [x] Examples are updated/provided or not needed
  • [x] TypeScript definitions are updated/provided or not needed
  • [x] Tests are updated/provided or not needed
  • [x] Changesets are provided or not needed

Mr0nline avatar Jun 11 '23 08:06 Mr0nline

🦋 Changeset detected

Latest commit: 1a28eb87cf5f27860c971b0e68fab9fe97ffdfba

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jun 11 '23 08:06 changeset-bot[bot]

Deploy Preview for aquamarine-panda-e208bf ready!

Name Link
Latest commit 1a28eb87cf5f27860c971b0e68fab9fe97ffdfba
Latest deploy log https://app.netlify.com/sites/aquamarine-panda-e208bf/deploys/6499bd4bede9d00008b4dbcc
Deploy Preview https://deploy-preview-4502--aquamarine-panda-e208bf.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jun 11 '23 08:06 netlify[bot]

Deploy Preview for lighthearted-pastelito-e86ad1 ready!

Name Link
Latest commit 1a28eb87cf5f27860c971b0e68fab9fe97ffdfba
Latest deploy log https://app.netlify.com/sites/lighthearted-pastelito-e86ad1/deploys/6499bd4bbded2500084ade34
Deploy Preview https://deploy-preview-4502--lighthearted-pastelito-e86ad1.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jun 11 '23 08:06 netlify[bot]

Deploy Preview for stupendous-taffy-33f80c ready!

Name Link
Latest commit 1a28eb87cf5f27860c971b0e68fab9fe97ffdfba
Latest deploy log https://app.netlify.com/sites/stupendous-taffy-33f80c/deploys/6499bd4b96f3f00008352654
Deploy Preview https://deploy-preview-4502--stupendous-taffy-33f80c.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jun 11 '23 08:06 netlify[bot]

Deploy Preview for imaginative-sundae-1fd394 ready!

Name Link
Latest commit 1a28eb87cf5f27860c971b0e68fab9fe97ffdfba
Latest deploy log https://app.netlify.com/sites/imaginative-sundae-1fd394/deploys/6499bd4bbcefd800082df6d1
Deploy Preview https://deploy-preview-4502--imaginative-sundae-1fd394.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jun 11 '23 08:06 netlify[bot]

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 1a28eb87cf5f27860c971b0e68fab9fe97ffdfba. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 79 targets

Sent with 💌 from NxCloud.

nx-cloud[bot] avatar Jun 11 '23 08:06 nx-cloud[bot]

Deploy Preview for refine-doc-live-previews ready!

Built without sensitive environment variables

Name Link
Latest commit 1a28eb87cf5f27860c971b0e68fab9fe97ffdfba
Latest deploy log https://app.netlify.com/sites/refine-doc-live-previews/deploys/6499bd4b20c4ce0008c8127c
Deploy Preview https://deploy-preview-4502--refine-doc-live-previews.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jun 11 '23 08:06 netlify[bot]

@aliemir, Sorry for the ping but just wondering if I require any further changes on this or not :)

Mr0nline avatar Jun 14 '23 07:06 Mr0nline

@aliemir, Sorry for the ping but just wondering if I require any further changes on this or not :)

Hey @Mr0nline , Sorry for the delay. I think we'll be able to review it next week. Thank you for your patience ⚡️

omeraplak avatar Jun 14 '23 07:06 omeraplak

Hey, @Mr0nline thank you for the improvements, it looks great 🚀. But I think using pointer-events: "none" it's a better approach. Can you change preventDefault to pointer-events: "none" please?

alicanerdurmaz avatar Jun 15 '23 12:06 alicanerdurmaz

Sure! @alicanerdurmaz, I'll update it and will let you know!

Mr0nline avatar Jun 15 '23 12:06 Mr0nline

JFI: I'm planning to do the required changes by this Saturday as it's when I'm free mostly for! I hope that's fine with the release plan!

Mr0nline avatar Jun 21 '23 08:06 Mr0nline

JFI: I'm planning to do the required changes by this Saturday as it's when I'm free mostly for! I hope that's fine with the release plan!

No problem on our side! Thank you for the response! 🚀 We'll review the changes when they're ready and merge it 🙏

aliemir avatar Jun 21 '23 09:06 aliemir

@aliemir I've updated the PR as requested! Let me know if it require any more changes :crossed_fingers:

Mr0nline avatar Jun 24 '23 20:06 Mr0nline

Hello @Mr0nline thanks for the PR!

Can we update relevant unit tests to test the new behaviour, with & without props?

@BatuhanW Sure but I've haven't quite wrote any tests, So could you guide me on which changes are required and how it should be done or if possible could you please write the tests if it's not much time consuming! It's just that I might not become available till next friday as weekends are almost over in my timezone :disappointed:

Let me know if there's some definitive steps or guide which I can follow to update the test and I'll give it a go :crossed_fingers:

Mr0nline avatar Jun 25 '23 14:06 Mr0nline

Hello @Mr0nline thanks for the PR! Can we update relevant unit tests to test the new behaviour, with & without props?

@BatuhanW Sure but I've haven't quite wrote any tests, So could you guide me on which changes are required and how it should be done or if possible could you please write the tests if it's not much time consuming! It's just that I might not become available till next friday as weekends are almost over in my timezone 😞

Let me know if there's some definitive steps or guide which I can follow to update the test and I'll give it a go 🤞

Hey @Mr0nline no worries, and thanks for the contribution! We'll release it soon

BatuhanW avatar Jun 26 '23 16:06 BatuhanW

Thanks @alicanerdurmaz for writing tests! 🙏🏻

Mr0nline avatar Jun 27 '23 02:06 Mr0nline