blitz-js / blitz

⚡️ The Missing Fullstack Toolkit for Next.js
https://Blitzjs.com
MIT License
13.6k stars 791 forks source link

Tool To Visualize App Changes Between Versions (copy and tweak this tool from React Native) #1703

Closed flybayer closed 10 months ago

flybayer commented 3 years ago

What do you want and why?

As time goes on we make changes to the new app template that existing blitz apps might want. As well as breaking changes here in the pre-1.0 era.

Currently it's difficult to see the changes between version, especially when jumping multiple versions at once.

The solution is a web tool to visualize the changes between versions just like react native has.

Possible implementation(s)

This should be fairly straightforward by modifying the react-native one. How it works is that you create a new branch for each release like release/0.28.0 and generate a new blitz app on that branch. They have a script that automates this process. Then the web UI will fetch the diff between branches straight from the Github API.

  1. I have already forked https://github.com/react-native-community/rn-diff-purge to a new blitz repo: https://github.com/blitz-js/versions-diff
  2. Need to delete all the RN release branches and stuff
  3. Modify the scripts to generate a blitz app instead of react-native app
  4. Push new release branches for existing versions of Blitz
  5. Update branding, like favicon, etc

I will give direct access to this repo to whoever wants to work on this.

matthieu994 commented 3 years ago

Hello @flybayer ! I would like to work on this :) I've already started to change commands and I'm trying to find out what needs to be modified for Blitz.

flybayer commented 3 years ago

Awesome! Let me know if you have any questions

matthieu994 commented 3 years ago

Thanks ! Can I have access to the repo ?

flybayer commented 3 years ago

@matthieu994 done. Accept here: https://github.com/blitz-js/versions-diff/invitations

matthieu994 commented 3 years ago

Hello ! Turns out rn-diff-purge uses 2 repos to generate the github.io webpage. I've forked the second one : https://github.com/matthieu994/upgrade-helper

There are still bugs, especially with the react-diff-view library. (see console) And the canary versions are removed from the version selector. I will look into this, but you can already have a look and maybe deploy somewhere. :)

flybayer commented 3 years ago

@matthieu994 thank you!

I've been swamped this week, but I'll try to review asap

flybayer commented 3 years ago

@matthieu994 ok wow, this is so cool!! 👉 https://github.com/blitz-js/versions-diff

I've ported your repo here: https://github.com/blitz-js/versions-diff-web And it's now auto deployed to https://diff.blitzjs.com (but broken, like you said)

flybayer commented 3 years ago

Also did you figure out how what I need to do to get it automated?