-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datascript Explorer #67
Comments
❤️ Is this in progress now? This would be a great feature to keep around in the final version! The |
Good question @ticean. We are interested in *Edit: Another reason is that sci provides a safe sandbox for code execution. |
I'm working on something, not much code yet, but I do have an idea that might work. Current progress can be seen here: https://jelmerderonde.github.io/athens/cards.html#!/athens.devcards.db_boxes. The code I have builds on the work done earlier by @tomisme in #91. General idea:
Executing queries
Browser
Navigation
Feedback to this idea is appreciated. |
@jelmerderonde great start!
Love this idea!
Keep in mind that we get history and time travel for free with DevCards:
It would be nice to have this a developer tool outside of DevCards too. You get this with Elm, Redux DevTools, and re-frame-10x, but posh/re-posh doesn't have this unfortunately. If you haven't already, try doing datascript queries in Roam. Things to note about Roam's queries:
|
@tangjeff0 thanks!
Good point, I will enable this next time I work on it.
I will have to figure out how to do this, I will also take a look at Roam queries. |
Small update, I've managed to get some minimal browsing going. You can now click on cells that we know contains a Also, the code is a mess and in need of some cleaning up, I will do that later. |
Another update, see the latest state at: https://jelmerderonde.github.io/athens/cards.html#!/athens.devcards.db_boxes
I think I'm now at a stage where it would be helpful to have some discussion about which direction we should take this in. When is it "good enough" for developers? What questions should they be able to answer with it? How can it be further improved? I'm looking forward to hearing more ideas and opinions! |
@jelmerderonde I'm definitely finding it useful for exploring our attributes. I added this to my devcards css:
I'm sure it breaks other cards somewhere but it moves the history control bar up above the text box. |
Some ideas for where we could go:
|
@tomisme we can override CSS on each individual Devcard namespace. No worries! Agree with Can't wait to have #31 so people can begin querying their own DBs to learn datascript!! |
I've added some minor improvements in #138:
For now I think this is as far as we should go with this. It should be suitable for experimenting with datascript and exploring the database. When we have a firmer idea on how we will work with datascript and how we want to implement similar functionality in Athens we can pick this up again. Do you agree @tangjeff0 ? |
Looks great @jelmerderonde , approved and merged. Eventually, when parser is further along, we can implement exploration for [[links]]s and ((block))s. |
This shouldn't be hard to implement (I think). Let's revisit it when @roryokane deems it ready :-). |
Moving this to the "Done" column because doesn't require any immediate action |
This has mainly been superseded by #139. Closing! |
* Experiment with sci (athensresearch#67) and devcards (athensresearch#6) * fix style * move devcards ns
#132 https://athensresearch.github.io/athens/cards.html#!/athens.devcards.db_boxes
#91 https://athensresearch.github.io/athens/cards.html#!/athens.devcards.sci_boxes
Using sci, allow users to query their database in the browser. Datalog is a very powerful language and could one day be as common knowledge as SQL.
The text was updated successfully, but these errors were encountered: