Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warehouse-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
warehouse-management
Commits
6279caaa
Commit
6279caaa
authored
May 13, 2021
by
Darrick Yong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix styling and search
parent
d0251490
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
24 deletions
+28
-24
.DS_Store
.DS_Store
+0
-0
nisum.jpeg
frontend/public/nisum.jpeg
+0
-0
header.css
frontend/public/stylesheets/header.css
+13
-6
Image.jsx
frontend/src/components/atoms/Image.jsx
+2
-2
Search.jsx
frontend/src/components/filter/Search.jsx
+7
-11
Header.jsx
frontend/src/components/header/Header.jsx
+4
-2
OrderIndexItem.jsx
frontend/src/components/order/OrderIndexItem.jsx
+2
-1
orders_reducer.js
frontend/src/reducers/entities/orders_reducer.js
+0
-2
No files found.
.DS_Store
View file @
6279caaa
No preview for this file type
frontend/public/nisum.jpeg
0 → 100644
View file @
6279caaa
148 KB
frontend/public/stylesheets/header.css
View file @
6279caaa
...
...
@@ -11,6 +11,12 @@
font-weight
:
700
;
}
.nisum-logo
{
margin-right
:
10px
;
width
:
100px
;
height
:
50px
;
}
.header-module
{
position
:
absolute
;
top
:
0
;
...
...
@@ -27,12 +33,6 @@
align-items
:
center
;
}
.header
img
{
margin-right
:
10px
;
width
:
32px
;
height
:
32px
;
}
.user
{
cursor
:
pointer
;
position
:
relative
;
...
...
@@ -46,6 +46,13 @@
color
:
#CCCDCF
;
}
.user
img
{
margin-right
:
10px
;
width
:
32px
;
width
:
32px
;
border-radius
:
50%
;
}
.dropdown
{
cursor
:
auto
;
width
:
100%
;
...
...
frontend/src/components/atoms/Image.jsx
View file @
6279caaa
const
Image
=
({
src
})
=>
(
<
img
src=
{
src
}
alt=
""
/>
const
Image
=
({
className
,
src
})
=>
(
<
img
className=
{
className
}
src=
{
src
}
alt=
""
/>
)
export
default
Image
;
\ No newline at end of file
frontend/src/components/filter/Search.jsx
View file @
6279caaa
...
...
@@ -27,17 +27,13 @@ const Search = ({ orders, setOrdersToShow, setFiltersOn }) => {
setByError
(
true
);
}
else
{
const
searchResult
=
{
allIds
:
[],
byId
:
{}
};
const
searchedOrder
=
searchBy
===
searchOptions
[
0
]
?
orders
.
byId
[
searchInput
]
:
searchBy
===
searchOptions
[
1
]
?
orders
.
byOrderId
[
searchInput
]
:
null
;
if
(
searchedOrder
)
{
searchResult
.
allIds
.
push
(
searchedOrder
.
id
);
searchResult
.
byId
[
searchedOrder
.
id
]
=
searchedOrder
;
orders
.
allIds
.
map
(
id
=>
{
const
order
=
orders
.
byId
[
id
];
if
(
order
.
orderId
.
toLowerCase
().
includes
(
searchInput
.
toLowerCase
()))
{
searchResult
.
allIds
.
push
(
id
);
searchResult
.
byId
[
id
]
=
orders
.
byId
[
id
];
}
})
if
(
searchBy
.
length
)
{
setOrdersToShow
(
searchResult
);
}
...
...
frontend/src/components/header/Header.jsx
View file @
6279caaa
...
...
@@ -6,9 +6,11 @@ import User from "./User";
const
Header
=
({
isLoggedIn
,
user
,
logout
})
=>
{
return
(
<
div
className=
"header"
>
<
div
>
Ascend
</
div
>
<
div
>
<
Image
className=
"nisum-logo"
src=
"./nisum.jpeg"
/>
</
div
>
{
/* <div>Ascend</div> */
}
<
div
className=
"header-module"
>
{
/* <Image src="./logo.svg" /> */
}
<
div
>
Warehouse Management
</
div
>
</
div
>
<
div
>
{
isLoggedIn
?
<
User
user=
{
user
.
user
}
/>
:
null
}
</
div
>
...
...
frontend/src/components/order/OrderIndexItem.jsx
View file @
6279caaa
...
...
@@ -11,6 +11,7 @@ const OrderIndexItem = ({
setExpandAll
,
})
=>
{
const
{
orderId
,
status
}
=
order
;
const
idToShow
=
orderId
.
slice
(
-
7
).
toUpperCase
();
const
[
showDetails
,
setShowDetails
]
=
useState
(
false
);
...
...
@@ -44,7 +45,7 @@ const OrderIndexItem = ({
className=
{
`oii-drop ${showDetails ? "rotate" : ""}`
}
onClick=
{
handleDropDown
}
/>
<
div
className=
"oii-num"
>
{
`Order #: ${
orderId
}`
}
</
div
>
<
div
className=
"oii-num"
>
{
`Order #: ${
idToShow
}`
}
</
div
>
</
div
>
{
actions
}
</
div
>
...
...
frontend/src/reducers/entities/orders_reducer.js
View file @
6279caaa
...
...
@@ -17,12 +17,10 @@ const OrdersReducer = (oldState = initialState, action) => {
const
orderState
=
{
byId
:
{},
allIds
:
[],
byOrderId
:
{},
};
action
.
orders
.
forEach
(
order
=>
{
orderState
.
allIds
.
push
(
order
.
id
);
orderState
.
byId
[
order
.
id
]
=
order
;
orderState
.
byOrderId
[
order
.
orderId
]
=
order
;
})
return
orderState
;
case
UPDATE_ORDER
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment