gita / gita-frontend-v2

Frontend for BhagavadGita.io v2
https://bhagavadgita.io
MIT License
43 stars 53 forks source link

fix subscription flow and UI #202

Closed Gupta-Anubhav12 closed 1 year ago

Gupta-Anubhav12 commented 1 year ago

Summary by CodeRabbit

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated (UTC)
bg-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2023 1:24pm
bhagavad-gita ✅ Ready (Inspect) Visit Preview Sep 3, 2023 1:24pm
github-actions[bot] commented 1 year ago

Image description CodeRabbit

Walkthrough

This pull request introduces significant changes to the application's GraphQL client, transitioning from gqty-client to Apollo Client. It also enhances the UI by updating CSS classes and refactoring the Modal component with transition animations. The removal of the NEXT_PUBLIC_HASURA_ADMIN_SECRET check may impact authentication functionality.

Changes

File(s) Summary
gqty.config.cjs, src/gqty-client/index.ts Removed the check for NEXT_PUBLIC_HASURA_ADMIN_SECRET environment variable and its corresponding header in the introspection object and from the HTTP request's headers in the queryFetcher function.
next-env.d.ts Removed a reference to next/navigation-types/compat/navigation. No alterations to exported functions or variables.
src/components/Home/Banner.tsx Updated CSS classes of two <h1> elements in the Banner component.
src/components/Home/Modal.tsx Refactored the Modal component using Dialog and Transition components from @headlessui/react, adding transition animations and updating CSS classes.
src/lib/subscribeUser.ts, src/utils/apolloclient.ts Refactored the subscribeUser function to use Apollo Client for performing a GraphQL mutation. Added an Apollo Client configuration for making GraphQL requests.

🐰💻

In the land of code, where logic intertwines,

A rabbit hops along the lines.

With each hop, a change is made,

A new feature, an old one fades.

From GQty to Apollo, we take flight,

Enhancing UI, making it bright.

Though some checks are now unseen,

We celebrate this PR, so clean! 🎉


Uplevel your code reviews with CodeRabbit Pro ### CodeRabbit Pro If you like this project, please support us by purchasing the [Pro version](https://coderabbit.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.