[PR #2425] [MERGED] feat: display response size with a bigger unit in tooltip #3801

Closed
opened 2026-03-17 01:23:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2425
Author: @nicognaW
Created: 6/13/2022
Status: Merged
Merged: 6/14/2022
Merged by: @AndrewBastin

Base: mainHead: response-size-tooltip


📝 Commits (4)

  • 880b542 feat: display response size with a bigger unit in tooltip
  • d7bb8f9 refactor: optimize and fix response size hint.
  • d562195 refactor: display readable response size text in the span and raw text in the tooltip.
  • 1714d6e chore: rename responseSizeReadable and add doc comments

📊 Changes

1 file changed (+37 additions, -2 deletions)

View changed files

📝 packages/hoppscotch-app/components/http/ResponseMeta.vue (+37 -2)

📄 Description

Description

The response size is always displayed using larger units like KB or MB in other API testing tools I've used. But hoppscotch shows them up with only a B. I added a tooltip to display the response size in reasonable units.

For responses with a size of 0b to 1000b, the tooltip won't show up. For those with a size of 1000b to 1000000b, kB will be shown. For those larger than 1000000b, mb will be shown. 

I am no expert on the front-end technologies, so I just imitated the current codes. If you don't like these codes, please keep the idea even if you close the pr.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/2425 **Author:** [@nicognaW](https://github.com/nicognaW) **Created:** 6/13/2022 **Status:** ✅ Merged **Merged:** 6/14/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `response-size-tooltip` --- ### 📝 Commits (4) - [`880b542`](https://github.com/hoppscotch/hoppscotch/commit/880b542be182d462dc483abe737fa099598ad898) feat: display response size with a bigger unit in tooltip - [`d7bb8f9`](https://github.com/hoppscotch/hoppscotch/commit/d7bb8f908fe4d5803fcd067365a3227b4aa9e2ff) refactor: optimize and fix response size hint. - [`d562195`](https://github.com/hoppscotch/hoppscotch/commit/d5621954a61658bcc887d703ae14e3405835b0cb) refactor: display readable response size text in the span and raw text in the tooltip. - [`1714d6e`](https://github.com/hoppscotch/hoppscotch/commit/1714d6ec4ff5ba1e92b93df8061625aab61b8675) chore: rename responseSizeReadable and add doc comments ### 📊 Changes **1 file changed** (+37 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/components/http/ResponseMeta.vue` (+37 -2) </details> ### 📄 Description ### Description The response size is always displayed using larger units like KB or MB in other API testing tools I've used. But hoppscotch shows them up with only a B. I added a tooltip to display the response size in reasonable units. For responses with a size of 0b to 1000b, the tooltip won't show up. For those with a size of 1000b to 1000000b, kB will be shown. For those larger than 1000000b, mb will be shown.  I am no expert on the front-end technologies, so I just imitated the current codes. If you don't like these codes, please keep the idea even if you close the pr. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:23:09 +03:00
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#3801
No description provided.