-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coffee Chat Archive/Unarchive Button (#872)
### Summary <!-- Required --> <!-- Provide a general summary of your changes in the Title above --> <!-- Itemize bug fixes, new features, and other changes --> <!-- Feel free to break this into sub-sections, i.e. features, fixes, etc. --> <!-- Some examples are shown below. --> This PR adds the functionality for Admins to be able to both Archive and Unarchive all coffee chats to give a clean slate for every semester. - [x] Added `archiveCoffeeChats` and `unarchiveCoffeeChats` to `CoffeeChatDao.ts` - [x] Added endpoints for both archive/unarchive in `api.ts` and `loginCheckedPatch` for patch REST - [x] Added functions for both the backend/frontend `coffeeChatAPI.ts` and `CoffeeChatAPI.ts` - [x] Created patch Request in the `APIWrapper.ts` - [x] Added Archive/Unarchive buttons to `CoffeeChats.tsx` (Gives success alert once finished!) <!-- If the changes have associated Notion pages/Figma design(s), please include the links here.--> [Notion Link](https://www.notion.so/Coffee-Chat-Add-Ability-for-Admin-to-Archive-Coffee-Chats-1890ad723ce181319b34feaebe6c782d?pvs=4) ### Test Plan <!-- Required --> https://github.com/user-attachments/assets/36a6885f-0343-45bd-aa20-2ed93cfaaf22 <!-- Provide screenshots or point out the additional unit tests -->
- Loading branch information
Showing
6 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters