Skip to content
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

Clear element path on unselect #374

Merged
merged 7 commits into from Sep 14, 2022

Conversation

OlegMoshkovich
Copy link
Member

@OlegMoshkovich OlegMoshkovich commented Sep 12, 2022

This PR addresses #334

  • clear the element path from the URL when the element is unselected
  • clear the url hash parameters including camera and plane

@netlify
Copy link

netlify bot commented Sep 12, 2022

Deploy Preview for bldrs-share ready!

Name Link
🔨 Latest commit c2f7b85
🔍 Latest deploy log https://app.netlify.com/sites/bldrs-share/deploys/6321cedc8cb3eb0008b1355f
😎 Deploy Preview https://deploy-preview-374--bldrs-share.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.

@OlegMoshkovich OlegMoshkovich marked this pull request as ready for review September 13, 2022 13:43
@OlegMoshkovich
Copy link
Member Author

@pablo-mayrgundter PTAL

src/Containers/CadView.test.jsx Show resolved Hide resolved
viewer._loadedModel.ifcManager.getSpatialStructure.mockReturnValueOnce(testTree)
const {result} = renderHook(() => useStore((state) => state))
await act(() => {
// result.current.setSelectedElement(targetEltId)
Copy link
Member

Choose a reason for hiding this comment

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

These seem like good ones to add. Still WIP?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep totally - forgot to turn it on

src/Components/NavPanel.jsx Show resolved Hide resolved
Copy link
Member Author

@OlegMoshkovich OlegMoshkovich left a comment

Choose a reason for hiding this comment

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

PTAL

viewer._loadedModel.ifcManager.getSpatialStructure.mockReturnValueOnce(testTree)
const {result} = renderHook(() => useStore((state) => state))
await act(() => {
// result.current.setSelectedElement(targetEltId)
Copy link
Member Author

Choose a reason for hiding this comment

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

yep totally - forgot to turn it on

src/Containers/CadView.test.jsx Show resolved Hide resolved
src/Components/NavPanel.jsx Show resolved Hide resolved
@pablo-mayrgundter pablo-mayrgundter merged commit 5647e44 into bldrs-ai:main Sep 14, 2022
@OlegMoshkovich OlegMoshkovich deleted the clearUrl branch September 27, 2022 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants