WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
385 stars 600 forks source link

Refactor : migrated empty_week.jsx to functional component #5848

Open Raman-Luhach opened 1 week ago

Raman-Luhach commented 1 week ago

What this PR does

This pull request refactors the empty_week.jsx component from a class-based component to a functional component.

Screenshots

Before

  1. If timeline is empty and user can edit it, show info and links to get started.
Screenshot 2024-07-02 at 11 08 19 PM
  1. If timeline is empty but user cannot edit, just note that timeline is empty.

    Screenshot 2024-07-02 at 11 00 31 PM
  2. If timeline is not empty, show the blackout week message.

Screenshot 2024-07-02 at 11 10 28 PM

After

  1. If timeline is empty and user can edit it, show info and links to get started.
Screenshot 2024-07-02 at 11 06 17 PM
  1. If timeline is empty but user cannot edit, just note that timeline is empty.

    Screenshot 2024-07-02 at 11 03 59 PM
  2. If timeline is not empty, show the blackout week message.

Screenshot 2024-07-02 at 11 11 57 PM

Open questions and concerns

I am a first-time contributor to Wikimedia and have converted empty_week.jsx to a functional component. If there are any issues with my pull request, please provide feedback, and I will address them promptly.

Thank you!

ragesoss commented 1 day ago

Please include before/after screenshots.