Skip to content

merging 'stable' to 'main'#29

Merged
ArNAB-0053 merged 35 commits into
mainfrom
stable
Dec 11, 2025
Merged

merging 'stable' to 'main'#29
ArNAB-0053 merged 35 commits into
mainfrom
stable

Conversation

@ArNAB-0053

Copy link
Copy Markdown
Owner

No description provided.

arnab-capsitech and others added 30 commits November 27, 2025 15:30
…er to tooltip; clean up unused imports in Header component
- Removed the Header component and replaced it with PageHeader for better structure.
- Introduced ReduxPersistProvider to manage Redux state persistence.
- Updated SignInForm to dispatch user details to Redux store upon successful login.
- Refactored EditorHeaderComponent to utilize Redux for output management.
- Consolidated header buttons into a single header-buttons file for better organization.
- Removed unused FormikForm and theme-related components.
- Added userSlice and editorSlice for managing user and editor state in Redux.
- Implemented auto-save functionality for the editor using Redux.
- Updated layout structure to improve component hierarchy and maintainability.
…piry and owner-restricted management

Includes:
- Snapshot-based share model (no live editor access)
- Unique share ID generation
- Optional expiration time
- Share count limiting
- Owner-only visibility for share metadata
- Prevents unauthorized viewing of updated code
…ser feedback

- Added SignInForm component with email/username and password fields, integrated with Redux for user state management.
- Implemented SignUpForm component with multi-step registration process, including username and email availability checks.
- Introduced validation tooltips for password and username fields to guide user input.
- Created helper functions for password and username validation rules.
- Integrated Zod for schema validation in forms.
- Enhanced user experience with loading states and success/error messages using Sonner for notifications.
…er feedback; add terms and privacy policy pages
# Code Sharing System – Snapshot + Live Share

## 1. Snapshot Share (Static Snapshot Mode)
- Captures a **frozen snapshot** of the current editor state.
- Stores a new document in the **ShareModel** collection.
- Snapshot contains:
  - `code`
  - `lang`
  - `output`
  - `ownerId`
  - `sharedByUserId`
  - Optional metadata such as:
    - `shareLimit`
    - `expiresAt`
- Generates a unique **sharedId** (12-char hash) for secure, read-only access.
- The snapshot **never updates** even if the owner continues modifying their code.
- Useful for safe sharing, one-time reviews, or sending a fixed version.

## 2. Live Share (Real-time Updated Mode)
- Uses the existing **editorId** to generate a share URL.
- No snapshot document is created.
- Anyone opening this link always receives the **latest version** of the code.
- Ideal for real-time collaboration or always-updated viewing.
## Add Redis-based Auth Validation (Username/Email Availability + Secure Signup Flow)
- Implemented Redis integration to speed up auth checks and prevent duplicate accounts.
- Added username and email availability endpoints, Redis-first validation, and MongoDB fallback for consistency.
- Updated signup flow to hash passwords, enforce unique fields, and store lookup keys in Redis for fast future checks.

This speeds up validation during signup, reduces DB load, and improves overall UX.
…for first, middle, and last names; update related components and validation
feat(auth): enhance user model and registration process; add support for first, middle, and last names; update related components and validation
…in in the editor after language switching. Now FIXED.
Component : Editor
Status: FIXED
Issues were:
- Old code keeps showing even after switching to a different language.
- Editor doesn't update code when the language changes.
- Previous language's code stays visible after switching languages.
- Language switch works, but the editor still shows old code.
@ArNAB-0053

Copy link
Copy Markdown
Owner Author

#29 PERFECT
Understanding the full power of GitHub for Project / Code management now, and still don't know many things.

@ArNAB-0053 ArNAB-0053 merged commit ea67ad0 into main Dec 11, 2025
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