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

URL Params to hide tree and inspector #3758

Closed
deeptailor opened this issue Mar 16, 2021 · 11 comments · Fixed by #3951
Closed

URL Params to hide tree and inspector #3758

deeptailor opened this issue Mar 16, 2021 · 11 comments · Fixed by #3951
Assignees
Labels
bug:regression It used to work. Now it doesn't :( help_wanted Help the Open MCT project! severity:medium target:vista-r4.8 type:bug
Projects

Comments

@deeptailor
Copy link
Member

deeptailor commented Mar 16, 2021

We used to have a way to hide the tree and inspector via url params (pre topic core refactor). These were useful for sharing links to other users without distracting them with the tree or the inspector views.

The params used were:

&hideTree=true&hideInspector=true

The url params should be removed upon loading, so the hiding does not carry on down the line
edit: should not remove url params after hiding

We should bring this capability back, as some missions have expressed a need for it.

@deeptailor deeptailor added help_wanted Help the Open MCT project! bug:regression It used to work. Now it doesn't :( labels Mar 16, 2021
@rpearce
Copy link

rpearce commented Mar 20, 2021

Hi, @deeptailor! I've just discovered this project, and I'm happy to help where I can if I can get past node-sass breaking npm i on node 15.11.0 (related? sass/node-sass#2965). What node version do y'all recommend?

Looking at the demo app, is this the result you're going for when those params are present on a page load (before they're removed)?

Tree on left and Inspector on right collapsed image

@jvigliotta
Copy link
Contributor

Hi @rpearce if you haven't yet please follow the steps here: #3821 to contribute to the codebase. As for which node version, we recommend 10+. As to your question, yes, that would be the result we're looking for.

Thanks!

@unlikelyzero unlikelyzero added this to Needs triage in Bug Tracker via automation Jun 9, 2021
@jvigliotta
Copy link
Contributor

HI, @rpearce I'm checking in on CLAs and I haven't seen yours, have you sent it in? If so I'll check to see if it's been received.

@kobe1104 kobe1104 self-assigned this Jun 15, 2021
@rpearce
Copy link

rpearce commented Jun 16, 2021

@jvigliotta Thanks for checking in. I haven't sent that in, as I put this to the side when I had the install troubles mentioned above. node-sass has known issues with later versions of node that require an upgrade, and instead of fixing that or downgrading node, I moved on to other projects on my plate (priorities).

That said, this seems to be pretty low-hanging fruit, so I'll send that CLA tomorrow and check back with you here when I do.

@rpearce
Copy link

rpearce commented Jun 16, 2021

@jvigliotta I've submitted the CLA! Thanks for the follow-up

@jvigliotta
Copy link
Contributor

jvigliotta commented Jun 16, 2021

@rpearce no problem, thanks for sending that in, I'll update once we have that on file!

I do think that this issue may have been picked up in the meantime, but if there is another issue you'd like to take a look at let us know!

@jvigliotta
Copy link
Contributor

@rpearce can confirm, we now have that on file. If there are any other issues you want to take a look at let us know! Thanks!

@davetsay
Copy link
Contributor

@kobe1104 , per our conversation with @charlesh88 and @nikhilmandlik , let's make the state of the application the state of the url. So we should not remove the params hideTree and hideInspector programatically after hiding the panes.

@kobe1104
Copy link
Contributor

kobe1104 commented Jul 19, 2021

Testing instructions:

  1. At openmct, add '&hideTree=true' and/or '&hideInspector=true' to the end of the url.

  2. The corresponding pane collapses.

  3. Refresh the page. The panes from step 2 stay collapsed and the params from step 1 persist.

  4. Clicking the collapse button on the panes will add the hide params, and expanding the panes will remove hide params.

  5. try opening in new tab and copy paste following to see proper results
    /testathon/#/browse/mine?tc.mode=local&tc.startDelta=900000&tc.endDelta=15000&tc.timeSystem=utc&view=grid&hideTree=true

  6. /testathon/#/browse/mine?tc.mode=local&tc.startDelta=900000&tc.endDelta=15000&tc.timeSystem=utc&view=grid&hideInspector=true

Bug Tracker automation moved this from Needs triage to Closed Jul 19, 2021
@nikhilmandlik
Copy link
Contributor

Verified Fixed.

@jvigliotta
Copy link
Contributor

Verified: Testathon - 8/3/2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:regression It used to work. Now it doesn't :( help_wanted Help the Open MCT project! severity:medium target:vista-r4.8 type:bug
Projects
Development

Successfully merging a pull request may close this issue.

8 participants