I cannot rollback my changes and the whole I app i spent dayssss on is broken

I have tried manually rolling back the last few commands but it stays broken, I tried to let the Ai Assistant fix it as suggested, it makes it work but its different and every single change i made over the last few days is just gone. Please help me restore this. Project is 'myshopwrapped' and if we can restore to the last deploy, that would be amazing
16 Replies
Cubeyy
CubeyyOP•4w ago
I used about 500 credits to get it where it was and BOOM gone within a few
Smelvin
Smelvin•4w ago
Hi Cubey, what do you mean by "manually rolling back"? Are you clicking the 3 dots below the changelogs from the assistant and selecting "Rollback" ?
Cubeyy
CubeyyOP•4w ago
So, the situation for me personally is that I was making changes to one of 3 tabs within the preview (tabs in my app). I made a bunch of changes and fixes with the ai assistant then when I went to view the 3rd tab realised it was broken, so at some point within those 20-30 prompts, it ruined the 3rd tab without me noticing. I feel like when you deploy the app its a great save point. If we can roll back to the last deploy or a time frame and just go back to that save essentially - that would be a life saver. I have now spent about 50 credits trying to manually roll back each one and see what it changed, and now fixing more errors. Very annoying but if we could roll back to a time or deployment, that would have solved that issue if you are able to manually roll back to a certain point, let me know as I am still trying to fix it
Smelvin
Smelvin•4w ago
So I would not use production as a primary save point, I would recommend having a development environment for Staging where you only use it to merge your development branch into it once you've completed a section or task. I personally use github for my change management. I would highly recommend creating some branches in your github to handle rolling back a long window of changes so you still have acccess to your code. From there to roll back it would entail going through your conversation with the assistant to find that proposal you want to revert back to, and selecting rollback. As well for the AI assistant Its recommended to create new conversations for each task, will all AI's they degrade in quality with prolonged conversations.
Cubeyy
CubeyyOP•4w ago
Sounds good, I will have to learn how to do that but no issue there. In the meantime, I have gone through and rolled back a tonne of changes to a point where it looked 90% normal but could not rollback further. Then i opted to try and fix with the ai assistant and am just having no luck. You did not explicitly say you cannot roll it back for me, is this a possiblity still? It would save me many many hours and credits more if that was able to be done for me. If you can roll it back to the last deployment or 12 hours ago... life-saver. I will start to impliment the changes you recommended to solve this in the future
Smelvin
Smelvin•4w ago
It dosent make much sense for me to roll back as I would be doing the same thing you would be doing on your end (scrolling back in the convo) but I dont know much about the project or what point is the intended rollback point. If you reached the end of the assistant conversation that would be your furthest rollback point
Cubeyy
CubeyyOP•4w ago
yeah its just a headache trying to fix it and if i try to fix an error with the assistant it just doesnt seem to work, even when i put the error into chatgpt and that gives me a prompt to place in the app builder, still not really fixing anything. I have been trying for hours now. I just need it back to a working point
Smelvin
Smelvin•4w ago
By app builder to you mean the Gadget platform or the assistant? I reccomend creating a new conversation for each task and being as specific as possible with the assistant. It keeps the context memory lean, allowing it to be more efficient and as well keeps your project more organized.
Cubeyy
CubeyyOP•4w ago
I am referring to the assistant, I have been using it to make all the changes as needed functionality or visual changes etc how do you create a new chat? Whenever I close it and reopen it, its got all the history saved
Smelvin
Smelvin•4w ago
in the top left of the assistant window you will see an icon for drafting new messages If you arent in a blank conversation it will be selectable. When you have more conversations clicking the conversation title will show a dropdown for other conversations as well
No description
Smelvin
Smelvin•4w ago
No description
Cubeyy
CubeyyOP•4w ago
oh you're amazing. Thanks for that, I will do that from now.
Smelvin
Smelvin•4w ago
Are you familiar with getting your Gadget project set up on github?
Cubeyy
CubeyyOP•4w ago
Not at all, I am about to start searching around to see how to do it I am brand new to all of this 🙂
Smelvin
Smelvin•4w ago
I can help with that, we have several guides in our documentation https://docs.gadget.dev/guides/source-control#using-git-with-gadget
Cubeyy
CubeyyOP•4w ago
Ah, perfect, thanks!

Did you find this page helpful?