proxyman-windows-linux icon indicating copy to clipboard operation
proxyman-windows-linux copied to clipboard

New Windows UI - v2

Open NghiaTranUIT opened this issue 2 years ago • 10 comments

Description

#305 should be deprecated.

The new design looks better, but it's hard to use: For example:

New Design:

  • Status View is hidden -> Need to click to show the Popover
  • Content Type Filter (JSON, HTTP, HTTPS, ...) is hidden -> Need to click on the Filter button to show it -> Hard to discover

Task 1: Use the new menu from Shadcn

  • [x] Install the Shadcn for the Menu Context. Code: https://ui.shadcn.com/examples/music
  • [x] Replace the main app menu (BlueprintJS) with a new menu from ShadCN, including Proxyman, File, Edit, Certificate, Diff....
Screenshot 2023-09-24 at 16 50 25
  • [x] Make sure all Shortcuts are still working (For example Control + , -> Show the Preference)
Screenshot 2023-09-24 at 16 52 25
  • [x] Replace the menu context from the Main Table View -> Make sure all shortcuts are working ✅ Screenshot 2023-09-24 at 16 54 37

  • [x] Replace the menu context from the Left pane

Screenshot 2023-09-24 at 16 52 38
  • [x] Replace all menu context from All tools: Map Local, Breakpoint, Diff, ...
Screenshot 2023-09-24 at 16 56 02

NghiaTranUIT avatar Sep 24 '23 09:09 NghiaTranUIT

Task 2: Place Dropdown with ShadCN

  • [x] Replace old dropdown from the Filter (e.g. URL and Contains dropdown) with ShadCN Screenshot 2023-09-24 at 16 52 57

  • [x] Make sure we keep the current size of the two buttons (width, height)

  • [x] Replace the checkbox with ShadCN checkbox button (Make sure same width/height)

NghiaTranUIT avatar Sep 24 '23 10:09 NghiaTranUIT

Task 3: Use Shadcn Popover

  • [x] Remove all BlueprintJS Dialog code (When displaying the Preference, Certificate View, iOS device, Android, ...)
  • [x] Use ShadCN Popover
  • [x] Make sure all UI of theses screens are not broken

Task 4: Replace BlueprintJS buttons with shadcn button

  • [x] The problem of the BlueprintJS button is it has shadow -> Replace BlueprintJS button with shadcn button
  • [x] Make sure it has the same width and height, font size, font name
  • [x] Use default Shadcn border color and border radius.
  • [x] Find all buttons from the app and replace it.

For example: Screenshot 2023-09-24 at 17 02 31

Screenshot 2023-09-24 at 17 05 21 Screenshot 2023-09-24 at 17 05 31 Screenshot 2023-09-24 at 17 05 50 Screenshot 2023-09-24 at 17 06 03 Screenshot 2023-09-24 at 17 06 09 Screenshot 2023-09-24 at 17 06 17

NghiaTranUIT avatar Sep 24 '23 10:09 NghiaTranUIT

Task 5: Replace BlueprintJS Alert

  • [x] Replace all BlueprintJS Alert with ShadCN: https://ui.shadcn.com/docs/components/alert-dialog
  • [x] Don't use any ICON.

For example: Screenshot 2023-09-24 at 17 06 39

  • [x] Make sure the Title and description are intact. The destruction button should have a Red Background
  • [x] Logic is still working

NghiaTranUIT avatar Sep 24 '23 10:09 NghiaTranUIT

Task 6: Replace BlueprintJS Toast

  • [x] Find all Toast and replace with shadcn toast: https://ui.shadcn.com/docs/components/toast

  • [ ] Premium Toast: Find a way to show a Toast in the same position as the current Toast (Top Middle). Make sure to have Upgrade Now button

Screenshot 2023-09-24 at 17 13 15
  • [ ] Error Toast: Show Destructive Toast (Right Bottom position) with the error -> Make sure current buttons are working.

NghiaTranUIT avatar Sep 24 '23 10:09 NghiaTranUIT

Task 7: Replace Header Table View with new Header from Windows-Prototype

  • [x] Remove the old Header (as a Table View with 2 columns) to the new Header from Windows-Prototype -> It means we can easily select text from multiple rows.
  • [x] Has two Columns: Key & Value
  • [x] Verify the Header Filter is working
  • [x] Apply to the Form, Query, Auth, ... which uses the Header View

NghiaTranUIT avatar Sep 24 '23 10:09 NghiaTranUIT

Task 8: Improve the Summary tab

  • [ ] Remove the Expand/Collapse Animation
  • [x] Fix the height of the row: Currently, it's too big, and it's inconsistent with the Height of the Header Row => Use the same Height as the Header Row
Screenshot 2023-09-25 at 08 47 12

NghiaTranUIT avatar Sep 25 '23 01:09 NghiaTranUIT

Task 9: Redesign the Update App panel

  • [ ] Remove old code that shows this Window Panel when there is a new update, updating the app, installing the new update, ..
Screenshot 2023-09-25 at 08 53 20 Screenshot 2023-09-25 at 08 51 26
  • [ ] Keep this design: From what I know, it's a native MSI installer, so we can't change the design. Screenshot 2023-09-25 at 08 55 33

  • [ ] Implement new design


New design

1. You're up to date:

  • Use the same layout of the notification: https://tailwindui.com/components/application-ui/overlays/notifications
  • Position: Top-Right
  • Title: You're up to date
  • Description: Proxyman {version} is currently the newest version available.
  • Make sure the {version} is dynamic and show the correct build version.
Screenshot 2023-09-27 at 08 18 07

2. Downloading progress

  • Show Notification: Top-Right: Code: https://tailwindui.com/components/application-ui/overlays/notifications
  • Title: Downloading 30%...
  • Description: N/A
  • Logic: Make sure the percent number is updated properly
  • Don't use the Reply button
  • Can click X to hide it, but the app is still downloading in the background.
  • When it's completed, show the Read to Install design.
Screenshot 2023-09-27 at 08 36 43

3. Ready to install

  • Code: https://ui.shadcn.com/docs/components/alert-dialog
  • Show this alert dialog entire the screen -> Don't allow to dismiss this alert
  • Title: Ready to install!
  • Description: Proxyman {version} is downloaded and ready to install.
  • Button: 1 primary black button: Title=Install
  • Action: Start updating the app.
Screenshot 2023-09-27 at 08 22 18

NghiaTranUIT avatar Sep 25 '23 01:09 NghiaTranUIT

Task 10: Some improvements

  • The font family and font size of these layouts are not matched.
  • The Windows version (Run on a Windows machine or parallels) looks completely off.
macOS:
Screenshot 2023-09-25 at 09 09 49 Screenshot 2023-09-25 at 09 17 25
Windows

Screenshot 2023-09-25 at 08 52 48 Screenshot 2023-09-25 at 09 09 42

How to fix
  • [ ] Make sure the Windows version uses the same Font Family and Font Size as the macOS.
  • [ ] The Top and Bottom padding (Windows) are off -> Make it look like the macOS.

NghiaTranUIT avatar Sep 25 '23 02:09 NghiaTranUIT

Updated: new design for Task 9: Redesign the Update App panel

NghiaTranUIT avatar Sep 27 '23 01:09 NghiaTranUIT

Task 11: Update new design for Change Logs

  • Use Shadcn dialog: https://ui.shadcn.com/docs/components/dialog
  • Design similar (Title, Description, font size, font weight) with:
Screenshot 2023-09-27 at 08 49 30
  • Title: Proxyman Change Logs
  • Description: Proxyman {version} is available to update.
  • Content: Use the Markdown render, corner border -> Make sure the padding looks good. The current design is off.
  • Use one button: Install as a Primary Button (Black)
Screenshot 2023-09-27 at 08 41 50

NghiaTranUIT avatar Sep 27 '23 01:09 NghiaTranUIT