Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft seller dashboard #42

Open
wants to merge 85 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
eea6e59
Implement frontend authentication and authorization
sevelinCa Jun 20, 2024
6b64a43
implementation of orderStatus charts
Ismaelmurekezi Jun 23, 2024
91e4872
badge and some analytics components
Ismaelmurekezi Jun 26, 2024
040254b
Update setup.yml
Ismaelmurekezi Jun 26, 2024
1dea594
Update setup.yml
Ismaelmurekezi Jun 26, 2024
08e442a
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
a5b800a
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
771ff75
Update setup.yml
Ismaelmurekezi Jun 26, 2024
82ca3f5
Update setup.yml
Ismaelmurekezi Jun 26, 2024
b57dc38
Update setup.yml
Ismaelmurekezi Jun 26, 2024
eb0be0f
Update setup.yml
Ismaelmurekezi Jun 26, 2024
ad681da
Update setup.yml
Ismaelmurekezi Jun 26, 2024
0fe6207
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
4e95661
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
93915cf
fixing bug
Ismaelmurekezi Jun 26, 2024
f7877f6
testing badge percentage
Ismaelmurekezi Jun 26, 2024
08b6017
Update README.md
Ismaelmurekezi Jun 26, 2024
8a16641
Update README.md
Ismaelmurekezi Jun 26, 2024
120e71c
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
a780ede
Update README.md
Ismaelmurekezi Jun 26, 2024
cb4be84
Update README.md
Ismaelmurekezi Jun 26, 2024
6633bc9
Update README.md
Ismaelmurekezi Jun 26, 2024
6cf6aab
Update README.md
Ismaelmurekezi Jun 26, 2024
4fdbd58
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
39c73ba
fixing badge
Ismaelmurekezi Jun 26, 2024
d20c262
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
0e30b4b
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
5917267
Update README.md
Ismaelmurekezi Jun 26, 2024
4634856
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
0a8a2b2
fix bug
Ismaelmurekezi Jun 26, 2024
4f4ffc6
fixing bugs
Ismaelmurekezi Jun 26, 2024
7e8287b
changing code cov
Ismaelmurekezi Jun 26, 2024
8359b84
fixing arrangement of status
Ismaelmurekezi Jun 28, 2024
cecff75
created CI file
iamfrerot Jun 19, 2024
81ba3cf
created CD file
iamfrerot Jun 19, 2024
1efdf3c
implementation of orderStatus charts
Ismaelmurekezi Jun 23, 2024
bf8fecc
badge and some analytics components
Ismaelmurekezi Jun 26, 2024
0019272
Update setup.yml
Ismaelmurekezi Jun 26, 2024
ca3e2f6
Update setup.yml
Ismaelmurekezi Jun 26, 2024
c20a725
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
ded1eb6
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
0642238
Update setup.yml
Ismaelmurekezi Jun 26, 2024
56ae05e
Update setup.yml
Ismaelmurekezi Jun 26, 2024
709b264
Update setup.yml
Ismaelmurekezi Jun 26, 2024
b3377ac
Update setup.yml
Ismaelmurekezi Jun 26, 2024
2d88021
Update setup.yml
Ismaelmurekezi Jun 26, 2024
cb4825b
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
f414625
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
513cc4c
fixing bug
Ismaelmurekezi Jun 26, 2024
2be975f
testing badge percentage
Ismaelmurekezi Jun 26, 2024
830ee4d
Update README.md
Ismaelmurekezi Jun 26, 2024
0ebe8af
Update README.md
Ismaelmurekezi Jun 26, 2024
3cb3fbb
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
3fcb4a3
Update README.md
Ismaelmurekezi Jun 26, 2024
6d44bd6
Update README.md
Ismaelmurekezi Jun 26, 2024
59d0d6d
Update README.md
Ismaelmurekezi Jun 26, 2024
34492ba
Update README.md
Ismaelmurekezi Jun 26, 2024
691bd93
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
5e8e660
fixing badge
Ismaelmurekezi Jun 26, 2024
eb8ceb2
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
b776153
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
51dbcf0
Update README.md
Ismaelmurekezi Jun 26, 2024
29253c9
Update Check.test.tsx
Ismaelmurekezi Jun 26, 2024
7154f93
fix bug
Ismaelmurekezi Jun 26, 2024
73e55bc
fixing bugs
Ismaelmurekezi Jun 26, 2024
5af4da8
changing code cov
Ismaelmurekezi Jun 26, 2024
c92e74e
fixing arrangement of status
Ismaelmurekezi Jun 28, 2024
3145d14
intergrating admin dashboard with backend apis
Ismaelmurekezi Jul 5, 2024
31f3ab2
solving conflicts
Ismaelmurekezi Jul 5, 2024
a96cde5
addind seller dashboard ft
sevelinCa Jul 9, 2024
d12de10
fix wishlist
ManziPatrick Jul 11, 2024
a9ce699
Merge pull request #23 from atlp-rwanda/fix-wishlist
berniceu Jul 11, 2024
4a7bc71
adding analytic components for seller
Ismaelmurekezi Jul 11, 2024
58a3d51
fixing issue for login
Ismaelmurekezi Jul 11, 2024
3dc7793
adding table to be displayed whenever analytics component is clicked
Ismaelmurekezi Jul 17, 2024
b4bfcf0
add product page
sevelinCa Jul 17, 2024
f0182dc
Merge remote-tracking branch 'origin/ft-analytics' into ft-seller-das…
sevelinCa Jul 17, 2024
a18af82
Merge branch 'ft-analytics' of https://github.com/atlp-rwanda/e-comme…
Jul 17, 2024
e03741d
add product page
sevelinCa Jul 17, 2024
c170324
add email sent
sevelinCa Jul 17, 2024
547556e
Merge with analytics components
sevelinCa Jul 18, 2024
65e7fae
fix seller dashboard
sevelinCa Jul 18, 2024
a9db433
added chat
Celestin25 Jul 19, 2024
5038ecc
Merge branch 'develop' into ft-seller-dashboard
Celestin25 Jul 19, 2024
3580dc0
Update index.tsx
Celestin25 Jul 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Setup and coverage badge

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Packages
run: npm install

- name: Build
run: npm run build

test-and-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Packages
run: npm install

- name: Run Tests with Coverage
run: npm test -- --coverage

- name: List coverage directory
run: ls -la coverage

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}


8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This repository is for multi-vendor E-commerce website

[![codecov](https://codecov.io/gh/atlp-rwanda/e-commerce-crafters-fn/branch/ft-analytics/graph/badge.svg?token=ZB2U3Q435X)](https://codecov.io/gh/atlp-rwanda/e-commerce-crafters-fn)





12 changes: 12 additions & 0 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1719411534857" clover="3.2.0">
<project timestamp="1719411534857" name="All files">
<metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1" elements="6" coveredelements="5" complexity="0" loc="3" ncloc="3" packages="1" files="1" classes="1"/>
<file name="Check.tsx" path="/home/ismael/e-commerce-crafters-fn/src/pages/Check.tsx">
<metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="2" type="stmt"/>
<line num="6" count="2" type="stmt"/>
</file>
</project>
</coverage>
2 changes: 2 additions & 0 deletions coverage/coverage-final.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"/home/ismael/e-commerce-crafters-fn/src/pages/Check.tsx": {"path":"/home/ismael/e-commerce-crafters-fn/src/pages/Check.tsx","statementMap":{"0":{"start":{"line":3,"column":14},"end":{"line":18,"column":1}},"1":{"start":{"line":4,"column":36},"end":{"line":4,"column":51}},"2":{"start":{"line":6,"column":2},"end":{"line":17,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":14},"end":{"line":3,"column":15}},"loc":{"start":{"line":3,"column":20},"end":{"line":18,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":7},"end":{"line":15,"column":44}},"type":"binary-expr","locations":[{"start":{"line":15,"column":7},"end":{"line":15,"column":16}},{"start":{"line":15,"column":20},"end":{"line":15,"column":44}}],"line":15}},"s":{"0":1,"1":2,"2":2},"f":{"0":2},"b":{"0":[2,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f4fd7aef176069564e1f9661c4424964c5c13b81"}
}
145 changes: 145 additions & 0 deletions coverage/lcov-report/Check.tsx.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@

<!doctype html>
<html lang="en">

<head>
<title>Code coverage report for Check.tsx</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="prettify.css" />
<link rel="stylesheet" href="base.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(sort-arrow-sprite.png);
}
</style>
</head>

<body>
<div class='wrapper'>
<div class='pad1'>
<h1><a href="index.html">All files</a> Check.tsx</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>3/3</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">50% </span>
<span class="quiet">Branches</span>
<span class='fraction'>1/2</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>1/1</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>3/3</span>
</div>


</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input type="search" id="fileSearch">
</div>
</template>
</div>
<div class='status-line high'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
<a name='L2'></a><a href='#L2'>2</a>
<a name='L3'></a><a href='#L3'>3</a>
<a name='L4'></a><a href='#L4'>4</a>
<a name='L5'></a><a href='#L5'>5</a>
<a name='L6'></a><a href='#L6'>6</a>
<a name='L7'></a><a href='#L7'>7</a>
<a name='L8'></a><a href='#L8'>8</a>
<a name='L9'></a><a href='#L9'>9</a>
<a name='L10'></a><a href='#L10'>10</a>
<a name='L11'></a><a href='#L11'>11</a>
<a name='L12'></a><a href='#L12'>12</a>
<a name='L13'></a><a href='#L13'>13</a>
<a name='L14'></a><a href='#L14'>14</a>
<a name='L15'></a><a href='#L15'>15</a>
<a name='L16'></a><a href='#L16'>16</a>
<a name='L17'></a><a href='#L17'>17</a>
<a name='L18'></a><a href='#L18'>18</a>
<a name='L19'></a><a href='#L19'>19</a>
<a name='L20'></a><a href='#L20'>20</a>
<a name='L21'></a><a href='#L21'>21</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from "react";
&nbsp;
const Check = () =&gt; {
const [showExtra, setShowExtra] = useState(false);
&nbsp;
return (
&lt;div className="flex flex-col items-start font-poppins text-sm"&gt;
&lt;h1 className="text-gray-800"&gt;
If you want to part of the program click button below
&lt;/h1&gt;
&lt;button className="py-2 px-7 ml-10 mt-5 bg-purple-700 text-white rounded-md hover:bg-purple-500"&gt;
Confirm
&lt;/button&gt;
&lt;h1&gt;hello there&lt;/h1&gt;
{showExtra &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >&lt;h2&gt;You are welcome&lt;/h2&gt;}</span>
&lt;/div&gt;
);
};
&nbsp;
export default Check;
&nbsp;</pre></td></tr></table></pre>

<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T14:18:54.854Z
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
prettyPrint();
};
</script>
<script src="sorter.js"></script>
<script src="block-navigation.js"></script>
</body>
</html>

124 changes: 124 additions & 0 deletions coverage/lcov-report/Test.tsx.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@

<!doctype html>
<html lang="en">

<head>
<title>Code coverage report for Test.tsx</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="prettify.css" />
<link rel="stylesheet" href="base.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(sort-arrow-sprite.png);
}
</style>
</head>

<body>
<div class='wrapper'>
<div class='pad1'>
<h1><a href="index.html">All files</a> Test.tsx</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">50% </span>
<span class="quiet">Statements</span>
<span class='fraction'>1/2</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>0/0</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Functions</span>
<span class='fraction'>0/1</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">50% </span>
<span class="quiet">Lines</span>
<span class='fraction'>1/2</span>
</div>


</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input type="search" id="fileSearch">
</div>
</template>
</div>
<div class='status-line medium'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
<a name='L2'></a><a href='#L2'>2</a>
<a name='L3'></a><a href='#L3'>3</a>
<a name='L4'></a><a href='#L4'>4</a>
<a name='L5'></a><a href='#L5'>5</a>
<a name='L6'></a><a href='#L6'>6</a>
<a name='L7'></a><a href='#L7'>7</a>
<a name='L8'></a><a href='#L8'>8</a>
<a name='L9'></a><a href='#L9'>9</a>
<a name='L10'></a><a href='#L10'>10</a>
<a name='L11'></a><a href='#L11'>11</a>
<a name='L12'></a><a href='#L12'>12</a>
<a name='L13'></a><a href='#L13'>13</a>
<a name='L14'></a><a href='#L14'>14</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react'
&nbsp;
const Test = <span class="fstat-no" title="function not covered" >()</span> =&gt; {
<span class="cstat-no" title="statement not covered" > return (</span>
&lt;div className="flex flex-col items-start font-poppins text-sm"&gt;
&lt;h1 className="text-gray-800"&gt;
If you want to part of the program click button below
&lt;/h1&gt;
&lt;button className=' py-2 px-7 ml-10 mt-5 bg-purple-700 text-white rounded-md hover:bg-purple-500'&gt;Confirm&lt;/button&gt;
&lt;/div&gt;
);
}
&nbsp;
export default Test</pre></td></tr></table></pre>

<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-25T13:01:25.786Z
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
prettyPrint();
};
</script>
<script src="sorter.js"></script>
<script src="block-navigation.js"></script>
</body>
</html>

Loading
Loading