Skip to content

Update Purelymail extension#8971

Merged
raycastbot merged 6 commits intoraycast:mainfrom
xmok:ext/purelymail
Oct 30, 2023
Merged

Update Purelymail extension#8971
raycastbot merged 6 commits intoraycast:mainfrom
xmok:ext/purelymail

Conversation

@xmok
Copy link
Contributor

@xmok xmok commented Oct 25, 2023

Description

[Added Billing and App Password Endpoints]

Enhancements

  • Added Toasts to show Processing, Success and Error states
  • Changed DeleteUser from view to no-view

New Endpoints

  • Check Account Credit
  • Create App Password
  • Delete App Password

Screencast

purelymail-screencast-1.mp4
purelymail-check-account-credit

Checklist

Note to reviewers

Purelymail was the first extension I added so some of the code is inefficient which I hope to address in future versions.

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: xmok/purelymail Issues related to the xmok/purelymail extension OP is author The OP of the PR is the author of the extension labels Oct 25, 2023
Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

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

Hi 👋

Thanks for your contribution 💪

I have now tested your extension, and I have some feedback ready for you

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

if (response.type === "error") {
await showFailureToast(response.message, { title: response.code });
} else {
await showToast(Toast.Style.Success, "SUCCESS", `Credit: ${response.result.credit}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would use updateCommandMetadata instead, and maybe add an interval to the call so it updates, for example, every hour.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

purelymail-check-account-credit.mp4

Hi 👋 .

This is a great suggestion! I have implemented as shown in attached video.

Best 👍🏽 .

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think it makes sense to round the number, there is a lot of decimals going on there 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a reasonable suggestion which I've implemented and also updated the metadata screenshot accordingly;

purelymail-5-check-account-credit

@pernielsentikaer pernielsentikaer self-assigned this Oct 26, 2023
@raycastbot raycastbot added the extension: purelymail Issues related to the purelymail extension label Oct 26, 2023
@mathieudutour mathieudutour removed the extension: xmok/purelymail Issues related to the xmok/purelymail extension label Oct 26, 2023
@xmok xmok requested a review from pernielsentikaer October 26, 2023 12:28
} else {
const { credit } = response.result;
const roundedCredit = parseFloat(credit as string).toFixed(2);
await Clipboard.copy(roundedCredit);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it make sense to copy to the clipboard? I would maybe not do that since that's unexpected behavior. 😊

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can follow that logic.
Updated so that:

  1. Credit is shown as formatted currency since that is how it is shown in Purelymail Billing AND
  2. No longer copied to Clipboard.

@raycastbot
Copy link
Collaborator

Thank you for your contribution! 🎉

🔔 @xmok you might want to have a look.

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

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

Hi 👋

Looks good to me, approved 🔥

@raycastbot raycastbot merged commit ddb7a6d into raycast:main Oct 30, 2023
@raycastbot
Copy link
Collaborator

Published to the Raycast Store:
https://raycast.com/xmok/purelymail

@raycastbot
Copy link
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/purelymail branch April 6, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants