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

improvement: $:/snippets/peek-stylesheets to use modern tiddlywiki features #8794

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DesignThinkerer
Copy link
Contributor

@DesignThinkerer DesignThinkerer commented Dec 2, 2024

This PR aims to modernise $:/snippets/peek-stylesheets

  • use \procedure instead of \define
  • use let instead of vars
  • use conditional shortcut syntax instead of reveal
  • use template parameters for the icons
  • use string substitution (backticks)
  • improve modularity to allow to peek at any type of tiddler

Replace reveal widget by conditional shortcut syntax, use string substitution, let widget
Copy link

github-actions bot commented Dec 2, 2024

@DesignThinkerer It appears that this is your first contribution to the project, welcome.

With apologies for the bureaucracy, please could you prepare a separate PR to the 'tiddlywiki-com' branch with your signature for the Contributor License Agreement (see contributing.md).

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for tiddlywiki-previews ready!

Name Link
🔨 Latest commit 62e1f94
🔍 Latest deploy log https://app.netlify.com/sites/tiddlywiki-previews/deploys/674e065c5ee91d0008e90e48
😎 Deploy Preview https://deploy-preview-8794--tiddlywiki-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DesignThinkerer DesignThinkerer changed the title refactor $:/snippets/peek-stylesheets to use modern tiddlywiki features improvement: $:/snippets/peek-stylesheets to use modern tiddlywiki features Dec 2, 2024
<<stylesheets-list>>
</$reveal>
<%if [<mode>match[expand]]%>
<$transclude $variable="expandable-list" filter=<<listFilter>> open="yes"/>
Copy link
Member

@pmario pmario Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "open", "closed" state value is wrong. It is expanded and restored
Have a look at the state: https://tiddlywiki.com/#%24%3A%2Fstate%2Fpeek-stylesheets%2Fmode%2F-1116772087 at tiddlywiki.com and at: https://deploy-preview-8794--tiddlywiki-previews.netlify.app/#%24%3A%2Fstate%2Fpeek-stylesheets%2Fmode%2F-1116772087

current Version v5.3.6

image

PR version

image

It is not possible to change those values for backwards compatibility reasons. There may be unwanted side effects.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, sorry for the oversight 😅 I'm marking this PR as a draft for now and will request a review after more thorough testing.

@DesignThinkerer DesignThinkerer marked this pull request as draft December 2, 2024 21:17
Copy link

github-actions bot commented Dec 5, 2024

DesignThinkerer has signed the Contributor License Agreement (see contributing.md)

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

Successfully merging this pull request may close these issues.

2 participants