-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add akiflow extension #19987
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
base: main
Are you sure you want to change the base?
Add akiflow extension #19987
Conversation
- publish - initial commit
Congratulations on your new Raycast extension! 🚀 You can expect an initial review within five business days. Once the PR is approved and merged, the extension will be available on our Store. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of the AI commands worked besides get time
) : ( | ||
<ActionPanel title="Folder Actions"> | ||
<Action | ||
title="Open Akiflow" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the same openInAkiflow quick-jump as projects/tags. Something like:
<Action
title={`Open ${project.title} in Akiflow`}
onAction={() => {
openInAkiflow(project.title);
}}
/>
<Action.OpenInBrowser
title={`Open ${project.title} in Akiflow Web`}
url={`https://web.akiflow.com/#/planner/list/${project.key}`}
/>
</ActionPanel>```
const tags = response.data; | ||
for (const tag of tags) { | ||
if (tag.deleted_at === null) { | ||
const cleanedTag = tag.title.replace(/[^\w\s]/g, '').trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this? You are removing all word characters, and the result often no longer matches what Akiflow expects (“Process | PTx” became “Process PTx”). It would be better to just leave all visible chars exactly as they are. Something like .replace(/[\u200B-\u200D\uFEFF]/g, '') // remove zero-width chars only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
icon={{ source: Icon.Flag, tintColor: { light: "#31BF75", dark: "#31BF75" } }} | ||
/> | ||
</Form.Dropdown> | ||
{Object.entries(tags).length > 0 ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be rewritten for project folders and tags and tag ids as well. Something like:
{Object.entries(tags).length > 0 && (
<Form.TagPicker id="tags_ids" title="Select Tags">
{Object.entries(tags).map(([id, title]) => (
<Form.TagPicker.Item key={id} value={id} title={title} icon={Icon.Tag} />
))}
</Form.TagPicker>
)}
{Object.entries(projects).length > 0 && (
<Form.Dropdown id="listId" title="Select Project">
<Form.Dropdown.Item key="noproject" value="" title="No Project" />
{Object.entries(projects)
.sort(([, a], [, b]) => {
// sort parents first then alphabetically
if (a.parentId === null && b.parentId !== null) return -1;
if (a.parentId !== null && b.parentId === null) return 1;
return a.title.localeCompare(b.title);
})
.map(([id, { title, icon, parentId }]) => (
<Form.Dropdown.Item
key={id}
value={id}
title={parentId ? ` ${title}` : title}
icon={icon ?? Icon.Folder}
/>
))}
```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature is completely broken for me, shows me two really old someday tasks and that is it.
<Form | ||
actions={ | ||
<ActionPanel> | ||
<Action.SubmitForm onSubmit={handleSubmit} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want this to be "Add task" instead of submit form
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broke for me when the AI tried to run it, looks like it is not requesting properly
Description
Screencast
Checklist
npm run build
and tested this distribution build in Raycastassets
folder are used by the extension itselfREADME
are placed outside of themetadata
folder