shelf.nu icon indicating copy to clipboard operation
shelf.nu copied to clipboard

[Feature request]: Generating a PDF with booking overview

Open jurrejansen opened this issue 1 year ago â€ĸ 3 comments

Contact Details

[email protected]

Is your feature request related to a problem? Please describe?

"Option to print out the generated list of assets as a PDF for record keeping and for a physical reference on set."

Describe the solution you'd like

Add a menu item under Actions called 'Generate PDF...' which will download a PDF with an overview of the booking. There's not really a reason to not let users download the PDF when the booking is in Draft but I feel we should only allow it when booking reaches Reserved.

  • Generation date
  • Workspace name
  • Title (with booking name)
  • Booking name
  • Custodian
  • Booking period
  • Table with included assets (number, name, category, location, QR, checkbox)

SCENARIO https://www.figma.com/file/ykvc0MhPeNLsrJ4tJsKosQ/Shelf-%7C-UX-Scenarios?type=design&node-id=4918-566890&mode=design

Describe alternatives you've considered

No response

Additional context

No response

jurrejansen avatar Apr 30 '24 11:04 jurrejansen

This seems quite ready to assign. Do you have any comments?

carlosvirreira avatar May 17 '24 11:05 carlosvirreira

Okey, here are some ideas based on some research I did. So as always with remix, we can use a resource route, which is amazing. Here is an example from Sergio: https://sergiodxa.com/tutorials/generate-a-pdf-in-remix-with-resource-routes Also I like that he uses this react pdf approach. I think this could be so easy to do and we can create a route in the admin dashboard so we can preview it.

Moreover this is a more general article with a lot of different libraries. They all look interesting in case we want to use one of them instead of react-pdf. https://dev.to/handdot/generate-a-pdf-in-js-summary-and-comparison-of-libraries-3k0p

DonKoko avatar May 17 '24 11:05 DonKoko

Thank you for the research it sounds promising. What can we do to get this moving? The design is ready - is this a bounty-able-feat?

carlosvirreira avatar May 17 '24 13:05 carlosvirreira

/bounty 15

carlosvirreira avatar May 23 '24 13:05 carlosvirreira

~~## 💎 $15 bounty â€ĸ Shelf~~

~~### Steps to solve:~~ ~~1. Start working: Comment /attempt #942 with your implementation plan~~ ~~2. Submit work: Create a pull request including /claim #942 in the PR body to claim the bounty~~ ~~3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts~~

~~Thank you for contributing to Shelf-nu/shelf.nu!~~

~~Add a bounty â€ĸ Share on socials~~

Attempt Started (GMT+0) Solution
đŸŸĸ @MohakBajaj May 23, 2024, 2:18:21 PM WIP
🔴 @Bhavyajain21 May 24, 2024, 1:04:41 PM WIP
đŸŸĸ @rajeshj11 May 28, 2024, 10:21:10 AM #999

algora-pbc[bot] avatar May 23 '24 13:05 algora-pbc[bot]

Hey I'd like to get assigned to this

MohakBajaj avatar May 23 '24 14:05 MohakBajaj

/attempt #942

Options

MohakBajaj avatar May 23 '24 14:05 MohakBajaj

@DonKoko - could we assign this to Mohak?

carlosvirreira avatar May 24 '24 12:05 carlosvirreira

/attempt

Algora profile Completed bounties Tech Active attempts Options
@Bhavyajain21    2 Shelf-nu bounties
+ 6 bounties from 2 projects
TypeScript, Rust,
JavaScript & more
īšŸ972
Cancel attempt

Bhavyajain21 avatar May 24 '24 13:05 Bhavyajain21

@DonKoko processed feedback from user. They asked for including the asset thumbnail. Also I have changed the logo in top left to 1:1. Updated the original message with these things.

jurrejansen avatar May 27 '24 08:05 jurrejansen

Sorry! I'll be withdrawing from this issue. I'm unable to find time to work on it.

MohakBajaj avatar May 27 '24 08:05 MohakBajaj

/attempt #942

Algora profile Completed bounties Tech Active attempts Options
@rajeshj11 2 bounties from 2 projects
JavaScript, TypeScript,
HTML
Cancel attempt

rajesh-jonnalagadda avatar May 28 '24 10:05 rajesh-jonnalagadda

💡 @rajeshj11 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar May 28 '24 10:05 algora-pbc[bot]

@jurrejansen please review the demo and PR changes. Please Let me know if any changes are needed.

rajesh-jonnalagadda avatar May 28 '24 10:05 rajesh-jonnalagadda

🎉🎈 @rajeshj11 has been awarded $30! 🎈🎊

algora-pbc[bot] avatar Jun 04 '24 13:06 algora-pbc[bot]