extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Add personio extension

Open Boosteblume opened this issue 1 year ago • 7 comments
trafficstars

Description

Screencast

Checklist

Boosteblume avatar Apr 05 '24 11:04 Boosteblume

Congratulations on your new Raycast extension! :rocket:

We will aim to make the initial review within five working days. Once the PR is approved and merged, the extension will be available on our Store.

raycastbot avatar Apr 05 '24 11:04 raycastbot

@marcjulianschwarz here is our pr

Boosteblume avatar Apr 05 '24 11:04 Boosteblume

This extension is based on the API for the personio HR platform.

Commands:

  • Find Employee Number (shows a list of employee names with their employee IDs)
  • Track Time (uses the employee number, start time, end time and break time to track working time)
  • Attendances (uses the employee number to list all attendances in the current year)

First Use:

  • Provide a client secret and id (see README)
  • Find your employee number
  • Put the employee number in the according preference

marcjulianschwarz avatar Apr 05 '24 16:04 marcjulianschwarz

No screencast here because of sensitive information but a few screenshots with comments.

Find Employee Number Command

personio 2024-04-08 at 08 01 36

with actions "Copy Employee Number" and "Paste Employee Number".

Track Time Command

personio 2024-04-08 at 08 03 10

Select start, end and break time. Actions: "Submit" and "Change Employee Number".

Attendances Command

personio 2024-04-08 at 08 03 22

List all attendances of the current year (this will be changed to a preference to select a custom time period).

marcjulianschwarz avatar Apr 08 '24 06:04 marcjulianschwarz

The commit adds a month selector for the attendances command and uses the Raycast Cache to cache API tokens and data that doesn't change as often.

personio 2024-04-09 at 10 24 15

marcjulianschwarz avatar Apr 09 '24 08:04 marcjulianschwarz

Hi 👋

Thanks for the contribution 🔥

Sorry for the long response time. Due to the Easter vacation, we have a slightly increased response time, but it should soon return to normal.

Is this PR ready to be reviewed?

pernielsentikaer avatar Apr 11 '24 09:04 pernielsentikaer

Hi @pernielsentikaer, no worries.

I think @Boosteblume is still working on some final touches. Should we ping you when it's ready?

marcjulianschwarz avatar Apr 11 '24 10:04 marcjulianschwarz

Do you mind taking another look @marcjulianschwarz

pernielsentikaer avatar Apr 16 '24 12:04 pernielsentikaer

@pernielsentikaer everything looks fine. @Boosteblume and I were working on this together, so it was tested by both of us.

marcjulianschwarz avatar Apr 16 '24 12:04 marcjulianschwarz

@pernielsentikaer Could you please tell me how I can reproduce your error? Because if I remove the API credentials and clear my cache I only get the 403 errors.

Boosteblume avatar Apr 16 '24 13:04 Boosteblume

I just entered some random data 🙂

Raycast16042024-SxGsMkNH png@2x

pernielsentikaer avatar Apr 16 '24 14:04 pernielsentikaer

@pernielsentikaer We added a toast message telling the user to re-check his credentials. Raycast 2024-04-16 at 16 43 45

Boosteblume avatar Apr 16 '24 14:04 Boosteblume

That looks much better, do you think we can stop the loading indicator too?

pernielsentikaer avatar Apr 17 '24 08:04 pernielsentikaer

done @pernielsentikaer

marcjulianschwarz avatar Apr 17 '24 15:04 marcjulianschwarz

Let's go with that 🔥

pernielsentikaer avatar Apr 18 '24 11:04 pernielsentikaer

@pernielsentikaer Since Personio is only used in Europe we only added some timezones. To provide a broader usability we added GMT+-10 times.

Boosteblume avatar Apr 18 '24 11:04 Boosteblume

Published to the Raycast Store: https://raycast.com/boosteblume/personio

github-actions[bot] avatar Apr 18 '24 11:04 github-actions[bot]

:tada: :tada: :tada:

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

raycastbot avatar Apr 18 '24 11:04 raycastbot