mavo.io icon indicating copy to clipboard operation
mavo.io copied to clipboard

Suggested edits to data

Open parulsingh23 opened this issue 4 years ago • 8 comments
trafficstars

Hello there! I used Mavo to suggest the following edits: I added sentences to "Function calls" to describe calling js functions Preview my changes here: https://mavo.io/docs/expressions?storage=https%3A%2F%2Fraw.githubusercontent.com%2Fparulsingh23%2Fmavo.io%2Fmaster%2Fdocs%2Fdocs.json&docs-storage=https%3A%2F%2Fgithub.com%2Fmavoweb%2Fmavo.io%2Fdocs%2Fdocs.json

parulsingh23 avatar Dec 02 '20 00:12 parulsingh23

@DmitrySharabin This is not urgent at all, but why can't I preview Parul's changes via the link above? Does it have to do with the PR plugin?

LeaVerou avatar Dec 02 '20 11:12 LeaVerou

@DmitrySharabin This is not urgent at all, but why can't I preview Parul's changes via the link above? Does it have to do with the PR plugin?

I also noticed that. Will take a look.

DmitrySharabin avatar Dec 02 '20 11:12 DmitrySharabin

Good point @LeaVerou, I updated the docs with the 'Custom Functions' section right after "Function Calls". Let me know if I should make any changes.

parulsingh23 avatar Dec 02 '20 13:12 parulsingh23

Hi there 👋🏻

@LeaVerou, I gave it a closer look and sent two PRs (to mavo and plugins). I also noticed one interesting thing: the docs app on the docs page has both the storage and the source. And because of the source, we can't see the switch to fork dialog. If I'm not mistaken, this line is exactly about that: https://github.com/mavoweb/mavo/blob/27c4c0b1b74828ac017b6eb4d528e54690776cd9/src/backend.github.js#L199.

Do we need the source in this app?

DmitrySharabin avatar Dec 03 '20 19:12 DmitrySharabin

@LeaVerou you can review this change (updated to include example of adding js function to Mavoscript: Mavoscript.Functions.increment = function(param) {return param+1}).

parulsingh23 avatar Dec 09 '20 08:12 parulsingh23

@DmitrySharabin We don't really need the source, it was just to avoid the API request when loading the data. But it looks like that check needs to change, since it's introducing bugs.

Also, I shouldn't be seeing this dialog when visiting someone else's data: image

LeaVerou avatar Dec 09 '20 12:12 LeaVerou

@DmitrySharabin We don't really need the source, it was just to avoid the API request when loading the data. But it looks like that check needs to change, since it's introducing bugs.

Also, I shouldn't be seeing this dialog when visiting someone else's data:

I'll do my best to fix it.

DmitrySharabin avatar Dec 09 '20 12:12 DmitrySharabin

@LeaVerou I updated the function to be a logical xor custom JS function, so you can look over the changes and let me know, thanks!

parulsingh23 avatar Dec 18 '20 08:12 parulsingh23