buggregator / frontend

Buggregator UI
https://buggregator.dev/
15 stars 8 forks source link

[FEATURE] Open link in IDE #98

Closed gander closed 2 months ago

gander commented 9 months ago

Provide support to allow opening file location like in Symfony Profiler for:

butschster commented 4 months ago

Hi @Kreezag I've added a new option to set the API endpoint. Here's what the updated Settings API response looks like:

{
    "auth": {
      "enabled": false,
      "login_url": "/login"
    },
    "ide": {
      "url_template": "phpstorm://open?url=file://${file}&line=${line}"
    },
    "version":"'0.0.0"
}

The ide.url_template contains a template where you need to replace ${file} with the actual file path and ${line} with the line number.

It would be great to create a component for such cases, where users can click on a file path and it will open in the IDE as specified. This could streamline development workflows significantly.

Here is an example what can be replaced image

Kreezag commented 2 months ago

Feature was added in https://github.com/buggregator/frontend/pull/186 and released in https://github.com/buggregator/frontend/releases/tag/1.21.1