Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[legacy-framework] Add loading progress indicator to blitz console #1336

Merged
merged 2 commits into from
Oct 16, 2020

Conversation

JoseRFelix
Copy link

Concerns: #1098

What are the changes and their implications?

Changes

  • Load modules before REPL prompt is shown.
  • Add a loading indicator when loading modules.

This PR aims to improve the UX for users when opening the Blitz console by waiting until all modules are loaded before showing the prompt. This won't solve the underlying issue with slow loading. However, it will allow the user to know when he can begin typing and improve the user experience quality.

Since this doesn't solve the underlying issue, I'm open to possible solutions for improving loading times.

Demo

15

Checklist

  • Tests added for changes
  • PR submitted to blitzjs.com for any user facing changes

@JoseRFelix JoseRFelix requested a review from flybayer as a code owner October 15, 2020 07:36
@JoseRFelix JoseRFelix changed the title feat: repl modules are loaded before prompt REPL modules are loaded before prompt Oct 15, 2020
@flybayer
Copy link
Member

Sweet, thanks! This will definitely help some

@flybayer flybayer changed the title REPL modules are loaded before prompt Add loading progress indicator to blitz console Oct 16, 2020
@flybayer flybayer merged commit 728ef2d into blitz-js:canary Oct 16, 2020
ntgussoni added a commit to ntgussoni/blitz that referenced this pull request Feb 7, 2021
* 'canary' of https://github.com/blitz-js/blitz: (43 commits)
  v0.25.0-canary.0
  docs: add nemesv as a contributor (blitz-js#1373)
  Fix `blitz db seed` not working (blitz-js#1363)
  docs: add sirmyron as a contributor (blitz-js#1361)
  Added useMemo call for response from useRouter (blitz-js#1352)
  Fix your jest tests failing because of useQuery error message (blitz-js#1357)
  docs: add markhaehnel as a contributor (blitz-js#1360)
  Fix blitz CLI not using proper exit codes (blitz-js#1316)
  docs: add dulcehc as a contributor (blitz-js#1359)
  (newapp) Add incremental:true to tsconfig.json (blitz-js#1350)
  Add @zanedb as a contributor
  docs: add nksaraf as a contributor (blitz-js#1358)
  Fix db.connect error when using without prisma (blitz-js#1342)
  Adds test to assert useMutation validation (blitz-js#1351)
  (newapp) Fix tests not found if app has blitz in the name (blitz-js#1355)
  Add setQueryData to react-query-utils AND rename mutate to setQueryData (blitz-js#1291)
  Fix error stack trace regression by upgrading tslog: 2.9.0 → 2.9.1 (patch) (blitz-js#1348)
  Upgrade superjson: 1.2.3 → 1.3.0  (blitz-js#1347)
  v0.24.3
  Add loading progress indicator to `blitz console` (blitz-js#1336)
  ...
@itsdillon itsdillon changed the title Add loading progress indicator to blitz console [legacy-framework] Add loading progress indicator to blitz console Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants