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

refactor: rework notifications pages #393

Merged
merged 6 commits into from
Jul 25, 2023
Merged

refactor: rework notifications pages #393

merged 6 commits into from
Jul 25, 2023

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Jul 24, 2023

This change simplifies the logic around the notifications page and makes it less hacky. A few styling changes have also been made.

@iuioiua iuioiua requested a review from kt3k July 24, 2023 00:43
@iuioiua
Copy link
Contributor Author

iuioiua commented Jul 24, 2023

@marvinhagemeister, type checks aren't liking /routes/notifications/index.tsx. Is this a bug or error on my part?

@kt3k
Copy link
Member

kt3k commented Jul 24, 2023

There seems something wrong in AsyncRoute typing https://github.com/denoland/fresh/blob/9cae8fdd5cb31f920efc10402d01da31ab9e90ac/src/server/types.ts#L138

Specifying SignedInState in ctx: RouteContext<unknown, SignedInState> makes NotificationsPage incompatible with AsyncRoute (I guess this should be fixed in fresh side)

@iuioiua
Copy link
Contributor Author

iuioiua commented Jul 24, 2023

Nice catch! Fix incoming.

@iuioiua
Copy link
Contributor Author

iuioiua commented Jul 24, 2023

Hm... I remove the state type and still have the same issue...

@iuioiua
Copy link
Contributor Author

iuioiua commented Jul 24, 2023

I've reverted to the handler method for now. I can refactor once the fix has been published to Fresh.

@iuioiua iuioiua merged commit cfab35f into main Jul 25, 2023
@iuioiua iuioiua deleted the rework-notifications branch July 25, 2023 02:36
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