Commit Graph

313 Commits

Author SHA1 Message Date
Kirill Shumilov
299d19f679 feat(xod-client, xod-project): show deprecation reason in the helpbox & help panel 2018-03-21 12:37:20 +03:00
Kirill Shumilov
279d2455f2 feat(xod-project): add deprecated marker into built-in patches and add isDeprecatedPatch function 2018-03-20 16:18:32 +03:00
Evgeny Kochetkov
5706f87746 tweak(xod-project): add start of the string to regxeps checking paths of constant-*, variadic-* and internal terminals 2018-03-20 15:56:50 +03:00
Evgeny Kochetkov
f9cfce6c33 feat(xod-project, stdlib, workspace): use xod/core/cast(*,*) instead of xod/core/cast-*-to-* 2018-03-20 15:50:38 +03:00
Evgeny Kochetkov
4cc39d51d4 feat(xod-project): recognize xod/core/defer(*) nodes as defer nodes 2018-03-20 15:50:37 +03:00
Evgeny Kochetkov
6afe369dda tweak(xod-project): make canCastTypes always pass strict type check 2018-03-20 13:41:06 +03:00
Evgeny Kochetkov
b11d259dc6 tweak(xod-project): add PatchBaseName type 2018-03-20 13:41:06 +03:00
Kirill Shumilov
2ffeec0f40 feat(xod-client): draw links with incompatible pin types as broken and show tooltips with error message for any broken link 2018-03-19 13:36:57 +03:00
Kirill Shumilov
7787a4e8a6 feat(xod-project): validate links for compatibility of pin types and show error on transpile. Tweak errors in xod-project to show it with title in the IDE. Show "Dead reference error" only in actual errors. 2018-03-19 13:36:57 +03:00
Evgeny Kochetkov
0ef2e2f1a0 feat(xod-project, xod-client): allow to create abstract nodes 2018-03-16 15:41:38 +03:00
Kirill Shumilov
683bb050d2 feat(xod-client): allow to create and rename patches using new rules (with types) 2018-03-15 11:54:14 +03:00
Kirill Shumilov
6aa2cfc86f feat(xod-project): allow to specify types in the patch path (E.G. @/some-patch(string,number)) and fix not working validation of patch paths 2018-03-15 11:54:14 +03:00
Kirill Shumilov
ac4a6ead30 tweak(xod-client): allow to relink occupied pins 2018-03-13 17:04:34 +03:00
Evgeny Kochetkov
f433438233 fix(xod-project): check for dead links more strictly
Closes #1105
2018-03-12 14:57:41 +03:00
Evgeny Kochetkov
e6ab08e297 chore(infra): format code with prettier
Just `yarn lint  --fix`
2018-03-05 17:59:03 +03:00
Kirill Shumilov
fca389eccc feat(xod-client): make possible to change Node arityLevel within GUI 2018-03-01 12:01:25 +03:00
Evgeny Kochetkov
f82d813240 fix(xod-project): fix links orientation when expanding variadic patches 2018-02-28 13:05:56 +03:00
Evgeny Kochetkov
cf96d942f2 fix(xod-project): start indexing additional terminals from 1 when expanding variadic patches 2018-02-28 13:05:56 +03:00
Kirill Shumilov
2decb1c6e0 fix(xod-project): fix rendering of one superfluous variadic group (arityLevel === 2 means that there is only one additional pin) 2018-02-27 18:53:35 +03:00
Kirill Shumilov
51fddba3e6 feat(xod-client): mark latest variadic Pins with "dots" and improve drawing of the Links in moving mode to prevent ugly overlapping of link enging over "dots" symbol 2018-02-27 17:54:35 +03:00
Kirill Shumilov
e6f50bcf87 feat(xod-project, xod-client): compute and render variadic pins for Nodes with arityLevel > 1 and allow to link them 2018-02-27 17:54:35 +03:00
Evgeny Kochetkov
775498a9f2 feat(xod-project): expand variadic nodes
Closes #1065
2018-02-26 20:13:05 +03:00
Kirill Shumilov
77ea7c2ce8 feat(xod-client, xod-project): show custom tooltips with errors for Nodes, add validation of variadics into validatePatchContent (ProjectBrowser will mark Patch as broken if it has variadic errors or dead ref errors) 2018-02-21 16:08:18 +03:00
Kirill Shumilov
4e510b7957 feat(xod-project): add basic features for variadics: new types, getters/setters, path utils, built-in patches, function that computes variadic Pins and validates variadic Patch 2018-02-20 15:38:17 +03:00
Kirill Shumilov
21b726460f feat, refactor(xod-project, xod-fs, xod-client, xod-client-electron, xod-client-browser): unify save/load UX 2018-01-30 19:28:26 +03:00
Victor Nakoryakov
272c82ae04 optimize(xod-arduino): perform loop unroll
Now the generated code *is* the main loop expanded.
2018-01-18 15:35:00 +03:00
Evgeny Kochetkov
399a6a48b2 fix(xod-project): forbid using non-native patches as entry points 2018-01-18 14:03:28 +03:00
Kirill Shumilov
6d37728937 chore(xod): update hm-def and sanctuary-def, fix some wrong function definitions that brokes runtime 2018-01-16 11:46:02 +03:00
Kirill Shumilov
d2027e79b3 chore(xod): update Webpack to v3 (bundle reduced x2), update Ramda versions, prepare it for further updates
Squashed commits:
[af77987] refactor(xod-client, xod-client-browser, xod-client-electron): move common webpack config into xod-client, and extend it with specific options in other endpoint clients (browser/electron)
[ddae62d] chore(xod): update `hm-def` to latest `0.2.1` version (that uses the same Ramda version)
[5d80680] chore(xod): prepare all Ramda imports and some functions to migrate to 0.25.1 to be optimized better by tree-shaker (0.25.0 already has a features for better tree shaking, but it has a lot of bugs and perfomance regressions, so we’ll stay at 0.24.1 for a while)
[9c05d6c] chore(xod-client-browser, xod-client-electron): enable UglifyJS webpack plugin to eliminate dead code and minify bundle (7.8MB -> 3.8MB)
[cafbfcf] chore(xod, xod-client-browser, xod-client-electron): update webpack to version 3, update loaders,
2017-12-29 13:31:32 +03:00
Evgeny Kochetkov
02d8f86cdd tweak(xod-project): change version validation regexp to match server-side validation rules 2017-11-30 19:54:13 +03:00
Kirill Shumilov
163ca993ba feat(xod-pm, xod-fs, xod-cli, xod-project): implement and integrate functions that (a) fetches libraries with dependencies and (b) saves it to the file system 2017-11-24 14:05:54 +03:00
Kirill Shumilov
24a416118c feat(xod-project): add functions that returns lists of installed library names, of used libraries (somewhere in patches) and missed library names (based on previvous two functions), add PatchPathUtil function getOwnerName 2017-11-24 14:05:54 +03:00
Kirill Shumilov
aeb8a97a3b feat(xod-fs): implement dff functions that find changed patches and find a kind of changes and saveAll function that saves all project using diff function to detect what to save, what to skip 2017-11-22 12:08:47 +03:00
Kirill Shumilov
ab299eac82 tweak(xod-project): make listPatchWithoutBuiltIns more robust (and slower), add convertToLocalPath function that converts any PathPath into local PatchPath 2017-11-22 12:08:47 +03:00
Evgeny Kochetkov
d9e787a07a fix(xod-project): don’t propagate bound values to occupied outputs 2017-11-21 19:25:09 +03:00
Victor Nakoryakov
4a9bfd3d74 tweak(xod-project): change automatic pin naming scheme
IN_0 → IN1
IN_1 → IN2
OUT_7 → OUT8
2017-11-17 11:42:23 +03:00
Evgeny Kochetkov
65030ac698 refactor(xod-project, xod-fs, xod-arduino): single target platform, single implementation file
- `xod-project`

  - no notion of different impl types
  - because there is only one kind of implementation left, no need to store them in `impls`, it can be extracted straight from attachments

  - API changes:
    - removed:
      - `listImpls`
      - `hasImpls`
      - `getImplByArray`

    - added:
      - `hasImpl :: Patch -> Boolean`
      - `setImpl :: Source -> Patch -> Patch`

    - changed signatures:
      - `getImpl` is now `Patch -> Maybe Source`
      - `hasImpl` is now `Patch -> Boolean`
      - `flatten` is now `Project -> PatchPath -> Either Error Project`

- `xod-fs`
  - does not know about implementation files — they all are just attachments

+ minor changes in other backages
2017-11-15 13:16:21 +03:00
Kirill Shumilov
e9b2eb15a1 feat(xod-client, xod-client-browser, xod-client-electron, xod-fs): add feature to install libraries from cloud in the IDE, integrate in both clients, add saving on FS for desktop client 2017-11-15 10:49:10 +03:00
Kirill Shumilov
28e1b2761b refactor(xod-project): move some functions into proper places, extract on function from composition into separate function (resolveNodeTypesInPatch) 2017-11-15 10:49:09 +03:00
Kirill Shumilov
3a8596b51a refactor, test(xod-func-tools): move functions into separate modules, cover almost all functions (complex or derivative), move tests into separate specs, add foldMaybe 2017-11-15 10:49:09 +03:00
Evgeny Kochetkov
df70f0a5b5 fix(xod-project): fix values bound to inputs leaking to outputs in some cases
Closes #828
2017-10-26 14:08:26 +03:00
Kirill Shumilov
73a0f4f3a8 feat(xod-project, xod-client): add feature that broken project could be opened, but broken patches, nodes and links will be marked as dead (special look and etc)
Squashed commits:
[4609d47] fix(xod-client): fix React warning about empty children property (in UnknownPinWidget)
[62345a3] refactor(xod-project): add accosPatch and assocPatchList unsafe versions for surviving
[fe779e9] test(xod-project): add test cases for project surviving
[b731d1d] refactor(xod-project): rename `getPinsForPatch` to `getPinsForNode`, cause really we're getting pins for passed Node
[5485746] tweak(xod-client, xod-client-electron): show proper message for transpiling patch with broken content
[e589088] feat(xod-client): mark patches with broken content in the Project Browser with special icon
[9e7cfa5] feat(xod-client, xod-project): add creating missed pins into patches and mark links, that connected with unexistent pins, as broken
[b9d13cd] feat(xod-client): make Inspector works properly when selecting broken nodes
[29063a0] feat(xod-client): add broken style for links, that connected with broken nodes
[0b8e5ef] feat(xod-client, xod-project): make first step in project surviving: nodes that uses type of unexistent patch could be rendered with pins, that have links, with a special look
2017-10-18 15:55:05 +03:00
Evgeny Kochetkov
ff9d3c88a2 feat(xod-client, xod-arduino): implement defer-* nodes to allow feedback loops
Closes #733
2017-10-11 16:16:53 +03:00
Kirill Shumilov
44577c03a4 feat(xod-arduino-deploy, xod-deploy, xod-client, xod-client-electron): add interactive debug session with watch nodes, optimized log and etc (+31 squashed commits)
Squashed commits:
[ca50efb] refactor(xod-client, xod-arduino-deploy, xod-client-electron): handle lost connection (unplug device), make some small fixes
[8c9fbce] tweak(xod-client-electron): add retries to find device after upload (3 times with 300ms delay)
[8c77fce] fix(xod-client-electron): fix adding an error message into debugger log
[c0668c1] refactor(xod-client, xod-client-electron): add throttling to send data readed from serial port and updating log by list of messages instead of appending each message
[9528c6e] refactor(xod-arduino, xod-client, xod-client-electron): make fixes in accordance with comments to PR
[117996b] refactor(xod-client): simplified selecting renderer by message type in the Log container
[512b74f] refactor(xod-arduino): revert XOD_TRACE functions to use only for debug runtime, watch-node uses DEBUG_SERIAL, updated fixtures and etc
[7b92c98] chore(xod-client): remove dispatching no longer existing action (setMode)
[cb38db1] refactor(xod-arduino): split transpiling into two functions: transformProject and transpile, add function to get nodeIdsMap from transformed project, use last one instead of pushing it through a long pipes of calls
[01c3f2e] tweak(xod-client): show xod message delimiter in the log
[360f216] chore(xod-client): change caption of button "Stop debug session" -> "Stop debug"
[531c280] style(xod-client): change colors of watch nodes, remove ellipsis from watch node values, change color of error and success message borders
[bb3c5df] fix(xod-client): fix panning mode to show nodeValues in debug session interactively
[7fac400] tweak(xod-client): sync offsets of patches between tabs (if user pans debug tab -> patch tab panned too, and vice versa)
[086d863] tweak(xod-client): stop debug session when debugger tab was closed
[eccc14a] tweak(xod-client): pass offsets between patchTab and debuggerTab, reopen original patch on debugger tab close
[83c3090] test(xod-client-electron): fix functional test and remove fixture (take it from workspace)
[f87fb2d] tweak(xod-client): tweak closing tab to prevent switching to another tab if closed another one
[c17cc0f] refactor(xod-client): remove editor modes from redux store, make modes depends on tab type
[92ce1df] refactor(xod-client): add tab types, add debug tab type and styles, handle opening and closing this tab on debug start/stop
[09af9af] refactor(xod-client): refactored tabs to contain an unique id and patchPath, instead of storing two entities in one property
[31991f7] refactor(xod-client): optimize rendering logs, add Debugger into storybook, fix one possible bug in the reducer
[7355928] refactor(xod-client): move log of Debugger into a separate container
[30d36c5] refactor(xod-client): optimize debugger selectors
[9615450] feat(xod-client): pass values of watch nodes into view
[34b40d0] refactor(xod-client): move rendering of node bodies and some parts into small components, add WidgetNodeBody component
[18f4e75] feat(xod-client): add new editor mode: debugging
[6c6d9bd] feat(xod-arduino, xod-client): store map of nodeIds to topologically sorted index of nodes in the redux state
[492caea] feat(xod-arduino, xod-project): remove debug nodes on transpilation without debug mode, update fixtures and tests
[63a8083] refactor(xod-arduino, xod-clients): update debug flags in runtime, allow to switch flags in the transpiler (using options object) and integrate it into clients
[01cfd83] feat(xod-arduino, workspace): implement watch node and change debug flags in the runtime and configuration template
2017-10-03 14:26:28 +03:00
Evgeny Kochetkov
9db453a6a1 tweak(xod-project): add getLinkByIdUnsafe function 2017-10-02 00:29:08 +03:00
Kirill Shumilov
cc8f45e412 feat(xod-client, xod-patch-search): add xod-patch-search package that searches for nodes, add Suggester component and integrate it in all clients (+21 squashed commits)
Squashed commits:
[195011e] chore(xod): update yarn.lock
[3bedd7d] feat(xod-client): separate highlighted and hovered styles in Suggester
[d8cfe14] refactor(xod-client): use edited fork of `react-autosuggester` and remove some kludges
[ed5bc42] fix(xod-client): fix bug with new node position when adding it using suggester without double click on the patch
[4490a60] fix(xod-client): highlight first element of autosuggester
[3b99f5c] chore(xod): bump `xod-patch-search` version to 0.12.1
[9282fd3] chore(xod-client): add some comments to SuggesterContainer.jsx
[d95b08a] test(xod-patch-search): make tests more resilient to changes
[b11c8af] refactor(xod-client): use util `isInput` instead of some code duplication
[3cb6411] fix(xod-client): fix styles for `Suggester-container-blocker`
[40f46bc] refactor(xod-client): move `Suggester-container-blocker` styles into scss, add cursor style for whole container
[175a79a] chore(xod): add `xod-patch-search/node_modules` into travis.yml caches
[b07588a] refactor(xod-client-browser, xod-client-electron): move menu item `Insert Node` over `Insert Comment`
[f62a696] tweak(xod-client): add some kludges to Suggester to improve UX
[47c30e0] fix,refactor(xod-client): fix some bugs with hotkey, rename selector, move SuggesterContainer into separate component
[4c9240a] tweak(xod-patch-search): filter results inside search function and tweak it
[a6e5d59] tweak(xod-patch-search): tweak search by adding custom `refineScore` function
[9169061] refactor(xod-patch-search): tuned weights, removed fixture and use xod-fs and workspace instead
[161f80e] feat(xod-client): added feature to place a new node by double click on patch background
[afae421] feat(xod-client): added Suggester component, integrate it in all clients
[ae1c397] feat(xod-patch-search): implement and configure search index and function that converts patches into index data in the new package
2017-08-31 13:56:54 +03:00
Victor Nakoryakov
981902fff6 optimize(xod-arduino): toposort nodes in-place 2017-08-30 01:00:52 +03:00
Victor Nakoryakov
b4076e2eec refactor(xod-project): make code DRY
- use createPin for getTerminalPins of builtInPatches
- use createNode for createCasetNode in flatten

refactor(xod-project): DRY createCasetNode in flatten
2017-08-16 13:30:52 +03:00
Victor Nakoryakov
0ad266c1ed optimize(xod-project): inject @@type hints into entities to speed up type checks
Closes #716
2017-08-16 13:27:47 +03:00
Evgeny Kochetkov
a4d1a439f9 fix(xod-project): fix bound value propagation to deeply nested patches
Closes #695
2017-08-08 18:25:47 +03:00