blacksmithgu / datacore

Work-in-progress successor to Dataview with a focus on UX and speed.
MIT License
1.5k stars 16 forks source link

feature: view pages #62

Closed GamerGirlandCo closed 1 month ago

GamerGirlandCo commented 3 months ago

to quote the roadmap:

Special page types which are just Datacore views and which can be put into the side bar or as regular pages.

each view page has its own state consisting of the following properties:

all of these are configurable via the view's settings page, which can be accessed via going into the three-dot menu and clicking "View configuration".

a command to create a view page has also been added to the command palette for ease of use.

as always, let me know if i should add or change anything! :)

iamrecursion commented 3 months ago

Asking this as an interested watcher: if view pages can have a typescript content type for the script, does that mean that the TS compiler is getting bundled?

cdloh commented 3 months ago

@iamrecursion sucrase is bundled in. See here - https://github.com/blacksmithgu/datacore/blob/master/src/utils/javascript.ts#L8-L23

iamrecursion commented 3 months ago

Cheers, awesome stuff!

blacksmithgu commented 1 month ago

Apparently I'm allowed to push to feature PRs which is... very interesting. I've pushed some refactors and a yarn run format to the branch; testing this locally though I'm not sure how convinced I am by it's utility compared to just viewing a regular markdown page with some code embedded in it. In particular, having a plain textarea as the code input is not very good UX experience.

I'm wondering if we should adjust this to instead just load a script from a different place (like say, a markdown file) and add the ability for it to set the current file to whatever the active workspace leaf is. That matches closer to my understanding of people's use cases for side panes.

GamerGirlandCo commented 1 month ago

closing this because i plan to delete my fork