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

[FEATURE_REQUEST] Add new Open Method called DISCARD or NONE #597

Closed
nickm324 opened this issue Apr 10, 2022 · 6 comments
Closed

[FEATURE_REQUEST] Add new Open Method called DISCARD or NONE #597

nickm324 opened this issue Apr 10, 2022 · 6 comments
Labels
🦄 Feature Request [ISSUE] Suggestion for new feature, update or change

Comments

@nickm324
Copy link

Is your feature request related to a problem? If so, please describe.

No response

Describe the solution you'd like

Would like an additional option called DISCARD added to the Opening Methods that would discard the response result completely instead of opening it in a default New Tab.

Priority

Medium (Would be very useful)

Is this something you would be keen to implement

No

@nickm324 nickm324 added the 🦄 Feature Request [ISSUE] Suggestion for new feature, update or change label Apr 10, 2022
@nickm324 nickm324 changed the title [FEATURE_REQUEST] <title> [FEATURE_REQUEST] Add new Open Method called DISCARD or NONE Apr 10, 2022
@Lissy93
Copy link
Owner

Lissy93 commented Apr 11, 2022

Hiya,
I'm not sure what you mean by "discard the response result completely instead of opening it in a default New Tab".
Could you elaborate? Thanks

@nickm324
Copy link
Author

nickm324 commented Apr 11, 2022

Hi! I really love the interface and all its features and was working on something that would expand on it by being able to have links that would run applications on the workstation.

I have written a small proxy type application that sits in the system tray and accepts HTTP request, and when a request was sent to it, it would include some commands via query string parameters. The app would then have ability to run the executable. The only issue at the moment is that when clicking the link, it works perfectly in opening the application I specified but it also opens a web browser tab that is basically blank or shows no response.

I was wondering if it would be possible to just call the link and then discard or ignore any response, which I am assuming you are doing something to open the response in the modal or workspace.
I can easily send a response but really don't need a new tab or anything to open after the command is sent to the proxy app.
Below is an example of a URL that would open a specific file in notepad by clicking the configured links in Dashy.

http://localhost:2222/?EXEPATH=notepad.exe&ARGS=c:\temp\logs\Prox20220410.log&DEBUG=true

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Apr 11, 2022
@Lissy93
Copy link
Owner

Lissy93 commented Apr 11, 2022

Makes sense, I think this is the same as Action Buttons mentioned in #383, which is already on the Roadmap.
That will allow you to trigger an action by calling a web hook or hitting a HTTP endpoint.

But it's not quite as simple as just adding an extra option to the opening method. It would need to be a function that makes a HTTP request from the frontend to the endpoint (and you would need to manage that endpoint and CORS and stuff yourself)

Another option in the meantime (if you don't want to fork the project yourself), is to just build a simple widget (see building dynamic widgets)

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Apr 11, 2022
@nickm324
Copy link
Author

#383 is along the same line but more for running server-side commands to control things inside the container that is hosting Dashy.

My idea allows Dashy to be used to perform actions on the client computer.

Since a user would have to manually install the proxy and configure it and formulate the URLs to execute whatever application I see it as a very low security risk. Yet it would be simple to get up and running.

Overall, this provides a complete solution to use Dashy as an all-in-one Local/Remote dashboard.

I may fork the code and take a look at the current process and see if I can come up with a solution.
The only real requirement is for Dashy to shoot off the request as normal and then forget about it after that point.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Apr 11, 2022
@nickm324
Copy link
Author

Now that I think of it, it would almost be like how a status check works. Hit the URL and instead of updating the status check icon just dispose of the response.

@Lissy93
Copy link
Owner

Lissy93 commented Apr 11, 2022

I think this is exactly how action buttons are intended to work, very similar to status check, but happens on button click.
It won't matter to Dashy which services are being called behind the scenes, that's up to the user.

I'm going to close this ticket, as already on the roadmap, but you can track the progress of this feature in #383

@Lissy93 Lissy93 closed this as completed Apr 11, 2022
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦄 Feature Request [ISSUE] Suggestion for new feature, update or change
Projects
None yet
Development

No branches or pull requests

3 participants