Giter VIP home page Giter VIP logo

Comments (7)

vbuberen avatar vbuberen commented on July 21, 2024 1

Agree here that we could start without collapsing. Let's see feedback for non collapsed items first.

Also, making changes for collapsing will clash with changes planned in #337 and I would like to avoid it.

from chucker.

psh avatar psh commented on July 21, 2024

Before I drop a PR for cookies support, I'd like to get a little feedback on the UI.

The "cookies" tab is displayed if there are cookies present in either the request or the response
01-request-with-cookies-overview

The "cookies" tab reuses the same UI style of headers that we have on request / response
02-request-with-cookies-cookies-tab

Here's the question - the cookies are present as headers in both the request and response. I opted to leave the headers (see screenshot) even though they appear on the cookies tab, as they are valid headers. Would you prefer them to be hidden?
03-request-with-cookies-request

Cookies going in both directions
04-cookies-sent-and-received

Request/response without any cookies - tab is hidden
05-traffic-without-cookies

from chucker.

vbuberen avatar vbuberen commented on July 21, 2024

Hey @psh
Thanks for taking initiative here.

From my point of view adding a new tab with cookies will make UX worse due to creating additional confusion for users.
We have Request and Response tabs for all corresponding info. Putting part of request or response into a separate tab isn't something that looks good for me.

So I am for having cookies in the proper place as headers - if these are cookies for request lets put them in Request, if these are cookies for response we should put the in Response. This way library user will always know that all connected with request/response is 100% in the corresponding tab.

from chucker.

psh avatar psh commented on July 21, 2024

If the cookies live on their respective request and response tabs we would potentially be adding more secondary content that pushes the request body down; most of the time when I am using Chucker the body is what I care about most. It would be nice to be able to expand and collapse regions of the display to be able to see more. Personal preference, I would open the detail screen in collapsed state (at least for cookies, maybe headers also). If there are no cookies, I would hide that section of the display.

Expanded view:

Request TNG - expanded

and, collapsed version (showing # of cookies / headers) able to see more of the body that I care about.

Request TNG - collapsed

(note: I havent finished filling in all the share / save / search icons in the header in my Sketch design yet)

from chucker.

cortinico avatar cortinico commented on July 21, 2024

From my point of view adding a new tab with cookies will make UX worse due to creating additional confusion for users.
We have Request and Response tabs for all corresponding info. Putting part of request or response into a separate tab isn't something that looks good for me.

Agree on this point.

I like your second proposal @psh. I think we should maybe come up with a first solution that doesn't support the collapsing and add that in a subsequent PR.

from chucker.

psh avatar psh commented on July 21, 2024

Implementing this feature after #337 would be a piece of cake - there's a lot of re-use available in the draft PR you shared. I'm happy to wait until #337 makes it into the codebase to complete the implementation.

from chucker.

vbuberen avatar vbuberen commented on July 21, 2024

The only concern with waiting for 337 - we might need to wait till that version of RecyclerView gets stable. I wouldn't like to have some alpha/beta versions in the library to not cause issues to library users.
We might want to release next version of the library sooner than that PR, so it would be great to have cookies support implemented earlier to not block library development.

from chucker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.