Code Monkey home page Code Monkey logo

Comments (5)

JoelProminic avatar JoelProminic commented on June 1, 2024

Some other designs that we discussed, for reference.

I originally was thinking of this design:

  1. Right-Click > New Shared Column
  2. Moonshine opens New Shared Column prompt. User fills this out
  3. The Shared Column is created, and is automatically appended to the open view. The Shared Column editor opens
  4. User can edit the shared column as desired.

This could be a convenient feature, but converting an existing column is more flexible.

@feather812002 originally implemented this design:

  1. User creates a column and edits it as desired
  2. Right-Click > Create a new shared column from selected column
  3. The new shared column is created using the Header Text as the file and name. If the name already exists, show an error.
  4. The column still shows up as a normal column in the original view
  5. Remove the current column
  6. Add the shared column, and move it to the expected solution

Step 3 saves a click for the simplest case, but it also blocks some cases, which would take more clicks to work around. There may be some cases where the user doesn't want to automatically replace the column in step 4, but the user can do the same thing by closing the view without saving in the proposed process.

from moonshine-ide.

feather812002 avatar feather812002 commented on June 1, 2024

@JoelProminic
I already done this on the selected column , but it not work to the right click column until now .
because for now we selected column hight light it and all code logic work around the selected column ,
if you want the mouse over and right click target column as the work column , it need more refactory the logic at now
at least it need detect and calculation the current right click column when you right-click mouse on some column.

and about the 4 step, the auto updated in-memory and flagged as edited,but please don't click the "Code" tab in the visual editor, because when you click the "Code", the logic will save the update memory column object into local file.
So, if you not save and not click the "Code" tab, the local file will not update for new shared column convert progerss.

from moonshine-ide.

feather812002 avatar feather812002 commented on June 1, 2024

I am starting work around the right-click column as the create new shared column target at now .
and I already commit my previously update.

from moonshine-ide.

JoelProminic avatar JoelProminic commented on June 1, 2024

I created a new issue, #1220 to add a proper warning for duplicate file names.

In addition, I found that the Create button was disabled on in the button initially, even if the name was not a duplicate. I could fix this by making a change an then reverting to the original name.
image

For the Code tab, @feather812002 confirmed that for Forms, the Code tab is generated in-memory rather than updating the .form or intermediate XML file. I would like views to work the same way. The Code tab should not work as a save button.

from moonshine-ide.

JoelProminic avatar JoelProminic commented on June 1, 2024

This looks good in my tests:

Case Shared Column Created View Updated
Simple Column Confirmed Confirmed
Duplicate Confirmed (after different name is selected) Confirmed
Nested column Confirmed Confirmed

Note that there is a major issue with saving the subforms reported here

from moonshine-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.