BitByte-TPC / alumni

Alumni Portal for IIITDM Jabalpur
https://alumni.iiitdmj.ac.in
MIT License
14 stars 54 forks source link

Fixing the Awards Model and making corresponding changes. #168

Closed ritankarsaha closed 3 days ago

ritankarsaha commented 2 weeks ago

ISSUE

The current Award Page has many anomalies like:-

  1. If the description is big enough, it displays the entire thing, instead it should be trimmed of to a more shorter content for instant preview.
  2. It cannot incorporate any image. An award without an image of the award is highly vague.
  3. It has no received by option. The award has it's title, and the given by attributes however it's missing a very important attribute which is the received by section. To whom, the award goes to, SHOULD be displayed.
  4. Lastly UI fixes.
Screenshot 2024-07-05 at 3 11 03 AM

The screenshot shows the anomalies. No image option here to add it, also shows the entire file instead of trimming it out.

FIXES

  1. Update the model to incorporate the image attribute and the received_by attribute.
  2. Update other files as necessary.

REPRODUCE SIMILAR EFFECTS

To reproduce this effect, visit the admin page and try to submit a new award, you will notice the anomalies in the model. Also, create an award with a long description as shown in the screenshot. Come back to the awards page to visualise it. To visit the awards page clear the receding end of the URL and type /awards along with the localhost: link or you can directly visit from the dashboard->young-achiever-award.

Thank You.

ritankarsaha commented 1 week ago

@SamakshAgarwal1112 I have fixed this issue #168 and opened a PR #169 for the same.