Skip to content
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

[IDEA] Improve cascade dev experience #8489

Open
linonetwo opened this issue Aug 6, 2024 · 4 comments
Open

[IDEA] Improve cascade dev experience #8489

linonetwo opened this issue Aug 6, 2024 · 4 comments

Comments

@linonetwo
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I don't know why my view body cascade isn't working.

图片

Describe the solution you'd like

Add a tab in the info, to show the corrently working cascades.

Describe alternatives you've considered

A dev tool like css in browser dev tool, to show the full cascade list on current tiddler.

Additional context

I'm trying to add a loading indicator for lazy tiddlers, so I know they are not empty, just not loaded.

@linonetwo
Copy link
Contributor Author

I find

tags: $:/tags/ViewTemplateBodyFilter
list-before: $:/config/ViewTemplateBodyFilters/default

will cause your cascade not working.

And only this works. Don't know why, hard to debug.

tags: $:/tags/ViewTemplateBodyFilter
list-before: $:/config/ViewTemplateBodyFilters/hide-body

tiddly-gittly/itonnote-plugin@fe10d9b

@Jermolene
Copy link
Member

Hi @linonetwo as it happens, I don't think a cascade is necessary in order to make a loading indicator. Skinny tiddlers have a blank text field, so it is not necessary to suppress the usual display of the body of the tiddler. Instead, one can use a view template segment tagged $:/tags/ViewTemplate positioned above the body.

@linonetwo
Copy link
Contributor Author

That's true, I will use $:/tags/ViewTemplate instead in that case.

But cascade is still hard to debug. May need a UI to show each filter's output.

@Jermolene
Copy link
Member

But cascade is still hard to debug. May need a UI to show each filter's output.

Yes I do like the idea, and would welcome a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants