[GH-ISSUE #2233] [feature] import and show code should be in a separate dropdown #766

Closed
opened 2026-03-16 17:07:02 +03:00 by kerem · 9 comments
Owner

Originally created by @tkp-richard on GitHub (Apr 4, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2233

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Import cURL and show code has no relation to "send". It would make more sense if they were put under a separate dropdown. Additionally, the documentation no longer reflects the current UI
https://github.com/hoppscotch/hoppscotch/wiki/Import-cURL

image

Why should this be worked on?

see above.

Originally created by @tkp-richard on GitHub (Apr 4, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2233 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary Import cURL and show code has no relation to "send". It would make more sense if they were put under a separate dropdown. Additionally, the documentation no longer reflects the current UI https://github.com/hoppscotch/hoppscotch/wiki/Import-cURL ![image](https://user-images.githubusercontent.com/83326962/161478406-d877cb99-fd1a-4e01-9433-4db368877f08.png) ### Why should this be worked on? see above.
kerem 2026-03-16 17:07:02 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@Wils3B commented on GitHub (Apr 5, 2022):

I agree with you, from my point of view, these buttons are not very intuitive when they are put at this place

I suggest moving the import code to the space between the method selection and the URL entry.
The display code can be moved to the right aside split panes as described in the following image:

hoppscotch-feature-proposition

<!-- gh-comment-id:1089451801 --> @Wils3B commented on GitHub (Apr 5, 2022): I agree with you, from my point of view, these buttons are not very intuitive when they are put at this place I suggest moving the import code to the space between the method selection and the URL entry. The display code can be moved to the right aside split panes as described in the following image: ![hoppscotch-feature-proposition](https://user-images.githubusercontent.com/44102335/161861767-85ab49fe-1c1e-42c2-8740-99b40611efde.png)
Author
Owner

@jaysoni-ash42 commented on GitHub (Apr 19, 2023):

@liyasthomas @AndrewBastin @nivedin created a branch for this proposed ui/ux feature change. is this design finalize or need some changes?

<!-- gh-comment-id:1514589433 --> @jaysoni-ash42 commented on GitHub (Apr 19, 2023): @liyasthomas @AndrewBastin @nivedin created a branch for this proposed ui/ux feature change. is this design finalize or need some changes?
Author
Owner

@liyasthomas commented on GitHub (Apr 19, 2023):

I don't think this design is finalised. Feel free to share your comments on improving the UX of importing a cURL considering as of now you could simply paste a cURL on the URL box and Hoppscotch will allow you to import that cURL command.

In case of code generation, I won't encourage to occupy a full sidebar tab space. We're open for ideas on how we could place these buttons in a non-intrusive way.

Btw, @jaysoni-ash42, it seems we already have a draft PR opened for this issue: #3000.

<!-- gh-comment-id:1514626064 --> @liyasthomas commented on GitHub (Apr 19, 2023): I don't think this design is finalised. Feel free to share your comments on improving the UX of importing a cURL considering as of now you could simply paste a cURL on the URL box and Hoppscotch will allow you to import that cURL command. In case of code generation, I won't encourage to occupy a full sidebar tab space. We're open for ideas on how we could place these buttons in a non-intrusive way. Btw, @jaysoni-ash42, it seems we already have a draft PR opened for this issue: #3000.
Author
Owner

@hartmark commented on GitHub (Oct 11, 2024):

The workaround of just having the "Code snippet" to show the actual request doesn't seem to include Authorization header included from the collection.

As you can see here the Headers contain the Authorization header that is masked but in the generated code there's no Authorization header added.

image

<!-- gh-comment-id:2407126348 --> @hartmark commented on GitHub (Oct 11, 2024): The workaround of just having the "Code snippet" to show the actual request doesn't seem to include Authorization header included from the collection. As you can see here the Headers contain the Authorization header that is masked but in the generated code there's no Authorization header added. ![image](https://github.com/user-attachments/assets/e3854466-266d-478e-a822-561a4e7ee2df)
Author
Owner

@liyasthomas commented on GitHub (Oct 11, 2024):

Hey @hartmark, I can't reproduce this behavior at my end. Can you let me know which authentication method are you using?

<!-- gh-comment-id:2407137881 --> @liyasthomas commented on GitHub (Oct 11, 2024): Hey @hartmark, I can't reproduce this behavior at my end. Can you let me know which authentication method are you using?
Author
Owner

@hartmark commented on GitHub (Oct 11, 2024):

I was using the windows client and bearer token

<!-- gh-comment-id:2407151201 --> @hartmark commented on GitHub (Oct 11, 2024): I was using the windows client and bearer token
Author
Owner

@raoulkent commented on GitHub (Nov 8, 2024):

I found this ticket, and I am having the same issue as @hartmark. Using Bearer as authentication, the code generation does not generate an --Authorization: Bearer <<TOKEN>> as an example for curl commands

I've made a bug report here: https://github.com/hoppscotch/hoppscotch/issues/4524 @liyasthomas

<!-- gh-comment-id:2464707336 --> @raoulkent commented on GitHub (Nov 8, 2024): I found this ticket, and I am having the same issue as @hartmark. Using Bearer as authentication, the code generation does not generate an `--Authorization: Bearer <<TOKEN>>` as an example for curl commands I've made a bug report here: https://github.com/hoppscotch/hoppscotch/issues/4524 @liyasthomas
Author
Owner

@liyasthomas commented on GitHub (Nov 8, 2024):

Thank you, @raoulkent, for the bug report, we'll look into it shortly.

<!-- gh-comment-id:2464717686 --> @liyasthomas commented on GitHub (Nov 8, 2024): Thank you, @raoulkent, for the bug report, we'll look into it shortly.
Author
Owner

@liyasthomas commented on GitHub (Nov 8, 2024):

Closing this ticket as this particular feature request is now available in the recent version. Please feel free to reach out if you have any other concerns.

<!-- gh-comment-id:2464719227 --> @liyasthomas commented on GitHub (Nov 8, 2024): Closing this ticket as this particular feature request is now available in the recent version. Please feel free to reach out if you have any other concerns.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#766
No description provided.