uclaacm / website

The official (award-winning) website for ACM at UCLA, the largest tech community on campus!
https://acm.cs.ucla.edu
Mozilla Public License 2.0
18 stars 20 forks source link

Feature request: Automate updating the leadership section #684

Open snigdha-kansal opened 1 month ago

snigdha-kansal commented 1 month ago

Issue

Currently, the leadership section on the about page of the ACM Website needs to be manually updated through the .../leadership.js file. This process is cumbersome and error-prone.

Proposed Solution

Automate with existing script:

  1. There already exists the .../officer-parser.mjs script that retrieves data from the directory spreadsheet and writes it to the offoutput.json file.
  2. We would need to modify the .../OfficerCard.js component and the .../about.js page so that the data from the said generated json file is used instead of the hard-coded data.
  3. This would be similar to how .../CommitteeSectionOfficers/js and .../officers.js do it but the styling would be different and a smaller subset of the data would be displayed which would be dictated by the currently displayed leadership section.