withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.06k stars 63 forks source link

Offline support for Fig Dashboard #1938

Open seato opened 2 years ago

seato commented 2 years ago

Checks

Operating system

macOS Monterey 12.5.1

Expected behaviour

I should be able to access most of the fig app offline--though not the plugins section, but that should have a window letting the user know they're offline vs a "Something went wrong" error.

Actual behaviour

I end up seeing "Something went wrong :( TypeError: Load failed" errors across the Fig applicatopn

image image

Steps to reproduce

  1. Turn off your WiFi.
  2. Open up fig ($ fig in terminal).
  3. Click on any of the side menu options.

Environment

fig-details:
  - desktop-version: Version 1.0.61 (B528) [U.S.]
hardware-info:
  - model: MacBook Pro
  - model-id: MacBookPro16,1
  - chip-id: 
  - cores: 8
  - mem: 64 GB
os-info:
  - macOS 12.5.1 (21G83)
environment:
  - shell: /bin/zsh
  - terminal: terminal
  - cwd: /Users/richard.thai/Library/LaunchAgents
  - exe-path: /usr/local/bin/fig
  - install-method: brew
  - env-vars:
    - FIG_INTEGRATION_VERSION: 8
    - FIG_TERM: 1
    - FIG_TERM_VERSION: 5.2.0
    - PATH: /Users/richard.thai/.nix-profile/bin:/Users/richard.thai/.nix-profile/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/richard.thai/.nix-profile/bin:/Users/richard.thai/.cargo/bin:/Users/richard.thai/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home:/Users/richard.thai/Library/Android/sdk/platform-tools:/Users/richard.thai/.fig/bin:/Users/richard.thai/.local/bin:/Users/richard.thai/Library/Application Support/Coursier/bin:/Users/richard.thai/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/Applications/Android Studio.app/Contents/jre/Contents/Home:/Users/richard.thai/Library/Android/sdk/platform-tools::/nix/var/nix/profiles/discord/bootstrap-1-link/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - TERM_SESSION_ID: 3989F8EA-7845-446C-94E2-6D949C15B427
    - FIG_PID: 832
- integrations:
  - SSH: false
  - TMUX: false
  - iTerm: application is not present.
  - Hyper: application is not present.
  - Visual Studio Code: installed!
  - Docker: false
clo4 commented 2 years ago

Hey @seato! Thanks for making the issue 🙂

I don't think we have any plans to do full offline support just yet. Most things require hitting the backend. We can improve the offline experience though

Thoughts? @rahulsarathy @parssak

parssak commented 2 years ago

I want to add full offline support SO bad... just don't have the bandwidth for it rn unfortunately ☹︎

From my past experience half baked solutions (throwing everything in local storage) usually ends in disaster with syncing issues, but it's def something we can look into if we can do a cheap solution well. Thoughts @rahulsarathy ?