Skip to content

Commit 08e158c

Browse files
Merge pull request #3394 from OneCommunityGlobal/development
Frontend Release to Main [4.10]
2 parents a170963 + ad2aa77 commit 08e158c

46 files changed

Lines changed: 5795 additions & 306 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
1-
*.png
2-
*.svg
3-
*.test.js
4-
*.test.jsx
5-
src/actions/**
6-
src/App.css
7-
src/config.json
1+
# =======================================================================
2+
# ⚠️ DO NOT ADD NEW ENTRIES ⚠️
3+
# Only the files and folders listed below are allowed to be ignored.
4+
# This .gitignore is locked down to maintain consistency across the team.
5+
# To propose changes, please open a discussion or PR with justification.
6+
# =======================================================================
7+
8+
# Ignore build folders
9+
/node_modules/
10+
/public/
811

12+
# Ignore test files inside /src/components
913
src/__tests__/**
14+
/src/components/**/__test__/**/*
15+
/src/components/**/__tests__/**/*
16+
/src/reducers/**/__tests__/**/*
1017

11-
/public/
12-
/build/
13-
/node_modules/
18+
src/components/BMDashboard/_tests_/BMDashboard.test.jsx
19+
src/components/Login/ForgotPassword.test.jsx
20+
src/components/Login/LoginPage.test.js
21+
src/components/PermissionsManagement/PermissionsManagement.test.js
22+
src/components/Reports/PeopleReport/components/PeopleTasksPieChart.test.jsx
23+
24+
# Ignore folders in /src
25+
src/actions/**
1426
src/components/Badge/**
1527
src/components/common/**
28+
src/components/Dashboard/**
29+
src/components/EmailSubscribeForm/**
1630
src/components/Projects/**
1731
src/components/SummaryManagement/**
1832
src/components/TaskEditSuggestions/**
1933
src/components/TeamMemberTasks/**
20-
src/components/Timelog/**
34+
src/components/Teams/TeamMembersPopup.jsx
2135
src/components/UserManagement/**
22-
src/components/UserProfile/**
23-
src/components/EmailSubscribeForm/**
24-
src/components/Dashboard/**
25-
src/components/Teams/TeamMembersPopup.jsx
36+
src/components/UserProfile/**

src/components/Collaboration/JobFormBuilder.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ h2 {
7979
margin-top: 15px;
8080
}
8181

82-
input,
82+
/* input,
8383
textarea,
8484
select {
85-
/* width: 95%; */
85+
width: 95%;
8686
padding: 10px;
8787
margin-top: 5px;
8888
margin-bottom: 15px;
@@ -94,7 +94,7 @@ select {
9494
textarea {
9595
height: 80px;
9696
resize: vertical;
97-
}
97+
} */
9898

9999
.new-field-section {
100100
background-color: #d9d9d9;
@@ -142,10 +142,10 @@ textarea {
142142
/* gap: 10px; */
143143
}
144144

145-
.field-options input,
145+
/* .field-options input,
146146
textarea {
147147
width: 95%;
148-
}
148+
} */
149149

150150
/* Individual Option Item */
151151
.option-item {

src/components/CommunityPortal/CPDashboard.jsx

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
11
import { useState, useEffect } from 'react';
2-
import {
3-
Container,
4-
Row,
5-
Col,
6-
Card,
7-
CardBody,
8-
Button,
9-
Input,
10-
Dropdown,
11-
DropdownToggle,
12-
DropdownMenu,
13-
DropdownItem,
14-
} from 'reactstrap';
15-
import { useHistory } from 'react-router-dom'; // For React Router v5
2+
import { Container, Row, Col, Card, CardBody, Button, Input } from 'reactstrap';
163
import './CPDashboard.css';
174
import { FaCalendarAlt, FaMapMarkerAlt, FaUserAlt } from 'react-icons/fa';
185

196
export function CPDashboard() {
207
const [events, setEvents] = useState([]);
218
const [search, setSearch] = useState('');
22-
const [dropdownOpen, setDropdownOpen] = useState(false);
23-
const history = useHistory(); // Use useHistory for navigation
249

2510
useEffect(() => {
2611
const mockEvents = [
@@ -52,12 +37,6 @@ export function CPDashboard() {
5237
setEvents(mockEvents);
5338
}, []);
5439

55-
const toggleDropdown = () => setDropdownOpen(!dropdownOpen);
56-
57-
const handleNavigation = path => {
58-
history.push(path); // Navigate to the selected path
59-
};
60-
6140
return (
6241
<Container fluid className="dashboard-container">
6342
<header className="dashboard-header">
@@ -72,7 +51,7 @@ export function CPDashboard() {
7251
className="dashboard-search"
7352
/>
7453
</div>
75-
<Dropdown isOpen={dropdownOpen} toggle={toggleDropdown} className="community-dropdown">
54+
{/* <Dropdown isOpen={dropdownOpen} toggle={toggleDropdown} className="community-dropdown">
7655
<DropdownToggle caret color="secondary">
7756
Community Portal
7857
</DropdownToggle>
@@ -82,7 +61,7 @@ export function CPDashboard() {
8261
<DropdownItem onClick={() => handleNavigation('/about')}>About Us</DropdownItem>
8362
<DropdownItem onClick={() => handleNavigation('/contact')}>Contact</DropdownItem>
8463
</DropdownMenu>
85-
</Dropdown>
64+
</Dropdown> */}
8665
</div>
8766
</header>
8867

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.header-wrapper {
2+
height: fit-content;
3+
width: clamp(100vw, 0.1rem + 1vw, 100%);
4+
}
5+
6+
.navbar {
7+
z-index: 100;
8+
white-space: nowrap;
9+
}
10+
11+
.timer-message-section {
12+
display: flex;
13+
align-items: center;
14+
justify-content: space-between;
15+
width: 100%;
16+
gap: 1rem;
17+
}
18+
19+
.nav-links {
20+
align-items: center;
21+
}
22+
23+
.redBackGroupHeader {
24+
z-index: 10;
25+
bottom: 0;
26+
right: 0;
27+
position: relative;
28+
height: 30px;
29+
text-align: center;
30+
vertical-align: middle;
31+
background: #ff4d4f;
32+
border-radius: 40px;
33+
color: #fff;
34+
padding: 3px 6px;
35+
max-width: 39px;
36+
font-size: 1rem;
37+
min-width: 29px;
38+
}
39+
40+
.owner-message {
41+
margin-right: 3rem;
42+
}
43+
44+
@media (max-width: 1500px) {
45+
.dashboard-text-link {
46+
font-size: 14px;
47+
}
48+
49+
.owner-message {
50+
margin-right: 0;
51+
}
52+
}
53+
54+
@media (max-width: 1400px) {
55+
.timer-message-section {
56+
display: flex;
57+
width: 0;
58+
margin-right: 0;
59+
}
60+
61+
.owner-message {
62+
display: none;
63+
}
64+
}

0 commit comments

Comments
 (0)