Skip to content

Update Appwrite extension - fix users + copy id + add sort order - #22890

Merged
raycastbot merged 4 commits into
raycast:mainfrom
xmok:ext/appwrite
Nov 17, 2025
Merged

raycastbot merged 4 commits into
raycast:mainfrom
xmok:ext/appwrite

Conversation

@xmok

@xmok xmok commented Nov 15, 2025

Copy link
Copy Markdown
Contributor

Description

Screencast

N/A (simple changes)

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: appwrite Issues related to the appwrite extension platform: macOS OP is author The OP of the PR is the author of the extension labels Nov 15, 2025
@raycastbot

ghost commented Nov 15, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @xmok you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

Due to our current reduced availability, the initial review may take up to 10 business days.

@greptile-apps

ghost commented Nov 15, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR adds three key improvements to the Appwrite extension:

  1. Sort Order Preference: Added a new user preference to control sort order (ascending/descending by updatedAt) that applies globally across all views (databases, collections, documents, storage, sites, deployments, users)

  2. Fixed User Crash (Issue [Appwrite] Crashes in Users screen #22788): Fixed a crash in the Users screen by adding optional chaining to user.targets[0]?.identifier to handle cases where users have no targets

  3. Copy ID Functionality: Created a reusable CopyIDAction component with proper keyboard shortcut (Cmd+C) and added it consistently across all resource views (projects, databases, collections, documents, storage, buckets, files, sites, deployments, variables, users)

Additional improvements:

  • Added "Copy Document as JSON" action for documents
  • Updated dependencies (@raycast/api to 1.103.6 and node-appwrite to 20.3.0)

The changes are well-structured with proper separation of concerns, and the bug fix correctly addresses the crash issue.

Confidence Score: 5/5

  • This PR is safe to merge after fixing the typo in the preference dropdown label
  • The changes are minimal and well-targeted: a critical bug fix with optional chaining, a reusable component following DRY principles, and a simple sorting utility. The only issue is a cosmetic typo ("DES" instead of "DESC") in the dropdown label. No logical errors or security concerns.
  • Only extensions/appwrite/package.json needs attention for the typo fix

Important Files Changed

File Analysis

Filename Score Overview
extensions/appwrite/package.json 4/5 Added sort order preference to projects command, typo in dropdown option title
extensions/appwrite/src/common/CopyIDAction.tsx 5/5 New reusable component for copying IDs with proper keyboard shortcut
extensions/appwrite/src/users.tsx 5/5 Fixed crash by adding optional chaining to user.targets[0]?.identifier, added CopyIDAction
extensions/appwrite/src/utils.ts 5/5 New utility function to sort items by $updatedAt based on user preference
extensions/appwrite/src/databases.tsx 5/5 Added sorting to databases, collections, and documents; added CopyIDAction and JSON copy for documents

ghost left a comment

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.

11 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread extensions/appwrite/package.json Resolved
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@pernielsentikaer pernielsentikaer self-assigned this Nov 15, 2025

ghost left a comment

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.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 0b61614 into raycast:main Nov 17, 2025
@github-actions

ghost commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 17, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@xmok
xmok deleted the ext/appwrite branch November 23, 2025 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: appwrite Issues related to the appwrite extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Appwrite] Crashes in Users screen

3 participants