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

atlp-rwanda / champs-ec-fe / 722b653d-2a18-4d78-8760-52617b278d76

29 Jun 2024 08:16PM UTC coverage: 81.59% (+1.6%) from 80.013%
722b653d-2a18-4d78-8760-52617b278d76

Pull #37

circleci

janet-barbie
feat(seller products):update and delete
Pull Request #37: feat(seller products):update and delete

148 of 194 branches covered (76.29%)

Branch coverage included in aggregate %.

197 of 240 new or added lines in 11 files covered. (82.08%)

3 existing lines in 1 file now uncovered.

2480 of 3027 relevant lines covered (81.93%)

2.62 hits per line

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

88.57
/src/app/sellers/products_/page.tsx
1
"use client"
1✔
2
import React, { useState } from 'react';
1✔
3
import Table from '@/components/Table';
1✔
4
import { GreenButton } from '@/components/Button';
1✔
5
import DashboardHeader from '@/components/DashboardHeader';
1✔
6
import ProductPopup from '@/components/Product/AddProducts';
1✔
7
function SellerProductView() {
1✔
8
  const [isPopupOpen, setIsPopupOpen] = useState(false);
1✔
9
  const handleOpenPopup = () => {
1✔
NEW
10
    setIsPopupOpen(true);
×
NEW
11
  };
×
12
  const handleClosePopup = () => {
1✔
NEW
13
    setIsPopupOpen(false);
×
NEW
14
  };
×
15
  return (
1✔
16
    <>
1✔
17
      <div className='w-full flex justify-center overflow-scroll'>
1✔
18
        <div className='w-full max-w-[80%] flex flex-col justify-center align-middle'>
1✔
19
          <div className="flex justify-between">
1✔
20
            <h2 className="text-xl text-black">Seller products view</h2>
1✔
21
            <div>
1✔
22
              <GreenButton name="New product" handle={handleOpenPopup} />
1✔
23
            </div>
1✔
24
          </div>
1✔
25
          <div className='w-full'>
1✔
26
            <Table />
1✔
27
          </div>
1✔
28
        </div>
1✔
29
      </div>
1✔
30
      {isPopupOpen && <ProductPopup isOpen={isPopupOpen} onClose={handleClosePopup} />}
1✔
31
    </>
1✔
32
  );
1✔
33
}
1✔
34
export default SellerProductView;
1✔
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

© 2025 Coveralls, Inc