TK Live View
No edit summary
(Adding page to Category:TOC because it contains a TOC.)
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Introducing a new feature ...
I have been showing what has been growing slowly in the designing of the web UI and while the app is running. This is more of the same. We have taken it a bit further and consolidated some of the functions that I think one needs when fine-tuning the look and feel of a web application.  
# growing  slowly  the  signing  of  the  web  UI  and  while  the  app  is  running  and  then  this  is  more  of  the  same  we  have  taken  it  a  bit  further  and  and  consolidated  some  of  the  Functions  that  I  think  one  need  when  fine  tuning  the  the  look  and  feel  of  a  web  application  and  I'm  very  happy  about  how  this  is  turning  out of course  whenever  you  do  something  like  this  and  move  the  front  here  forward.  You  see  a  lot  of  possibilities  and  new  things  that  you  can  add  but  we  need  to  pace  it  and  take  Things  in order  to  make  it  usable  so  I'm  very  and  To  see  as  they can  eager  to  hear  the  feedback  on  once  it  gets  used  to  to  see  So that  we  prioritize  the  right  things  to  do  I'm  gonna  talk  a  bit  about  where  we  are  and  what  we  want  to  achieve.  
 
# You're  just  gonna use  the  Standard  model to  show  these  things  and  What  has happened  from  before  is  that  we  have  a  new  icon  here  that  Costs  the  turn key  live  editor  and  this  is  the  view  model  editor  so  they  resemble  each  other  and  it's  a  combination  of  the  And  the  run  button  which  we  had from before where  you prototype  and start  the  system  in either WPF  or  in  the  the  local  turn  key  prototypers  so  this  is  sort  of  a  hybrid  between  the  the  view  model  editor  where  you  actually  changed  the  definition  of  the  views  and  This  where  you  actually  run  the  application  so  if  I  push  this  one  I  And  always  get  a  corresponding  View  model  Connected  to  it.  So  this is  because  they  share  some  of  the  logic  so  if  you  don't  want to  see  it  you don't  need  to  look  at  it,  but  it's  there  and  this  is  basically  a  Embedded  browser  then  you  And  Value two Microsoft's embedded edge browser  which  is  replacing  the  old  Internet  Explorer  and  edge  so  What  happened  there  was  that  they  said  that  well  there's  no connection  to  the  toy machine 
There are four foldup sections in the TK Live View: '''Live Edit''', '''Server Setup''', '''Assets TK Synk''', and '''Debug Information'''.  
# So  what  we  want  to  do  is  to  set  up  a  server  so  this  is  something  that  is  Looks  very  much  as  it  did  in  the  play  button  that  we  can  check  if  we  have  a  current  turn  key  Core  installed we need  one  of those  and  that we  can  use  so  this  is  new  and  Particularly  you  launch  has  been  asking  for  the  ability  to  connect  it  to  a  M  driven  service  that  so  so  this  is  optional  You  can either  run  it  towards a  local  XML  file  or  you  can  use  the  M  driven  server  and  that  will  use  the  Settings  from  the  cloud connection  for  for  data  If  you  choose  that  one  this  button  lights  up  and  you  get  to  this  one  where  you  actually  can  Set  the  server  that  you  want  to  run  against  but  for  now  I'm  gonna  use  the  XML  So what  I want  to do  is to restart the  turnkey  core  and  This  New  text  highlights  in  red  when  it's  Discovered  that  the  if  there's  a  server  running  or  the  settings  from  before  doesn't  match  the  file  that  we  actually  Working  on  so  I'm  working  on  a file  that's  stored  in  the  internet  cache  here.  So sample  model  for  associations  and  Restart  the  server  and  once  that  is  done  I  and  Can  fold  this  tab  again  and  then  this  one is  Started  with  our  application.  So  this  is  basically  Just  the  application  in  the  browser  nothing to  it  so  far  but  when  we choose to  Fold  down  this  live  edit  tab  we  get  the  the  view  model  tree  and  also  some  of  the  View  of  the  settings  that  are  interesting  Per  view  model  column.  So  when  I  click  something  here  Like  this  all  things  I  can  see  that  this  is  position  that  the  position  0x  and  0  y  and  if I  were to  To  change this  to  like  10  instead  This  would immediately jump  and  I  don't  have  to  Refresh  anything  and  that's  the  beauty  of  us  running  within  Harness  like  this  because  we  can  do  the  Push  and  refresh  for  you  so  to  To  make  things  move  smoother  and  then  As  I've  shown  before  we  can  also  move  things  around  like  this  And  since  this  is  the  running  application  I  can  expect  to  find  the  actions  I  can  create  a  new  thing  and  I  can  save  that  and  If  this  is  small  screens,  I'm  gonna  You  One thing   
 
=== The Turnkey Live Editor ===
We have an icon that calls the Turnkey Live Editor. This is sort of a hybrid between the ViewModel Editor, where you change the definition of the views, but this way, you can run the application. It is a combination of the run button which we had before - where you prototype and start the system in either WPF or in the local Turnkey prototyper. When the icon is pushed, you get a corresponding ViewModel connected to it because they share some of the logic. <blockquote>It is basically an embedded browser, the new WebView2, Microsoft's embedded Edge browser, which is replacing the old Internet Explorer and Edge. </blockquote>
=== Live Edit===
If you choose to fold down the Live Edit tab, you get the view model tree, and a few, interesting settings per ViewModel column.
 
When you click something in the ViewModel tree, you can see where it is positioned on the X and Y axis. You don't have to refresh - and that's the beauty of running within a harness like this, because MDriven can do the push and refresh for you to make things move smoother. You can also move things around, and since it is a running application, you can, for example, expect to find actions, create new things, and save those.
=== Server Setup ===
When you click on Server Setup, it has a similar look to that of the play button for the system prototyper. You can check if you have the current Turnkey core installed. It is optional; you can either run it towards a local XML file or use the MDriven Server which will use the settings from the cloud connection for data.
 
If you choose the MDriven Server, the "Settings for MDrivenServer" button will light up in blue when you hover over it. Click on it and a new window labeled CloudForm will open. This is where you can set the server you want to run against. 
 
Or you can choose to use the XML. "Re(Start) MDriven Turnkey Core", and you may see new text that highlights in red when it discovers that there is a server running, or the settings from before don't match the file you are actually working on (you may be working on a file that's stored in the internet cache  -  a sample model for association). Restart the server, and once that is done, fold the Server Setup tab again, and then the popup window starts with your application in the browser. 
 
=== AssetsTK Synk===
This ability has been available with Assets for a long time, but they were challenging - you had to read the wiki and manually implement it. They are fully functional now and this is where they can fit seamlessly into the overall workflow.
 
When you turn on AssetsTK Synk, the application ensures an Assets TK folder which has the same name as your model, but with underscore AssetsTK ("_AssetsTK") because that's the trigger for it to be discovered once we upload the model to the cloud, etc. This is just basically a file tree where you can F5 it to to make sure you see everything.  
 
To the right are buttons for common things that we put in the Assets, for example, the tkusercss. If you click on it and press on the AssetsTK folder, you would see a "content" folder which would then open a tkusercss file in Notepad (or you can associate it with a better tool like Visual Studio or Visual Studio code). It's beneficial because the tkusercss file can be made to to sync and discover changes in the Notepad file and when it syncs, it will upload it to the server and make it active for the server immediately.
 
=== Debug Information ===
The fourth tab under the Turnkey Live Editor button is the Debug Information. It is the same debugger that's available from pressing the play button (select XML, click on Select system, then choose Debugger). If you use the server setup and run it against an MDriven server, then you will want to run the debugger against that MDriven server and have access to the same data. This feature made it easier to make sure that the settings are the same for for everyone. 
 
All in all, the Turnkey Live Edit is ''not'' where you start to design your whole application because it can be difficult to get started. However, it is a place where you can finetune your application and certainly work with the styling, the debugger, and with the Javascript files because it's really good to use the Chrome Debugger to to step the Javascript files to see where you're going wrong. This is a step forward in taking care of the whole process to get a finished system.
 
=== Watch the video to learn more. ===
<html>
<div class="video">
  <div class="video__wrapper">
    <iframe src="https://www.youtube.com/embed/1eLE21j69Jo?si=zZgxayaarFvQ9LHv" title="YouTube video player" frameborder="0" allowfullscreen></iframe>
  </div>
 
</html>
 
{{Edited|July|12|2024}}
[[Category:MDriven Designer]]
 
[[Category:TOC]]

Latest revision as of 14:14, 26 March 2024

I have been showing what has been growing slowly in the designing of the web UI and while the app is running. This is more of the same. We have taken it a bit further and consolidated some of the functions that I think one needs when fine-tuning the look and feel of a web application.

There are four foldup sections in the TK Live View: Live Edit, Server Setup, Assets TK Synk, and Debug Information.

The Turnkey Live Editor

We have an icon that calls the Turnkey Live Editor. This is sort of a hybrid between the ViewModel Editor, where you change the definition of the views, but this way, you can run the application. It is a combination of the run button which we had before - where you prototype and start the system in either WPF or in the local Turnkey prototyper. When the icon is pushed, you get a corresponding ViewModel connected to it because they share some of the logic.

It is basically an embedded browser, the new WebView2, Microsoft's embedded Edge browser, which is replacing the old Internet Explorer and Edge.

Live Edit

If you choose to fold down the Live Edit tab, you get the view model tree, and a few, interesting settings per ViewModel column.

When you click something in the ViewModel tree, you can see where it is positioned on the X and Y axis. You don't have to refresh - and that's the beauty of running within a harness like this, because MDriven can do the push and refresh for you to make things move smoother. You can also move things around, and since it is a running application, you can, for example, expect to find actions, create new things, and save those.

Server Setup

When you click on Server Setup, it has a similar look to that of the play button for the system prototyper. You can check if you have the current Turnkey core installed. It is optional; you can either run it towards a local XML file or use the MDriven Server which will use the settings from the cloud connection for data.

If you choose the MDriven Server, the "Settings for MDrivenServer" button will light up in blue when you hover over it. Click on it and a new window labeled CloudForm will open. This is where you can set the server you want to run against.

Or you can choose to use the XML. "Re(Start) MDriven Turnkey Core", and you may see new text that highlights in red when it discovers that there is a server running, or the settings from before don't match the file you are actually working on (you may be working on a file that's stored in the internet cache - a sample model for association). Restart the server, and once that is done, fold the Server Setup tab again, and then the popup window starts with your application in the browser.

AssetsTK Synk

This ability has been available with Assets for a long time, but they were challenging - you had to read the wiki and manually implement it. They are fully functional now and this is where they can fit seamlessly into the overall workflow.

When you turn on AssetsTK Synk, the application ensures an Assets TK folder which has the same name as your model, but with underscore AssetsTK ("_AssetsTK") because that's the trigger for it to be discovered once we upload the model to the cloud, etc. This is just basically a file tree where you can F5 it to to make sure you see everything.

To the right are buttons for common things that we put in the Assets, for example, the tkusercss. If you click on it and press on the AssetsTK folder, you would see a "content" folder which would then open a tkusercss file in Notepad (or you can associate it with a better tool like Visual Studio or Visual Studio code). It's beneficial because the tkusercss file can be made to to sync and discover changes in the Notepad file and when it syncs, it will upload it to the server and make it active for the server immediately.

Debug Information

The fourth tab under the Turnkey Live Editor button is the Debug Information. It is the same debugger that's available from pressing the play button (select XML, click on Select system, then choose Debugger). If you use the server setup and run it against an MDriven server, then you will want to run the debugger against that MDriven server and have access to the same data. This feature made it easier to make sure that the settings are the same for for everyone.

All in all, the Turnkey Live Edit is not where you start to design your whole application because it can be difficult to get started. However, it is a place where you can finetune your application and certainly work with the styling, the debugger, and with the Javascript files because it's really good to use the Chrome Debugger to to step the Javascript files to see where you're going wrong. This is a step forward in taking care of the whole process to get a finished system.

Watch the video to learn more.

This page was edited 54 days ago on 03/26/2024. What links here