-
Notifications
You must be signed in to change notification settings - Fork 15
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
reload rules #898
Comments
@atulbhatt-system32 need your help with this |
@atulbhatt-system32 i think we clarified this in another issue? |
@edenvidal I think this part is more focused toward handling reload rules for active html file but we can have it grouped altogether. |
yes @atulbhatt-system32 i also think this part is actual kinda covered by kareem? |
@edenvidal he implemented reload button with iframe reload which works correctly. Rest I'm not sure if all the other things are working correctly. |
@edenvidal please add more detailed context to it. There is files related reload in issue #892 and that's different. Need a clarity on what actions we do and what results we observe. And what do you mean by fake relaod? |
@atulbhatt-system32 the reload action is partially implemented, so some of the checkboxes here are already completed. however, i’m keeping them all together to ensure the best possible user experience around reloading.
|
@atulbhatt-system32 please, what are we doing with this one? |
I was thinking about this only when I mentioned about the behaviour of phcode node updating dom when there are parsing errors. To prevent full page reload we need to make sure we update only specific part of the ui for which the code has changed. If we are able to do that there won't be full page reload until and unless required. Also I was trying to change morphdom with Idiomorph which I was able to do to some level. As Idiomorph also gives us control on how we treat head tag and if we want to preserve any node. We also need to think about handling web-components. I think if we are able to solve this - it will solve the bigger picture. This issue is very broad in terms that it is connected with everything. But this can be the starting point. |
@atulbhatt-system32 thanks. i feel the same way. the lowest layer of the reload system is the specific, contextual changes happening in the moment. then there's the actual brutal reload which is somewhat this task. i believe both should be addressed together. |
@edenvidal I'm working on this currently and on the way also making things more of a event based then state changes triggered. So we can simply dispatch an event if we want to do something. Now we have to categorise the content changes event based on: There are following events that causes the changes in text content in the editor:
There might be more which I'm missing. |
I tried other libraries such as cheerio and rehype to see if we can get more helpful results from parsing. Rehype seems a good option from the point of extending functionalities. https://github.com/rehypejs/rehype Apart from that I am making an event which triggers when we open a file. Currently our functionalities are linked based on effect of change in currentFileContent. We have to maintain a lot of other states to differentiate if the updates in currentFile are due to typing, edit/undo, or opening a new file which makes things complex. I'm trying to make this also event based. Also I will try to update and simplify the nodeTree. |
thanks for the update @atulbhatt-system32 . would be good to stress-test it heavily with complex pages such as the rnbw.design or rnbw.design/guide while making this core update |
Yes @edenvidal. This is a very core change so every single functionality will be required to best stress tested. With all this I'm aiming to simplify the APIs of rnbw too. |
Here is the progress:
Currently working on codeView.
These are the current set of actions I'm doing. It will take time but will result in a more robust code. Coding it slow but consistently with thoughts. |
thanks @atulbhatt-system32 ! amazing. i am thinking, maybe break into smaller chunks what we can?
would more frequent check-ins work as each piece is done? helps catch issues early. lmk your thoughts |
thanks @atulbhatt-system32. continuing the discussion on the multi-model setup—the ability to interpret open-format files (literally text) with common models is amazing. it is the foundation of ai-native design environment |
Yes! what I'm thinking is to create the models for all types of files we have just after creating the file tree where we can easily know the type of files we have. This way the model will be ready by the time we load the file of that particular type. |
amazing @atulbhatt-system32 |
Basic level multi model implementation was done. However, faced with an error. Sometimes when opening different types of file the content of the current file is not shown however the model of the file gets updated. The file apis are still confusing and going through the documentation of Filer to see how to handle the files effectively as the current code has a lot of chains and difficult to understand. Till now only html files were handled with nodeTree. Now, starting to cover fileTree too. This issue exists already in our project where switching between files sometimes shows wrong file content. |
thanks @atulbhatt-system32 ! what can i do to help/test? lmk |
@edenvidal Right now there are incomplete functionalities so you won't be able to test much. But today I will push the branch where I'm doing all the changes. So you can check it. There won't be any visible change. |
let's not look back. if you're confident there's no UI/UX impact, merge to dev in full force @atulbhatt-system32 |
By the point where I said there won't be any visible change means the code I wrote and restructured won't show any effects on application. Currently a lot of functionalities are not working as they are not connected. I have pushed a branch called: restructure-and-optimize There all the current progress is there. |
@atulbhatt-system32 got it! So, the big question is—what’s the delta needed to run it smoothly? when do you think we can get there? 🙏 |
@edenvidal To run it smoothly, every bit of code needs to be predictable in workflow. At least for me. If I'm finding a piece of code taking a lot of time to figure out. I'm breaking it down and segregating it. Today I did a breakdown of rnbw init function. I don't have a fix timeline for this milestone. |
@atulbhatt-system32 is there something we can hold on to? 🙏 |
I will try to do it by or before 24 March |
experiment with way to smooth (fake) the reload so that it won't lose context
The text was updated successfully, but these errors were encountered: