typerefinery-ai / typerefinery

Testing: https://dashboard.cypress.io/projects/8v1kna/runs
https://innovolve-ai.github.io/typerefinery/report.html
Apache License 2.0
2 stars 2 forks source link

Add new feature to allow editing API Algorithm script in Jyputer. #547

Open wildone opened 1 year ago

wildone commented 1 year ago

We need to to make creating the Python code easier.

Lets create a feature that would allow editing/developing API Algorithm code in Jyputer.

When you add API Algorithm you will have a button called "Edit" when you click it:

[1] - API Algorithm - https://github.com/typerefinery-ai/flowcomponents/blob/main/components/api-algorithm.html [2] - reference for making a dialog that can wait for continue in Flow UI.

FUNC.readme = function(title, md) {

    var winid = 'readme' + HASH(md);
    common.readmewindow = md;

    if (common.windows.findItem('id', winid)) {
        SETTER('windows/focus', winid);
    } else {
        PUSH('common.windows', { id: winid, cache: 'readme', html: '<ui-import config="url:@{#}/forms/readme.html"></ui-import>', title: title, actions: { move: true, autosave: true, close: true, maximize: false, minimize: false }, offset: { x: ((WW / 2) - 275) >> 0, y: ((WH / 2) - 250) >> 0, width: 550, height: 500, minwidth: 200, minheight: 300, maxwidth: 800, maxheight: 1200 }, make: function(el) {
            el.closest('.ui-windows-item').css('z-index', 50);
        }});
    }

};