scorelab / Codelabz

Codelabz
Apache License 2.0
143 stars 407 forks source link

[ Feat : Support for 'docx' or other Uploads and Interactive Card Display in New Tutorial Creation ] #1156

Closed rohitPandey469 closed 7 months ago

rohitPandey469 commented 10 months ago

Is your feature request related to a problem? Please describe. The <DescriptionIcon /> button which is visible while creating a new tutorial doesn't currently support any interactions, such as 'onClick' events. This destroys the purpose of having a doc upload thing looking like button, so thinking of making it work similar to the image and video upload button functionality in issue #1081 #1029 and their respective PRs. image Here the last button

Describe the solution you'd like While Uploading:

  1. Enable the <DescriptionIcon /> button to upload 'docx' files (high priority)
  2. Provide the option to prompt the user to input a description.

While Showing in Card:

  1. For 'docx' file uploads, display a fixed image or icon on all cards with 'docx' uploads. Clicking the image should link to an additional page in the browser, opening the 'docx' file.
  2. For user-input descriptions, implement a toggle between a brief preview and the full description upon clicking the card.

Describe alternatives you've considered Or creating a card with a fixed image representing 'docx' uploads. For user-input descriptions, implement a card with the entered text. However, this approach may lack the versatility and user experience enhancement provided by a more interactive solution.

Additional context - My Current Approach Current plan :

  1. Implement the upload of 'docx' files or other supported formats.
  2. Use a consistent fixed image for all cards with 'docx' uploads or a snapshot of the uploaded file, restricted to '300px' and adjusted for smaller devices.
  3. On clicking the doc snapshot or fixed image opens the file in the browser, similar to viewing brochures.

Doing variations with the functionality will be more cool so do tell me your wild preferences and ideas

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 7 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.