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

Add plugin: Todoist Indicator #3735

Merged
merged 3 commits into from
Jul 1, 2024
Merged

Add plugin: Todoist Indicator #3735

merged 3 commits into from
Jul 1, 2024

Conversation

kapej42
Copy link
Contributor

@kapej42 kapej42 commented Jun 21, 2024

I am submitting a new Community Plugin

Repo URL

Link to my plugin: https://github.com/kapej42/obsidian-todoist-indicator

Release Checklist

  • I have tested the plugin on
    • Windows
    • macOS
    • Linux
    • Android (if applicable)
    • iOS (if applicable)
  • My GitHub release contains all required files
    • main.js
    • manifest.json
    • styles.css (optional)
  • GitHub release name matches the exact version number specified in my manifest.json (Note: Use the exact version number, don't include a prefix v)
  • The id in my manifest.json matches the id in the community-plugins.json file.
  • My README.md describes the plugin's purpose and provides clear usage instructions.
  • I have read the developer policies at https://docs.obsidian.md/Developer+policies, and have assessed my plugins's adherence to these policies.
  • I have read the tips in https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines and have self-reviewed my plugin to avoid these common pitfalls.
  • I have added a license in the LICENSE file.
  • My project respects and is compatible with the original license of any code from other plugins that I'm using.
    I have given proper attribution to these other projects in my README.md.

Copy link

Hello!

I found the following issues in your plugin submission

Errors:

❌ Plugin name mismatch, the name in this PR (Todoist indicator) is not the same as the one in your repo (Todoist Indicator). If you just changed your plugin name, remember to change it in the manifest.json in your repo and your latest GitHub release.


This check was done automatically. Do NOT open a new PR for re-validation. Instead, to trigger this check again, make a change to your PR and wait a few minutes, or close and re-open it.

@github-actions github-actions bot changed the title Update community-plugins.json Add plugin: Todoist Indicator Jun 21, 2024
@ObsidianReviewBot
Copy link
Collaborator

Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

Required

[1]:Please remove the main.js file from the repo and add it to your .gitignore. Compiled release files shouldn't get mixed with source code in your commits and should go to the releases files instead.


Do NOT open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with /skip and the reason why you think the results are incorrect.

@ObsidianReviewBot ObsidianReviewBot self-assigned this Jun 22, 2024
@ObsidianReviewBot ObsidianReviewBot added Changes requested Additional review required PR needs to be reviewed by another person, after the currently requested changes have been made Ready for review and removed Ready for review Changes requested Additional review required PR needs to be reviewed by another person, after the currently requested changes have been made labels Jun 22, 2024
@ObsidianReviewBot ObsidianReviewBot removed their assignment Jun 22, 2024
@ObsidianReviewBot
Copy link
Collaborator

Changes requested by bot have been made, assigning human for additional review.

@joethei joethei added Changes requested Minor changes requested PR can be merged after some final changes have been requested and removed Ready for review labels Jun 24, 2024
@ObsidianReviewBot ObsidianReviewBot added Ready for review Changes made and removed Changes requested Minor changes requested PR can be merged after some final changes have been requested labels Jun 27, 2024
@joethei
Copy link
Collaborator

joethei commented Jun 28, 2024

Repeating the review issues again since the line numbers changed.

The data.json file should not be part of the repo, remove it and add it to the .gitignore

function getFrontMatter(markdownString: string) {
To read the frontmatter for a note use this.app.metadataCache.getFileCache(file)?.frontmatter and remove this code.

const fileFound = files.find(file => file.path === filepath);
Avoid iterating all files to find a file by its path

function containsTag(file: any, tag: string) {
Use the following code instead:

const tags = getAllTags(app.metadataCache.getFileCache(file));
return tags.includes(tag);

class SampleModal extends Modal {
Remove this sample code.

containerEl.createEl('h2', { text: 'Todoist Indicator plugin Settings' });

Don't add a top-level heading in the settings tab, such as "General", "Settings", or the name of your plugin.

.setName('Require Project Tag?')
Use sentence case in UI

@joethei joethei added Changes requested Minor changes requested PR can be merged after some final changes have been requested and removed Ready for review Changes made labels Jun 28, 2024
kapej42 added a commit to kapej42/obsidian-todoist-indicator that referenced this pull request Jun 29, 2024
@kapej42
Copy link
Contributor Author

kapej42 commented Jun 29, 2024

Thanks for your feedback. I've taken the opportunity to use the plugin template from Obsidian as a base and at the same time implemented your suggestions, good points.

@ObsidianReviewBot ObsidianReviewBot added Ready for review Changes made and removed Changes requested Minor changes requested PR can be merged after some final changes have been requested labels Jun 30, 2024
@joethei joethei merged commit 9a5f5ec into obsidianmd:master Jul 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants