Skip to content

Add nocal extension - #26482

Merged
raycastbot merged 7 commits into
raycast:mainfrom
brianmuse:ext/nocal-raycast-extension
Apr 2, 2026
Merged

raycastbot merged 7 commits into
raycast:mainfrom
brianmuse:ext/nocal-raycast-extension

Conversation

@brianmuse

@brianmuse brianmuse commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Important clarification: "nocal" (lowercase) is the nocal brand. It's never capitalized, and so in the name of the package "nocal" is used, despite guidelines recommending title case.

nocal is a notes, tasks, and calendar app for Windows and MacOS. This extension adds some popular nocal shortcuts right into raycast:

  • Create a quick note
  • Search notes and open them in nocal
  • RSVP to an event
  • See what events are coming up in the next few days

See more about nocal at https://nocal.app

Screencast

submission-demo.mp4

Checklist

- Implement initial version of nocal Raycast extension with features for searching notes, creating notes, managing RSVPs, and viewing upcoming meetings. Includes a new changelog, updated package.json for version 1.0.0, and various UI components for user interaction. Replaces SVG icon with PNG and adds preference management for API and authentication URLs.
- Initial Raycast extension scaffold
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Mar 20, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@brianmuse
brianmuse marked this pull request as ready for review March 20, 2026 02:59
@brianmuse brianmuse changed the title Add nocal-raycast-extension extension Add nocal extension Mar 20, 2026
@greptile-apps

greptile-apps Bot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new nocal extension providing four commands — Search Notes, Create Note, Pending RSVPs, and Upcoming Meetings — backed by a clean OAuth PKCE flow and a typed API client. The overall code quality is solid, but there are several housekeeping items to resolve before merging.

Issues found:

  • .prettierrc uses "singleQuote": true and omits "printWidth": 120, diverging from the required Raycast Prettier standard.
  • CHANGELOG.md has a hardcoded release date (2026-03-19) instead of the {PR_MERGE_DATE} placeholder, and uses a plain version number instead of the [Initial Release] bracket format.
  • src/preferences.ts manually defines an ExtensionPreferences type for getPreferenceValues, which should instead rely on the auto-generated Preferences type from raycast-env.d.ts.
  • eslint.config.js skips @raycast/eslint-config entirely in favour of raw @eslint/js + typescript-eslint, and does not use defineConfig from "eslint/config" as required by the Raycast standard.
  • src/create-note.tsx onSubmit handler has no try/catch, so API failures produce no user-visible error feedback — unlike the other three commands which all handle errors explicitly.

Confidence Score: 2/5

  • Not ready to merge — several required standards violations need to be addressed first.
  • The core functionality (OAuth, API layer, all four commands) is well-implemented, but there are multiple violations of required Raycast extension standards: non-standard Prettier config, hardcoded changelog date, manually-defined preference types, non-standard ESLint setup, and a missing error handler in the Create Note command. These must be resolved before the extension is store-ready.
  • extensions/nocal-raycast-extension/.prettierrc, extensions/nocal-raycast-extension/CHANGELOG.md, extensions/nocal-raycast-extension/eslint.config.js, extensions/nocal-raycast-extension/src/preferences.ts, and extensions/nocal-raycast-extension/src/create-note.tsx

Important Files Changed

Filename Overview
extensions/nocal-raycast-extension/.prettierrc Uses non-standard Prettier config (singleQuote: true, missing printWidth: 120) — must align with Raycast standards.
extensions/nocal-raycast-extension/CHANGELOG.md Hardcoded release date (2026-03-19) should be {PR_MERGE_DATE} and the header should use the [Initial Release] bracket format.
extensions/nocal-raycast-extension/src/preferences.ts Manually defines ExtensionPreferences type for getPreferenceValues; should rely on auto-generated Preferences from raycast-env.d.ts.
extensions/nocal-raycast-extension/eslint.config.js Bypasses @raycast/eslint-config entirely and doesn't use defineConfig from eslint/config; should follow the standard Raycast ESLint v9 pattern.
extensions/nocal-raycast-extension/src/api.ts Well-structured API layer with proper OAuth token refresh, 401/403 re-authentication, and typed responses. Uses native fetch correctly.
extensions/nocal-raycast-extension/src/oauth.ts Solid OAuth PKCE implementation using Raycast's OAuth.PKCEClient, with proper token refresh, re-auth on invalid_grant, and cancellation detection.
extensions/nocal-raycast-extension/src/create-note.tsx Simple note creation form, but onSubmit lacks a try/catch — API failures will surface no user-friendly error toast.
extensions/nocal-raycast-extension/src/needs-rsvp.tsx RSVP command with optimistic UI updates, conflict display, and recurring event support. Error recovery (restoring removed items on failure) is handled correctly.
extensions/nocal-raycast-extension/src/upcoming-meetings.tsx Upcoming meetings view with active-meeting detection, video-join shortcuts, and detail pane. Uses an IIFE render pattern inside map which is unconventional but functional.
extensions/nocal-raycast-extension/src/components.tsx Shared utilities for error display, date formatting, RSVP status helpers, and deep-link navigation — well-structured and consistent.
extensions/nocal-raycast-extension/package.json Package metadata looks correct — valid category (Productivity), public access, four well-defined view commands, and sensible preference definitions.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/nocal-raycast-extension/.prettierrc
Line: 1-5

Comment:
**Non-standard Raycast Prettier configuration**

All Raycast extensions must use `"printWidth": 120` and `"singleQuote": false`. The current config uses `"singleQuote": true` and omits `printWidth`, which diverges from the required standard.

```suggestion
{
  "printWidth": 120,
  "singleQuote": false
}
```

**Rule Used:** What: All extensions must use the standard Raycast... ([source](https://app.greptile.com/review/custom-context?memory=7be27780-7fcb-4602-9122-17c47fdd52ee))

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/nocal-raycast-extension/CHANGELOG.md
Line: 3

Comment:
**Changelog must use `{PR_MERGE_DATE}` placeholder**

The entry uses a hardcoded date (`2026-03-19`) instead of the required `{PR_MERGE_DATE}` template variable. The header should also follow the `[Initial Release]` bracket format. The merge date is automatically populated by Raycast's CI when the PR is merged.

```suggestion
## [Initial Release] - {PR_MERGE_DATE}
```

**Rule Used:** What: Changelog entries must use `{PR_MERGE_DATE}`... ([source](https://app.greptile.com/review/custom-context?memory=c2214c11-df56-490a-b1c0-09a385df481a))

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/nocal-raycast-extension/src/preferences.ts
Line: 3-9

Comment:
**Avoid manually defining preference types**

Raycast auto-generates preference types in `raycast-env.d.ts` when the extension runs. Manually defining `ExtensionPreferences` (and using it as the type parameter for `getPreferenceValues`) can become out of sync with the actual `package.json` preferences schema.

Use the auto-generated `Preferences` type instead:

```typescript
import { getPreferenceValues } from "@raycast/api";

export function getPreferences() {
  const preferences = getPreferenceValues<Preferences>();

  return {
    apiBaseUrl: preferences.apiBaseUrl.replace(/\/+$/, ""),
    authBaseUrl: preferences.authBaseUrl.replace(/\/+$/, ""),
  };
}
```

**Rule Used:** What: Don't manually define `Preferences` for `get... ([source](https://app.greptile.com/review/custom-context?memory=d93fc9fb-a45d-4479-a6a4-b1b4af98ebc8))

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/nocal-raycast-extension/eslint.config.js
Line: 1-14

Comment:
**ESLint config should use `@raycast/eslint-config` with `defineConfig` from `eslint/config`**

The current config bypasses `@raycast/eslint-config` entirely and uses raw `@eslint/js` + `typescript-eslint`. The standard pattern for Raycast extensions in ESLint v9 is to import `defineConfig` from `"eslint/config"` and spread `@raycast/eslint-config`:

```javascript
import { defineConfig } from "eslint/config";
import raycast from "@raycast/eslint-config";

export default defineConfig([...raycast]);
```

This also means `@raycast/eslint-config` should be added as a dev dependency.

**Rule Used:** What: Enforce importing `defineConfig` from `"esli... ([source](https://app.greptile.com/review/custom-context?memory=645a7150-4078-490e-a70c-d6aad94e0cf5))

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/nocal-raycast-extension/src/create-note.tsx
Line: 21-35

Comment:
**Missing error handling in `onSubmit`**

If `createNote` (or any subsequent awaited call) throws — e.g., due to a network failure or API error — no error feedback is shown to the user. The other commands (`needs-rsvp.tsx`, `upcoming-meetings.tsx`) all handle errors explicitly. Consider wrapping the body in a `try/catch` to show a failure toast:

```typescript
onSubmit={async (values: CreateNoteFormValues) => {
  try {
    const note = await createNote({
      title: values.title.trim(),
      content: values.content,
    });

    if (values.openAfterCreate) {
      await openNocalDeepLink(`note?id=${note.id}`);
    }

    await popToRoot();
    await showApiSuccess("Note Created", note.title || "Untitled");
  } catch (error) {
    await showToast({
      style: Toast.Style.Failure,
      title: "Could not create note",
      message: getErrorMessage(error),
    });
  }
}}
```

How can I resolve this? If you propose a fix, please make it concise.

Last reviewed commit: "Add nocal-raycast-ex..."

Comment thread extensions/nocal/.prettierrc Resolved
@@ -0,0 +1,10 @@
# nocal Changelog

## 1.0.0 - 2026-03-19

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Changelog must use {PR_MERGE_DATE} placeholder

The entry uses a hardcoded date (2026-03-19) instead of the required {PR_MERGE_DATE} template variable. The header should also follow the [Initial Release] bracket format. The merge date is automatically populated by Raycast's CI when the PR is merged.

Suggested change
## 1.0.0 - 2026-03-19
## [Initial Release] - {PR_MERGE_DATE}

Rule Used: What: Changelog entries must use {PR_MERGE_DATE}... (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/nocal-raycast-extension/CHANGELOG.md
Line: 3

Comment:
**Changelog must use `{PR_MERGE_DATE}` placeholder**

The entry uses a hardcoded date (`2026-03-19`) instead of the required `{PR_MERGE_DATE}` template variable. The header should also follow the `[Initial Release]` bracket format. The merge date is automatically populated by Raycast's CI when the PR is merged.

```suggestion
## [Initial Release] - {PR_MERGE_DATE}
```

**Rule Used:** What: Changelog entries must use `{PR_MERGE_DATE}`... ([source](https://app.greptile.com/review/custom-context?memory=c2214c11-df56-490a-b1c0-09a385df481a))

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +3 to +9
type ExtensionPreferences = {
apiBaseUrl: string
authBaseUrl: string
}

export function getPreferences() {
const preferences = getPreferenceValues<ExtensionPreferences>()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Avoid manually defining preference types

Raycast auto-generates preference types in raycast-env.d.ts when the extension runs. Manually defining ExtensionPreferences (and using it as the type parameter for getPreferenceValues) can become out of sync with the actual package.json preferences schema.

Use the auto-generated Preferences type instead:

import { getPreferenceValues } from "@raycast/api";

export function getPreferences() {
  const preferences = getPreferenceValues<Preferences>();

  return {
    apiBaseUrl: preferences.apiBaseUrl.replace(/\/+$/, ""),
    authBaseUrl: preferences.authBaseUrl.replace(/\/+$/, ""),
  };
}

Rule Used: What: Don't manually define Preferences for `get... (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/nocal-raycast-extension/src/preferences.ts
Line: 3-9

Comment:
**Avoid manually defining preference types**

Raycast auto-generates preference types in `raycast-env.d.ts` when the extension runs. Manually defining `ExtensionPreferences` (and using it as the type parameter for `getPreferenceValues`) can become out of sync with the actual `package.json` preferences schema.

Use the auto-generated `Preferences` type instead:

```typescript
import { getPreferenceValues } from "@raycast/api";

export function getPreferences() {
  const preferences = getPreferenceValues<Preferences>();

  return {
    apiBaseUrl: preferences.apiBaseUrl.replace(/\/+$/, ""),
    authBaseUrl: preferences.authBaseUrl.replace(/\/+$/, ""),
  };
}
```

**Rule Used:** What: Don't manually define `Preferences` for `get... ([source](https://app.greptile.com/review/custom-context?memory=d93fc9fb-a45d-4479-a6a4-b1b4af98ebc8))

How can I resolve this? If you propose a fix, please make it concise.

Comment thread extensions/nocal/src/create-note.tsx Resolved
Brian Muse added 2 commits March 19, 2026 23:44
- Update ESLint configuration to CommonJS format and upgrade @raycast/eslint-config to version 2.1.1 in package.json and package-lock.json. This change enhances compatibility with the current Node.js environment.
- Refactor nocal Raycast extension configuration and code structure. Updated .prettierrc for formatting, modified ESLint configuration to use @raycast/eslint-config, and adjusted package.json and package-lock.json for versioning and dependencies. Enhanced API and component files for improved readability and consistency.
@brianmuse

Copy link
Copy Markdown
Contributor Author

Hey all, just hoping to bump this for review if possible. We have some eager users!

@0xdhrv 0xdhrv self-assigned this Apr 2, 2026
0xdhrv and others added 3 commits April 2, 2026 11:06
- Added Raycast-specific ignores to .gitignore for better management.
- Updated package.json to improve title casing and added new scripts for linting and publishing.
- Refined date formatting in components for consistency and clarity.
- Improved search functionality with request cancellation to prevent outdated results.
- Standardized action titles to "Open in Nocal" for better user experience.
- Refactored item removal logic to use a single variable for removed items.
- Improved readability by eliminating redundant code.
- Ensured consistent state updates for RSVP handling.

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit 768930b into raycast:main Apr 2, 2026
2 checks passed
@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@brianmuse).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

ariesly15 pushed a commit to ariesly15/raycast-extensions that referenced this pull request Apr 2, 2026
- refactor: 简化 Action.CopyToClipboard 组件调用 (url-parse.tsx)
- chore: 移除 delink 扩展中的图标配置项
- chore: 删除图标文件并更新配置引用新图标
- Merge branch \'raycast:main\' into main
- Update CODEOWNERs (768930b)
- Add nocal extension (raycast#26482)
- Update CODEOWNERs (7c0e492)
- Add caaals extension (raycast#26443)
@brianmuse
brianmuse deleted the ext/nocal-raycast-extension branch April 6, 2026 17:12
ariesly15 pushed a commit to ariesly15/raycast-extensions that referenced this pull request Apr 10, 2026
- feat[extensions/qq-mail]: 添加QQ邮箱扩展及配置文件
- Merge branch \'raycast:main\' into main
- Update CODEOWNERs (9944a1b)
- [XKCD Comics] Add viewing history (raycast#26704)
- refactor: 增加useCallback并更新tsconfig配置
- Update CODEOWNERs (9b7c8a4)
- Add Kafka UI extension (raycast#26259)
- Merge branch \'raycast:main\' into main
- refactor: 简化 Action.CopyToClipboard 组件调用 (url-parse.tsx)
- chore: 移除 delink 扩展中的图标配置项
- chore: 删除图标文件并更新配置引用新图标
- Update CODEOWNERs (756e9da)
- Update ascii-art-wallpaper extension (raycast#26707)
- Update CODEOWNERs (23ee8a8)
- Add paper-agent extension (raycast#26367)
- Merge branch \'raycast:main\' into main
- chore: 更新 delink 扩展变更日志并移除旧版本记录
- Update CODEOWNERs (768930b)
- Add nocal extension (raycast#26482)
- Update CODEOWNERs (7c0e492)
- Add caaals extension (raycast#26443)
- Merge branch \'raycast:main\' into main
- docs: 更新 delink 扩展文档及快捷键说明
- Update CODEOWNERs (41a12f0)
- Update mirror-displays extension (raycast#26445)
- chore: 更新 delink 扩展的版本信息为初始发布版
- docs: 调整 delink 扩展快捷键说明顺序
- Merge branch \'raycast:main\' into main
- feat:up
- Update CODEOWNERs (2134dff)
- Update hetzner extension (raycast#26705)
- Update CODEOWNERs (840e5a9)
- Add ram-prices extension (raycast#26564)
- Update CODEOWNERs (45fad15)
- Add habitica-todos extension (raycast#26446)
- Update CODEOWNERs (3e686e1)
- Add Bundles extension (raycast#25680)
- Update CODEOWNERs (f6261fd)
- Update tmux-cheatsheet extension (raycast#26379)
- Changelog Alignment (raycast#26824)
- Update prism-launcher extension (raycast#26816)
- Merge branch \'raycast:main\' into main
- feat: add metadata folder and language setting
- Update picgo extension (raycast#26818)
- Update CODEOWNERs (bd7023d)
- Add clockodo extension (raycast#26432)
- feat: add raycast extension delink
- Update CODEOWNERs (868aef4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants