Chi'Va Update: Trial Experience & Enhancements (Version 0.0.2)
We’re excited to share the latest updates to the Chi'Va platform, designed to enhance your experience and improve functionality across the board. Here’s what’s new in this release:
New Features
-
Free Trial Mode:
-
Introduced a limited-time trial experience for first-time visitors.
-
Trial mode allows users to explore Chi'Va's core features without requiring immediate login or registration.
-
A visible countdown timer keeps users informed about the remaining trial time.
-
-
Post-Trial Flow:
-
Clear and actionable messaging once the trial period ends, prompting users to log in or register.
-
Easy navigation with "Login" and "Sign Up" buttons for a seamless transition after trial completion.
-
Backend Improvements
-
Authentication Logic:
-
Enhanced authentication system to support trial users alongside logged-in users.
-
Cookies are now utilized to track trial participation (
hasUsedTrial
) and manage access permissions dynamically.
-
-
API Route Enhancements:
-
Updated
/api/vote
and/api/chat
endpoints to allow trial users controlled access to certain features (e.g., viewing messages but restricting voting). -
Improved error handling and secure access controls for both trial and authenticated users.
-
UI/UX Enhancements
-
Dynamic Trial Hero Component:
-
Redesigned the trial banner with distinct messaging for active and expired trial states.
-
Clean, responsive design for displaying trial status and actions.
-
-
Improved State Management:
- Optimized
useEffect
and cookie handling logic for better performance and consistency during trial transitions.
- Optimized
Bug Fixes
-
Resolved issues with hydration mismatches during SSR/CSR rendering.
-
Fixed unintended API calls during trial mode that could lead to errors or unexpected behavior.
-
Addressed cookie access and state sync issues to ensure proper trial functionality on refresh and navigation.
We’re committed to making Chi'Va intuitive and accessible for all users. If you encounter any issues or have feedback, feel free to reach out. Thank you for being a part of Chi'Va!