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

Can switch to view request by name or url #3181

Open
1 task done
TheBlackReverand opened this issue Sep 23, 2024 · 0 comments
Open
1 task done

Can switch to view request by name or url #3181

TheBlackReverand opened this issue Sep 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TheBlackReverand
Copy link

TheBlackReverand commented Sep 23, 2024

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Add possibility to view request by name (like today) or by url (like my preview).

image

On version 1.30.1 I can make a test on edit the file packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js

<span className="item-name" title={item.name}>
  {item.type === 'http-request' ?
      item.request.url.substring(item.request.url.indexOf('/', 8),
                                  (item.request.url.includes('?') ? item.request.url.indexOf('?') : item.request.url.length)
                                )
    : item.name
  }
</span>

I hardly replace the name of item 'http-request' by a live calculated path.
I exclude the first part ==> https://my-server
I exclude query parameters too.

We need a new param on "Collection / Preferences / Display" for make this choice.

We maybe need to review the path storage for make it great?

Store a base path (https://my-server) on bruno.json file (need to support variables for environment support)
Store the path of request without query on each request bru file
Expose BasePath + RequestPath + live calculated queryParams on query bar or for runner

Or we can juste use my code in state and add a user display parameter ^^'

I just expose an idea to talk about it :)

Mockups or Images of the feature

image

@TheBlackReverand TheBlackReverand added the enhancement New feature or request label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant