• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atlp-rwanda / champs-ec-fe / 45ab2d4f-9b09-41ff-b9b5-5e1af2365990

17 Jul 2024 03:05PM UTC coverage: 84.511%. First build
45ab2d4f-9b09-41ff-b9b5-5e1af2365990

push

circleci

web-flow
Production release (#70)

* champs-ec-fe initial project setup

* Configure project tailwindcss

* chore(ESLint & precommit setup):setting up ESLint & precommit

* ch(redux): Configuring react redux

- Set up Redux store for Next.js app
- Modify _app.js to wrap app with Redux Provider
- Pass Redux store instance to Provider
- Update store configuration based on Redux Toolkit
- Created welcome slice

* feat(login)-userlogin

* Feat(sign up): User must be able to Register to the website

* feat(login)-userlogin

* ft(test-setup)

* feat(auto-tests-setup)

* ft(setting up ci tools)

* ch(deployment):add deployment git action

* bg(login)-addingtests

* bgfix(signup):Test for signup page

* feat(Two Factor Authentication):Seller authentication and OTP verification

* feat(UpdatePassword):User is able to update password

* feat(google-login):Integrate google login authentication

* bug(two-factor-authentication): bug fix for two factor authentication feature

* feat(admin)-assigningroles

* feat(password Reset):Users should be presented with reset password link

* feat: Enable sellers to create products from dashboard
- Added product creation form with basic fields (name, description, price,currency,Product Image).
- Integrated backend API endpoints for product creation and validation.
-Enhanced product Validations for good user Experience

* feat(admin)-disable-users

* Feat(Landing-Page):implements the landing page for the E-champs

* ft/axios-interceptor

* feat(reviews):add-product-reviews

* feat(cart management): add functionality for user cart mamangement

* Bgfix(Navabar): The login user and user type the issue about Menu

* ft/logout

* feat(seller products):update and delete

* feat(track-orders):add implementation of buyer track order status

* Configure app notifications

* fix(profiles) #187300200 Users should be able to view and edit their profiles

-addresses all required... (continued)

232 of 319 branches covered (72.73%)

Branch coverage included in aggregate %.

3571 of 4181 new or added lines in 68 files covered. (85.41%)

3571 of 4181 relevant lines covered (85.41%)

2.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/utils/socket.ts
1
'use client';
1✔
2

1✔
3
import { io } from 'socket.io-client';
1✔
4

1✔
5
const URL: string = process.env.NEXT_PUBLIC_SOCKET_APP_ENV as string;
1✔
6
const socket = io(URL);
1✔
7

1✔
8
// export const socketInit = (token: string) => {
1✔
9
//   function decodeToken(token: string) {
1✔
10
//     const [header, payload, signature] = token.split('.');
1✔
11
//     const decodedPayload = atob(payload);
1✔
12
//     const parsedPayload = JSON.parse(decodedPayload);
1✔
13
//     return parsedPayload;
1✔
14
//   }
1✔
15

1✔
16
//   const decodedtokenone = decodeToken(token);
1✔
17
//   const userID = decodedtokenone.id;
1✔
18

1✔
19
//   socket.on('connect', () => {
1✔
20
//     socket.emit('joinRoom', userID);
1✔
21
//     console.log('client connected successful', userID);
1✔
22
//   });
1✔
23

1✔
24
//   socket.on('productUnavailable', (data) => {
1✔
25
//     console.log('Product wishe', data);
1✔
26
//     showToast('New Notification', 'info');
1✔
27
//   });
1✔
28
// };
1✔
29

1✔
30
export const decodeToken = (token: string) => {
1✔
NEW
31
  const [header, payload, signature] = token.split('.');
×
NEW
32
  const decodedPayload = atob(payload);
×
NEW
33
  const parsedPayload = JSON.parse(decodedPayload);
×
NEW
34
  return parsedPayload;
×
NEW
35
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc