facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.34k stars 953 forks source link

Discussion: [js-flipper] allow more configuration for device #3887

Open usrbowe opened 2 years ago

usrbowe commented 2 years ago

Current state

I would like to discuss more about more flexibility in configuring those fields, when using js-flipper:

Proposal

Specify manually os, device

This could be done as extra param in flipperClient.start(...): https://github.com/facebook/flipper/blob/6dc85f6646ba5951cb9e87d085ceb13140673870/js/js-flipper/src/client.ts#L150-L151

Use device instead of applying clientQuery.app

Currently uses the device and client as same name. https://github.com/facebook/flipper/blob/6dc85f6646ba5951cb9e87d085ceb13140673870/desktop/flipper-server-core/src/comms/ServerController.tsx#L258-L264

Allow specify icon for app

Currently all js-flipper connection will not have any icon, since it's not specified. We could allow to pass extra clientQuery to provide icon name. Likely could have default for Browser and NodeJS in similar fashion as detectOS util. https://github.com/facebook/flipper/blob/6dc85f6646ba5951cb9e87d085ceb13140673870/js/js-flipper/src/client.ts#L230

Visual comparison

We could go from this state: image

To this state: image

aigoncharov commented 2 years ago

Love the improvements! I'd be happy to accept PRs for each one of them

usrbowe commented 2 years ago

Ok, let me compile the changes in PR.