Tabletop-Mirror / Issues-and-Tasks

0 stars 0 forks source link

Character Sheet Editor Freezes and Won't Re-Open #145

Closed VarunS1997 closed 2 months ago

VarunS1997 commented 2 months ago

Discord or RG username: VariSami Name of the game: - (unnamed template) Description:

I was editing a new template together without it being associated with a game yet. It had no elements in any of the tabs and I had added a second tab that I tried to name 'Characters'. The editor crashed and refuses to open even after a hard reset. Steps to reproduce:

Platform: Browser (Chrome)

Any additional relevant info: Console log for trying to open the character sheet editor again attached.

VarunS1997 commented 2 months ago

image

SirClutch6 commented 2 months ago

During duplication:

Editor did not crash when creating a new tab and naming it, as stated above. The problem occurred when deleting a tab. The editor does then crash, and the site refuses to show the Character sheet templates page at all, even after refreshing. Continuing to investigate.

SirClutch6 commented 2 months ago

Update: Any time you are viewing any template and refresh the page, the entire template system crashes. It appears that all templates are viewed/edited by use of the id in a route param, and refreshing the page causes the route param to revert to "undefined".

VarunS1997 commented 2 months ago

It's possible that this refresh issue actually causes several other issues as well, so fixing it would definitely be important. Maybe we can just wait on real route params? Or something like that? Not sure, leaving it to your discretion.

darrow97 commented 2 months ago

There is an existing function in the project called ensureBackScreen that can be added to a Stack.Navigator and guarantee the back arrow that sometimes appears in the header area has a target destination. I added this function to the CharacterSheetStack.

The url issue is still to be resolved, but now the user has the ability to get back to the Browse Templates page, which will properly populate the site state and allow the user to get back to the desired template and continue editing the template

darrow97 commented 2 months ago

closed with Tabletop-Mirror/Role-Gate-Frontend#4