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

fix: render Tasks in canvas #1733

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

ilandikov
Copy link
Collaborator

@ilandikov ilandikov commented Mar 7, 2023

Description

Motivation and Context

If Tasks query is written in a card in Canvas it is not rendered.

Inspired by same PR in dataview plugin: blacksmithgu/obsidian-dataview#1661

Solves #1732

How has this been tested?

Tested on my live vault - created a card with

```tasks
not done
```

Tasks 1.25.0 is not rendering anything. With this fix - a list of tasks appears.

Unfortunately I can't imagine how to unit test this.

Screenshots (if appropriate)

Types of changes

Changes visible to users:

  • Bug fix (prefix: fix - non-breaking change which fixes an issue)
  • New feature (prefix: feat - non-breaking change which adds functionality)
  • Breaking change (prefix: feat!! or fix!! - fix or feature that would cause existing functionality to not work as expected)
  • Documentation (prefix: docs - improvements to any documentation content)
  • Sample vault (prefix: vault - improvements to the Tasks-Demo sample vault)

Internal changes:

  • Refactor (prefix: refactor - non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)
  • Tests (prefix: test - additions and improvements to unit tests and the smoke tests)
  • Infrastructure (prefix: chore - examples include GitHub Actions, issue templates)

Checklist

Terms

@claremacrae claremacrae added the scope: rendering of tasks How the plugin displays tasks (except CSS issues) label Mar 7, 2023
@claremacrae claremacrae self-assigned this Mar 7, 2023
@claremacrae
Copy link
Collaborator

Assigned to me for review.

Copy link
Collaborator

@claremacrae claremacrae left a comment

Choose a reason for hiding this comment

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

I tested it and it works great. Thanks so much for doing this!

@claremacrae claremacrae merged commit d7593a2 into obsidian-tasks-group:main Mar 7, 2023
claremacrae added a commit that referenced this pull request Mar 26, 2023
This reverts commit d7593a2.

Fixes #1800, but reopens #1732
claremacrae added a commit that referenced this pull request Mar 26, 2023
* Revert "fix: render in canvas (#1733)"

This reverts commit d7593a2.

Fixes #1800, but reopens #1732

* docs: Document limitations with Canvas cards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: rendering of tasks How the plugin displays tasks (except CSS issues)
Projects
Status: 🎉 Released
Development

Successfully merging this pull request may close these issues.

2 participants