Skip to content

FIxing issue KMP-006 - #257

Merged
AnshRaj112 merged 1 commit into
mainfrom
fixes/ISSUE-KMP-006
Aug 15, 2026
Merged

FIxing issue KMP-006#257
AnshRaj112 merged 1 commit into
mainfrom
fixes/ISSUE-KMP-006

Conversation

@AnshRaj112

@AnshRaj112 AnshRaj112 commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Pull Request - KAMPYN Frontend Application

Project: KAMPYN Frontend Application
Repository: bitesbay-frontend
Technology Stack: Next.js 14+, React 18+, TypeScript, Tailwind CSS


PR Metadata

  • PR Size:
    • Small
    • Medium
    • Large
    • Release
  • Priority:
    • Low
    • Medium
    • High
    • Critical
  • Impact:
    • Low
    • Medium
    • High
    • Critical
  • Complexity:
    • Low
    • Medium
    • High
    • Critical
  • Estimated Review Time:
  • Target Deployment Date:
  • Related PRs:
  • Blocks/Blocked By:

Section Requirements by PR Size/Priority/Impact

Small PRs (Low Priority/Impact):

  • ✅ Core Sections (Executive Summary, Related Context, Change Classification, Detailed Changes)
  • ✅ Basic Testing Strategy
  • ✅ Deployment Notes (basic)
  • ⚠️ Skip Advanced sections unless relevant

Medium PRs (Medium Priority/Impact):

  • ✅ All Core Sections
  • ✅ Comprehensive Testing Strategy
  • ✅ Performance Analysis (if applicable)
  • ✅ Security Considerations (if applicable)
  • ✅ Deployment Notes + Basic Rollback Strategy

Large PRs (High Priority/Impact):

  • ✅ All sections required
  • ✅ Full Testing Strategy with device/browser testing
  • ✅ Complete Performance Analysis
  • ✅ Comprehensive Security Considerations
  • ✅ Full Deployment & Rollback Plan
  • ✅ Risk Assessment
  • ✅ Business Impact & Metrics

Release/Critical PRs (Critical Priority/Impact):

  • ✅ ALL sections mandatory
  • ✅ Extensive testing documentation
  • ✅ Complete deployment plan with monitoring
  • ✅ Comprehensive rollback strategy with testing
  • ✅ Detailed risk assessment and mitigation
  • ✅ Full business impact analysis
  • ✅ Stakeholder communication plan

Executive Summary (CORE – Required)

What & Why

Outcome

Change Overview

Related Context (CORE – Required)

  • Epic / Feature:
  • User Story / Ticket:
  • Design Reference (Figma):
  • API / Backend Dependency:

Change Classification (CORE – Required)

Primary Type

  • Bug Fix - Non-breaking change that fixes an issue

  • Feature - New functionality or enhancement

  • Breaking Change - Changes that affect existing functionality

  • Documentation - Documentation updates only

  • UI/UX - User interface or user experience improvements

  • Performance - Performance optimization or improvements

  • Refactoring - Code restructuring without functional changes

  • Testing - Test coverage improvements or test-related changes

  • Security - Security enhancements or vulnerability fixes

  • Dependencies - Package updates or dependency management

  • Infrastructure - Build, deployment, or infrastructure changes

Secondary Categories (Optional)

  • State Management - Redux, Context, or state-related changes
  • Styling - CSS, SCSS, or styling framework changes
  • Responsive - Mobile, tablet, or responsive design changes
  • Accessibility - A11y improvements or WCAG compliance
  • Internationalization - i18n or localization changes
  • SEO - Search engine optimization improvements
  • Analytics - Tracking, metrics, or analytics integration

Detailed Changes (CORE – Required)

Components & Pages

New Components

  • Component Name: src/components/...
  • Component Name: src/components/...

Modified Components

  • Component Name: src/components/... - Description of changes
  • Component Name: src/components/... - Description of changes

Removed Components

  • Component Name: src/components/... - Reason for removal

New Pages

  • Page: /route-name - Description
  • Page: /route-name - Description

Modified Pages

  • Page: /route-name - Description of changes
  • Page: /route-name - Description of changes

UI/UX Changes

Design System Updates

  • New design tokens added
  • Existing design tokens modified
  • Component library updates
  • Theme changes implemented
  • Color palette updates
  • Typography changes

Visual Changes

  • Layout modifications
  • Component styling updates
  • Animation/transition changes
  • Icon updates or additions
  • Image/asset updates
  • Loading state improvements
  • Error state enhancements

Responsive Design

  • Mobile-first approach maintained
  • Tablet breakpoints updated
  • Desktop layout optimized
  • Touch-friendly interactions
  • Viewport meta tags updated
  • Flexible grid system usage

State Management

Redux/Store Changes

  • New actions created
  • Existing actions modified
  • New reducers added
  • Store structure updated
  • Middleware configuration changes
  • State persistence updates

Context API Changes

  • New contexts created
  • Existing contexts modified
  • Provider implementations updated
  • Hook customizations

Local State Changes

  • Component state updates
  • Form state management
  • URL state synchronization
  • Session storage usage

New API Endpoints

  • Endpoint: GET/POST/PUT/DELETE /api/... - Description
  • Endpoint: GET/POST/PUT/DELETE /api/... - Description

Modified API Calls

  • Endpoint: GET/POST/PUT/DELETE /api/... - Changes made
  • Endpoint: GET/POST/PUT/DELETE /api/... - Changes made

Data Fetching Strategy

  • Server-side rendering (SSR) updates
  • Static site generation (SSG) changes
  • Client-side rendering (CSR) modifications
  • Incremental static regeneration (ISR)
  • API route handlers added/modified

Error Handling

  • API error handling improved
  • Retry mechanisms implemented
  • Fallback UI components
  • Error boundary updates
  • User-friendly error messages

Comprehensive Testing Strategy (ADVANCED – Medium+ PRs)

Unit Testing

  • Component unit tests added/updated
  • Hook testing implemented
  • Utility function tests
  • Redux action/reducer tests
  • API integration tests
  • Form validation tests

Integration Testing

  • Component integration tests
  • Page-level integration tests
  • API integration testing
  • State management integration
  • Router integration tests
  • Authentication flow tests

End-to-End Testing

  • Critical user journeys tested
  • Cross-browser E2E tests
  • Mobile device testing
  • Performance testing
  • Accessibility testing
  • Security testing

Device & Browser Testing

Desktop Browsers

  • Chrome (Latest, Latest-1)
  • Firefox (Latest, Latest-1)
  • Safari (Latest, Latest-1)
  • Edge (Latest, Latest-1)
  • Opera (Latest)

Mobile Browsers

  • Chrome Mobile (iOS/Android)
  • Safari Mobile (iOS)
  • Samsung Internet
  • Firefox Mobile

Device Testing

  • iPhone (14, 13, 12, SE)
  • iPad (Pro, Air, Mini)
  • Android (Various screen sizes)
  • Tablet devices (Various orientations)

Screen Resolutions

  • 1920x1080 (Desktop)
  • 1366x768 (Laptop)
  • 1024x768 (Tablet)
  • 375x667 (iPhone SE)
  • 414x896 (iPhone 11)
  • 390x844 (iPhone 12)

Accessibility Testing

  • WCAG 2.1 AA compliance
  • Keyboard navigation testing
  • Screen reader compatibility
  • Color contrast validation
  • Focus management
  • ARIA labels and roles
  • Alternative text for images
  • Form accessibility

Performance Analysis (ADVANCED – Medium+ PRs)

Bundle Analysis

  • Bundle Size Before:
  • Bundle Size After:
  • Change:
  • Code splitting implemented
  • Lazy loading added
  • Tree shaking optimized
  • Dead code eliminated
  • Dynamic imports used

Performance Metrics

  • First Contentful Paint (FCP):
  • Largest Contentful Paint (LCP):
  • Cumulative Layout Shift (CLS):
  • First Input Delay (FID):
  • Time to Interactive (TTI):

Asset Optimization

  • Image optimization (WebP, AVIF)
  • Font optimization and preloading
  • Icon sprite optimization
  • CSS optimization
  • JavaScript minification
  • Gzip/Brotli compression

Caching Strategy

  • Browser caching headers
  • Service worker updates
  • CDN configuration
  • Static asset caching
  • API response caching
  • Local storage optimization

Security Considerations (ADVANCED – Medium+ PRs)

Security Checklist

  • Input validation implemented
  • XSS prevention measures
  • CSRF protection
  • Content Security Policy (CSP)
  • Secure headers implementation
  • Authentication token handling
  • Sensitive data protection
  • Third-party script security

Authentication & Authorization

  • JWT token management
  • Session handling
  • Role-based access control
  • Permission validation
  • Secure logout implementation
  • Password policy compliance
  • Multi-factor authentication

Security Testing

  • Penetration testing
  • Vulnerability scanning
  • Dependency security audit
  • OWASP compliance check
  • Security headers validation
  • HTTPS enforcement

Dependencies & Configuration (ADVANCED – Medium+ PRs)

Package Management

New Dependencies

  • package-name@version - Purpose and justification
  • package-name@version - Purpose and justification

Updated Dependencies

  • package-name@old-version → new-version - Reason for update
  • package-name@old-version → new-version - Reason for update

Removed Dependencies

  • package-name@version - Reason for removal
  • package-name@version - Reason for removal

Configuration Changes

Build Configuration

  • Next.js config updates
  • Webpack configuration changes
  • TypeScript config modifications
  • ESLint/Prettier updates
  • Tailwind CSS config changes

Environment Variables

  • New environment variables added
  • Existing variables modified
  • Production environment updates
  • Development environment changes
  • Staging environment configuration

CI/CD Configuration

  • GitHub Actions workflow updates
  • Build pipeline modifications
  • Deployment configuration changes
  • Testing pipeline updates
  • Quality gate configurations

Deployment & Rollback Plan (ADVANCED/RELEASE – Required for Medium+ PRs)

Note: Requirements vary by PR Size/Priority/Impact:
Small/Low: Deployment Notes only
Medium: Deployment Notes + Basic Rollback Strategy
Large/High/Critical: Full Deployment Plan + Comprehensive Rollback Strategy
Release/Critical: Complete Deployment Plan + Advanced Rollback + Monitoring Plan

Deployment Notes

  • Deployment Type: [ ] Standard [ ] Blue-Green [ ] Canary [ ] Rolling [ ] Zero-Downtime
  • Deployment Window:
  • Estimated Deployment Time:
  • Deployment Complexity: [ ] Low [ ] Medium [ ] High [ ] Very High
  • Downtime Expected: [ ] No [ ] Yes - Duration:
  • Manual Steps Required: [ ] No [ ] Yes - Details below
  • Database Migrations: [ ] None [ ] Forward Only [ ] Reversible [ ] Complex
  • Cache Invalidation Required: [ ] No [ ] Yes - Details:
  • CDN Cache Clear: [ ] No [ ] Yes - Paths:
  • Environment Variables: [ ] No changes [ ] New variables [ ] Modified variables - See Dependencies section
  • Infrastructure Changes: [ ] None [ ] Scaling [ ] New services [ ] Configuration updates
  • Third-Party Service Updates: [ ] None [ ] API key changes [ ] Service configuration
  • Feature Flags Required: [ ] No [ ] Yes - Flag name(s):
  • Pre-Deployment Validation:
  • Post-Deployment Validation:

Manual Deployment Steps

Post-Deployment Tasks

  • Health checks verified
  • Smoke tests executed
  • Monitoring dashboards checked
  • Error logs reviewed
  • Performance metrics validated
  • User acceptance verification
  • Documentation updated

Environment Deployment

Development Environment

  • Local development setup verified
  • Docker configuration updated (if applicable)
  • Development database migrations tested
  • Mock data updates applied
  • Environment variables configured
  • Build process verified

Staging Environment

  • Staging deployment tested
  • Integration testing completed
  • Performance testing conducted
  • User acceptance testing passed
  • Cross-browser testing verified
  • Mobile device testing completed
  • Accessibility testing validated

Production Environment

  • Production deployment plan reviewed and approved
  • Database migration strategy defined and tested
  • Rollback procedures documented and tested
  • Monitoring and alerting configured
  • Feature flag configuration prepared
  • Backup strategy verified
  • Security review completed
  • Performance baseline established

Rollback Strategy

Trigger Conditions

  • Critical Errors:
    • Application crashes or 500 errors > X%
    • Database connection failures
    • API integration failures
  • Performance Issues:
    • Response time degradation > X%
    • Error rate increase > X%
    • Resource utilization > X%
  • Business Impact:
    • Revenue loss > X%
    • User complaints > X threshold
    • Security vulnerabilities detected
  • Other Conditions:

Rollback Method

  • Rollback Type: [ ] Automated [ ] Manual [ ] Hybrid
  • Rollback Approach: [ ] Git revert [ ] Version rollback [ ] Feature flag disable [ ] Configuration rollback [ ] Database rollback
  • Previous Stable Version:
  • Rollback Commit/Tag:
  • Feature Flag Toggle: [ ] N/A [ ] Available - Flag name(s):

Rollback Procedure

  1. Immediate Actions:

    • Stop new deployments
    • Notify stakeholders
    • Assess impact severity
  2. Code Rollback:

    • Revert to previous commit/tag:
    • Trigger deployment pipeline
    • Verify rollback deployment
  3. Database Rollback (if applicable):

    • Rollback migration script:
    • Data restoration plan:
    • Backup verification:
  4. Configuration Rollback:

    • Environment variable revert
    • Infrastructure config revert
    • Service configuration restore
  5. Cache/CDN Rollback:

    • CDN cache clear
    • Application cache clear
    • Browser cache considerations

Expected Recovery Time

  • Target Recovery Time (RTO):
  • Actual Recovery Time (last rollback): N/A
  • Rollback Execution Time:
  • Validation Time:
  • Total Estimated Downtime:

Rollback Testing

  • Rollback procedure documented
  • Rollback tested in staging environment
  • Rollback scripts validated
  • Team trained on rollback procedure
  • Runbook created/updated

Post-Rollback Actions

  • Root cause analysis initiated
  • Incident report created
  • Stakeholders notified
  • Monitoring enhanced
  • Fix implementation planned
  • Lessons learned documented

Release Checklist

Pre-Release

  • Version number incremented (Semantic Versioning: MAJOR.MINOR.PATCH)
  • Changelog updated
  • Release notes prepared
  • Documentation updated
  • Team notification sent
  • Stakeholder communication completed
  • Release branch created (if applicable)
  • Release candidate tested

Release Day

  • Deployment window confirmed
  • All stakeholders available/on-call
  • Monitoring team notified
  • Support team briefed
  • Communication plan executed
  • Deployment executed
  • Health checks passed
  • Smoke tests passed

Post-Release

  • Post-deployment monitoring plan active
  • Success metrics tracked
  • Error logs reviewed
  • Performance metrics analyzed
  • User feedback collected
  • Release retrospective scheduled
  • Known issues documented

Monitoring & Observability

Metrics to Monitor

  • Application Metrics:
    • Error rates
    • Response times
    • Request throughput
    • User sessions
  • Infrastructure Metrics:
    • CPU/Memory usage
    • Network traffic
    • Database performance
    • CDN performance
  • Business Metrics:
    • User engagement
    • Conversion rates
    • Revenue impact
    • Feature adoption

Alerting Configuration

  • Error rate alerts configured
  • Performance degradation alerts
  • Resource utilization alerts
  • Business metric alerts
  • On-call rotation notified
  • Escalation path defined

Dashboards

  • Real-time monitoring dashboard available
  • Performance dashboard updated
  • Business metrics dashboard configured
  • Error tracking dashboard set up

Risk Assessment for Deployment

Deployment Risks

Risk Probability Impact Mitigation
Deployment failure
Performance degradation
Data loss/corruption
Integration failures
User experience disruption

Mitigation Strategies

  • Feature flags for gradual rollout
  • Canary deployment strategy
  • Blue-green deployment setup
  • Comprehensive testing in staging
  • Monitoring and alerting in place
  • Rollback plan tested and ready
  • Communication plan prepared

Visual Documentation (ADVANCED – Medium+ PRs)

Screenshots

Before Changes

  • Desktop View:
  • Tablet View:
  • Mobile View:

After Changes

  • Desktop View:
  • Tablet View:
  • Mobile View:

Interactive Elements

  • Hover States:
  • Loading States:
  • Error States:
  • Success States:

Video Documentation

  • User flow demonstration
  • Feature walkthrough
  • Mobile interaction demo
  • Performance comparison

Comparison Charts

  • Performance metrics comparison
  • Bundle size comparison
  • User engagement metrics
  • Error rate analysis

Documentation Updates (ADVANCED – Medium+ PRs)

Technical Documentation

  • README.md updated
  • API documentation updated
  • Component documentation
  • Architecture documentation
  • Deployment guide updates
  • Troubleshooting guide

User Documentation

  • User manual updates
  • Feature announcement
  • Migration guide (if applicable)
  • FAQ updates
  • Video tutorials

Developer Documentation

  • Code comments updated
  • JSDoc documentation
  • Type definitions updated
  • Development setup guide
  • Contributing guidelines

Code Quality & Standards (ADVANCED – Medium+ PRs)

Code Review Checklist

General Standards

  • Code follows project style guidelines
  • TypeScript types are properly defined
  • No console.log statements in production code
  • No unused imports or variables
  • Proper error handling implemented
  • Loading states handled appropriately
  • Accessibility standards followed

React/Next.js Best Practices

  • Proper component composition
  • Efficient re-rendering patterns
  • Proper use of hooks
  • Server-side rendering considerations
  • SEO optimization implemented
  • Performance optimizations applied

CSS/Styling Standards

  • Consistent naming conventions
  • Responsive design principles
  • CSS-in-JS best practices
  • Tailwind utility class usage
  • Design system compliance
  • Cross-browser compatibility

Code Cleanup

  • Dead code removed
  • Duplicate code eliminated
  • Code duplication minimized
  • Magic numbers replaced with constants
  • Complex functions broken down
  • Comments added for complex logic

Business Impact & Metrics (RELEASE – Large/Release PRs)

Success Metrics

  • Primary KPI:
  • Secondary KPIs:
  • User Engagement Metrics:
  • Performance Metrics:
  • Business Metrics:

User Experience Goals

  • Improved user satisfaction
  • Reduced bounce rate
  • Increased conversion rate
  • Enhanced accessibility
  • Better mobile experience
  • Faster page load times

Business Value

  • Revenue impact
  • Cost savings
  • Operational efficiency
  • Competitive advantage
  • Market positioning
  • Customer retention

Integration & Dependencies (RELEASE – Large/Release PRs)

External Integrations

  • Third-party APIs
  • Payment gateways
  • Analytics services
  • CDN services
  • Monitoring tools
  • Error tracking services

Internal Dependencies

  • Backend API changes
  • Database schema updates
  • Mobile app coordination
  • Infrastructure changes
  • Other frontend applications
  • Shared component libraries

Coordination Requirements

  • Backend team coordination
  • Mobile team coordination
  • DevOps team coordination
  • QA team coordination
  • Product team alignment
  • Design team approval

Risk Assessment & Mitigation (RELEASE – Large/Release PRs)

Risk Impact Mitigation
Risk 1
Risk 2

Identified Risks

  • Risk 1: Description - Mitigation strategy
  • Risk 2: Description - Mitigation strategy
  • Risk 3: Description - Mitigation strategy

Risk Mitigation Strategies

  • Feature flags implemented
  • Gradual rollout plan
  • Monitoring and alerting
  • Rollback procedures
  • User communication plan
  • Support team preparation

Risk Monitoring

  • Performance monitoring
  • Error rate monitoring
  • User feedback collection
  • Business metrics tracking
  • Technical metrics tracking

Final Review Checklist (RELEASE – Large/Release PRs)

For Author (Self-Review)

  • All changes have been thoroughly tested
  • Code follows project standards and best practices
  • Documentation has been updated
  • No sensitive information exposed
  • Performance impact has been assessed
  • Security considerations have been addressed
  • Accessibility requirements have been met
  • Cross-browser compatibility verified
  • Mobile responsiveness tested
  • No merge conflicts exist
  • Branch is up to date with main

For Reviewers

  • Code quality meets project standards
  • Functionality works as expected and documented
  • Tests are comprehensive and passing
  • Performance impact is acceptable
  • Security considerations are addressed
  • Accessibility requirements are met
  • Documentation is complete and accurate
  • Business requirements are satisfied
  • User experience is optimal
  • Deployment considerations are addressed

For Stakeholders

  • Business requirements are met
  • User experience goals are achieved
  • Performance expectations are satisfied
  • Security requirements are fulfilled
  • Timeline expectations are realistic
  • Resource requirements are adequate
  • Risk mitigation is appropriate
  • Success metrics are defined

Related Resources (RELEASE – Large/Release PRs)

Documentation Links

Design Resources

Technical Resources


Contact Information (RELEASE – Large/Release PRs)

Team Contacts

Stakeholders


Labels & Metadata (RELEASE – Large/Release PRs)

Standard Labels

  • frontend
  • ready-for-review
  • needs-testing
  • breaking-change (if applicable)
  • performance
  • security
  • accessibility

Custom Labels

  • feature/[feature-name]
  • bug/[bug-type]
  • ui/ux
  • mobile-responsive
  • seo
  • analytics

Priority & Impact

  • Priority: Low | Medium | High | Critical
  • Impact: Low | Medium | High | Critical
  • Complexity: Low | Medium | High | Very High

Additional Notes (RELEASE – Large/Release PRs)

Implementation Notes

Future Considerations

Collaboration Notes

Action Items

  • Action item 1
  • Action item 2
  • Action item 3

Reviewers: @exsolvia/kampyn-frontend-team @kampyn/qa-team @kampyn/design-team
Approvers: @AnshRaj112 @GuinAditi @ashmit-sinha-30
Labels: frontend, ready-for-review, priority-medium
Milestone: Sprint X.X
Estimated Review Time: 2-4 hours


This comprehensive PR template ensures thorough review, maintains high code quality standards, and facilitates effective collaboration for the KAMPYN frontend application under EXSOLVIA.

EXSOLVIA - Finding A Way Out

Summary by CodeRabbit

  • New Features

    • Added customizable styling for home, college, vendor, dish, cart, bill, and other cards.
    • Theme Studio now shows friendly card names and interactive previews with selectable cards, descriptions, and prices.
    • Added additional card types for college, cart items, and billing components.
  • Security & Reliability

    • Payment invoice operations now use a secure backend connection.
    • Improved payment configuration checks to prevent exposed secret credentials.
  • Maintenance

    • Updated sitemap timestamps and route configuration for the latest release.

@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kampyn-frontend Ready Ready Preview Aug 15, 2026 12:04pm

@github-actions

Copy link
Copy Markdown

👋 Hi @AnshRaj112 Thanks for opening this pull request!

Your changes are now in the review queue. The team will go through the implementation, and we’ll follow up with feedback or questions if needed.

In the meantime, please ensure the PR description is complete and includes relevant context, testing notes, and screenshots (if applicable). This helps us review faster and more effectively. 🚀

@AnshRaj112

Copy link
Copy Markdown
Owner Author

Fixes Issue #226

@AnshRaj112
AnshRaj112 merged commit 5e01fe6 into main Aug 15, 2026
10 of 11 checks passed
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 57a15821-98b8-4b32-8f11-c04b7c783b6b

📥 Commits

Reviewing files that changed from the base of the PR and between 232341b and 5afb278.

📒 Files selected for processing (18)
  • next-env.d.ts
  • public/sitemap.xml
  • src/app/components/cart/BillBox/BillBox.module.scss
  • src/app/components/cart/shared/BillBoxForm.tsx
  • src/app/components/food/DishListItem/DishListItem.module.scss
  • src/app/components/food/DishListItem/DishListItemV2.tsx
  • src/app/food/HomePage.tsx
  • src/app/food/[slug]/styles/CollegePage.module.scss
  • src/app/food/styles/Home.module.scss
  • src/app/home/HomeGatewayClient.tsx
  • src/app/home/page.module.scss
  • src/app/tenant-studio/ThemeStudioPanel.tsx
  • src/config/environment.ts
  • src/config/razorpay.ts
  • src/theme/componentHooks.css
  • src/theme/registry.ts
  • src/utils/razorpayInvoiceApi.ts
  • src/utils/razorpaySetup.ts

📝 Walkthrough

Walkthrough

The PR adds per-card theme configuration and Theme Studio previews, routes Razorpay invoice operations through the backend proxy, removes client-side secret handling, and updates generated route and sitemap metadata.

Changes

Card theme customization

Layer / File(s) Summary
Card theme catalog and hooks
src/theme/registry.ts, src/theme/componentHooks.css
The card catalog now includes college, cartItem, and bill. Shared hooks define per-card variables and hover overrides.
Card component identifiers
src/app/components/cart/shared/BillBoxForm.tsx, src/app/components/food/DishListItem/DishListItemV2.tsx, src/app/food/HomePage.tsx, src/app/home/HomeGatewayClient.tsx
Card markup now identifies bill, cart item, dish, college, and home theme components.
Component-specific card styles
src/app/components/cart/BillBox/BillBox.module.scss, src/app/components/food/DishListItem/DishListItem.module.scss, src/app/food/[slug]/styles/CollegePage.module.scss, src/app/food/styles/Home.module.scss, src/app/home/page.module.scss
Card styles use component-specific CSS variables with existing fallback values for base, hover, focus, and checkout states.
Theme Studio card gallery
src/app/tenant-studio/ThemeStudioPanel.tsx
Theme Studio shows readable card labels and selectable card previews with card-specific variables, descriptions, and prices.

Razorpay backend proxy

Layer / File(s) Summary
Client configuration and secret validation
src/config/environment.ts, src/config/razorpay.ts
Environment validation rejects exposed secret variables. Razorpay client configuration detects public keys without storing secrets.
Backend-proxy initialization
src/utils/razorpaySetup.ts
Initialization reports backend-proxy usage, hides secret status, and disables direct Razorpay API access.
Proxy invoice operations
src/utils/razorpayInvoiceApi.ts
Invoice fetch, PDF retrieval, and invoice creation now use backend requests and return backend response data.

Generated metadata updates

Layer / File(s) Summary
Generated route and sitemap metadata
next-env.d.ts, public/sitemap.xml
The route type import uses .next/types/routes.d.ts. Sitemap lastmod timestamps are updated to August 15, 2026.

Estimated code review effort: 4 (Complex) | ~45 minutes

Suggested reviewers: ashmit-sinha-30, guinaditi

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fixes/ISSUE-KMP-006

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

src/theme/componentHooks.css

Parsing error: Invalid left-hand side in assignment expression. (10:1)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

👋 Hi @AnshRaj112 your PR has been merged successfully

Great work on this contribution! Your changes have been reviewed and merged into main. Thanks for the thought, effort, and care you put into improving the codebase.

If you spot any follow-ups or have ideas for further enhancements, feel free to jump right back in. Contributions like this keep the project moving forward. 🚀

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.

1 participant