Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release recnet-web v1.15.0 / recnet-api v1.7.1 #329

Merged
merged 19 commits into from
Oct 17, 2024
Merged

Release recnet-web v1.15.0 / recnet-api v1.7.1 #329

merged 19 commits into from
Oct 17, 2024

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Oct 14, 2024

RecNet auto-release action

This is an auto-generated PR by recnet-release-action 🤖
Please make sure to test your changes in staging before merging.

Related Issues

Related PRs

Staging links

recnet-web: https://vercel.live/link/recnet-git-dev-recnet-542617e7.vercel.app
recnet-api: https://dev-api.recnet.io/api

swh00tw and others added 6 commits October 11, 2024 04:37
## Description

<!--- Describe your changes in detail -->
Mark verified article.

## Related Issue

<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->
- #268 

## Notes

<!-- Other thing to say -->

## Test

<!--- Please describe in detail how you tested your changes locally. -->

Should see "verified" in rec card (Need to change some articles'
`isVerified` to true in order to test)

## Screenshots (if appropriate):

<!--- Add screenshots of your changes here -->

![Screenshot 2024-10-11 at 4 41
10 AM](https://github.com/user-attachments/assets/fe13cc05-6e51-487f-94b8-fd0c9f919080)


## TODO

- [x] Clear `console.log` or `console.error` for debug usage
- [x] Update the documentation `recnet-docs` if needed
Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
recnet ⬜️ Ignored (Inspect) Visit Preview Oct 17, 2024 3:42am
recnet-docs ⬜️ Ignored (Inspect) Visit Preview Oct 17, 2024 3:42am

swh00tw and others added 6 commits October 14, 2024 17:32
## Description

Add rec reaction to rec related API.
Design Doc:
[Notion](https://www.notion.so/Rec-Emoji-Reaction-ad4c0db048574a6183a672b25d209e5c)

- GET /recs/rec/{id}
- GET /recs
- GET /recs/feed

The Rec schema in response API becomes:
```
{
    "id": "string",
    "description": "string",
    ...
    "reaction": {
		  "selfReactions": ["string"],  // list emun of reaction that user clicked
		  "numReactions": [
		     {
			     "type": "string",  // enum of reaction
			     "count": "number" // total count of the reaction
		     }
		  ]
    }
}
```

## Related Issue

- #60

## Notes

<!-- Other thing to say -->
As `GET /recs/rec/{id}` and `GET /recs/` do not require an Auth user to
login, I added a decorator of `@AuthOptional` to get the user
information from jwt token.

## Test

1. Hit `POST /recs/{id}/reactions` and `DELETE /recs/{id}/reactions` to
create and delete rec for a specific Recommendation.
2. Use the API above to query recs and validate if the `reactions` field
is returned correctly.
3. Try to create rec reactions with different users to test if
selfReactions and numReactions work correctly.

## Screenshots (if appropriate):

<!--- Add screenshots of your changes here -->

## TODO

- [x] Clear `console.log` or `console.error` for debug usage
- [ ] Update the documentation `recnet-docs` if needed
swh00tw and others added 4 commits October 15, 2024 00:39
## Description

<!--- Describe your changes in detail -->
Cache the output of `nx build recnet-release-action` using the hash of
source code in `libs/recnet-release-action/src` to accelerate gh action

## Related Issue

<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->

## Notes

<!-- Other thing to say -->
Successful run 1 (cache miss):
https://github.com/lil-lab/recnet/actions/runs/11335345342/attempts/1
Successful run 2 (cache hit):
https://github.com/lil-lab/recnet/actions/runs/11335345342


## Test

<!--- Please describe in detail how you tested your changes locally. -->

## Screenshots (if appropriate):

<!--- Add screenshots of your changes here -->

You can see in the first run, cache doesn't hit, and the action start
downloading node packages and compiling the typescript files.

![Screenshot 2024-10-14 at 5 41
54 PM](https://github.com/user-attachments/assets/616cd891-ec46-48e7-8b51-fb889e240413)

And it saves the output in cache in the end of first successful run.

![Screenshot 2024-10-14 at 5 43
45 PM](https://github.com/user-attachments/assets/b4fb5a44-493c-496c-8c71-26351a450be0)

In the second run, you can see it did hit the cache and skip the
downloading and compiiing steps
![Screenshot 2024-10-14 at 5 44
37 PM](https://github.com/user-attachments/assets/fe5fd532-8359-4bcd-a136-acbcc67f1ed8)

## TODO

- [x] Clear `console.log` or `console.error` for debug usage
- [x] Update the documentation `recnet-docs` if needed
## Description

<!--- Describe your changes in detail -->
Add reactions buttons under rec page

## Related Issue

<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->
- #60 

## Notes

<!-- Other thing to say -->

## Test

<!--- Please describe in detail how you tested your changes locally. -->
Find a rec and go to rec page `rec/:id`
- When not logged in, should be able to view reactions. But when
clicking emojis, should see an error toast shows up.
- When logged in, should be able to select reaction. And after
selection, should see the reaction chip, which displays how many users
have clicked that reaction, displays the number correctly.
- When click again (no matter using the reaction popover or click on
reaction chip), should remove that reaction (reaction count decrement by
1)

## Screenshots (if appropriate):

<!--- Add screenshots of your changes here -->
![Screenshot 2024-10-15 at 12 42
48 AM](https://github.com/user-attachments/assets/7ff0f015-4062-4be2-bed8-04493cd647a4)

Reaction popover:
![Screenshot 2024-10-15 at 12 46
35 AM](https://github.com/user-attachments/assets/9696fa58-573e-42d8-86a7-1647594f0939)

Reaction chip:
![Screenshot 2024-10-15 at 12 46
49 AM](https://github.com/user-attachments/assets/f24542a6-2869-42e3-9954-2432a11b4105)


## TODO

- [x] Clear `console.log` or `console.error` for debug usage
- [x] Update the documentation `recnet-docs` if needed
@swh00tw swh00tw changed the title Release dev to master Release recnet-web 1.15.0 / recnet-api 1.7.1 Oct 17, 2024
@swh00tw swh00tw changed the title Release recnet-web 1.15.0 / recnet-api 1.7.1 Release recnet-web v1.15.0 / recnet-api v1.7.1 Oct 17, 2024
@swh00tw swh00tw merged commit 579ade6 into master Oct 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants