Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
cb194bc
Nikhil Routh migrate src/components/timelog css to module css
nikhilrouth Jul 18, 2025
22144db
fixed the darkmode for the Timelog component
nikhilrouth Jul 26, 2025
2268213
fixed the lint issue for Popupbar
nikhilrouth Jul 26, 2025
554fec9
Suggested changes after reviewing PR #3770
ShravyaKudlu Jul 29, 2025
156c207
Added dark mode for BM Dashboard Activity Log
slidracoon72 Sep 3, 2025
abb968e
Resolve merge: remove package-lock.json and accept theirs yarn.lock
slidracoon72 Sep 23, 2025
5a530a9
Merge branch 'development' into rahul-bmdash-ui-added-dark-mode
slidracoon72 Sep 23, 2025
ded44e1
Your clear PR message
uhakruthi1 Sep 26, 2025
3157cd9
Fixed chart design and added percentage label for Y-axis
vamsidharpanithi Sep 27, 2025
2ee779c
Update yarn.lock
vamsidharpanithi Sep 27, 2025
2cd4554
Merge development branch with chart improvements
vamsidharpanithi Sep 27, 2025
139753e
Merge branch 'development' into rahul-bmdash-ui-added-dark-mode
slidracoon72 Sep 29, 2025
635cde5
fix
uhakruthi1 Sep 29, 2025
4649912
feat:Implemented financials KPI buttons
Juhitha-Reddy Oct 2, 2025
1ee8b76
Merge branch 'development' into Juhitha_impl_financials_kpi_buttons_p…
Juhitha-Reddy Oct 2, 2025
72e2456
feat(skills-dashboard): add compact responsive radar chart + grid lay…
Namitha7070 Oct 2, 2025
40dc8c2
Fix the colors for the dark mode and some Spelling Mistakes
dipti95 Oct 3, 2025
cf5c8c7
Dipti Listing and bidding dashboard: make the two bar graphs
dipti95 Oct 10, 2025
21b106b
Remove regex expression
dipti95 Oct 10, 2025
c70321a
mostwastedmaterials
uhakruthi1 Oct 15, 2025
4842121
SimpleToolChart
uhakruthi1 Oct 23, 2025
380d4ec
Fixed hardcoded API endpoints to fix on deployement
shashank-madan Oct 23, 2025
e77d645
Enhance PieChart component to use project IDs as domain for color scale
pavanputti Oct 26, 2025
03cdd3a
Fixed the tomorrow filter and organized the labels to be similar. Als…
ChiragBellara Oct 29, 2025
c7c72c8
fixed the page crash issue in the equipementlist component
sumedhkumar96 Nov 5, 2025
47cab03
WIP: rental chart logic
naiduajaykumar Nov 12, 2025
0689022
adding basic initial setup for the widget
Nov 15, 2025
da7fc8b
.css to module.css
aayushshetty12 Nov 15, 2025
1518cf3
adding more things to the feature
Nov 20, 2025
db16f30
added dark mode
aayushshetty12 Nov 20, 2025
5eb3ddd
added Material Usage Chart in BM dashboard
sumedhkumar96 Nov 20, 2025
e378400
modified css to show legend and made other improvements
sumedhkumar96 Nov 20, 2025
1587378
longest-open-issues
uhakruthi1 Nov 23, 2025
2a783b9
fixes
uhakruthi1 Nov 23, 2025
36ae9ab
dark mode fix for most suscpectible
uhakruthi1 Nov 24, 2025
0b1e515
added mobile responsiveness
Nov 26, 2025
900e0d5
added darkmode
Nov 28, 2025
f1bd619
dark
uhakruthi1 Nov 30, 2025
986cdf9
initial commit, started work on dev branch
CasstielP Dec 6, 2025
e4bbf5d
remove duplicate css properties
CasstielP Dec 6, 2025
56263fc
Merge remote-tracking branch 'origin/development' into bhavpreet_ep_d…
Dec 10, 2025
ff427a7
Combine the mini filter and big filter, still need to add api for rep…
JuliaHa0902 Dec 13, 2025
d056730
clear filter
uhakruthi1 Dec 13, 2025
d715570
feat: Add 100 character limit to team name inputs
Dec 16, 2025
9c7a98f
Remove unused code, change teamcode input in formatted report to subm…
JuliaHa0902 Dec 18, 2025
0bb9b08
Merge remote-tracking branch 'origin/development' into bhavpreet_ep_d…
Dec 19, 2025
4024173
finishing the feature and connecting to the frontend
Dec 19, 2025
002b426
removing the side arrow
Dec 19, 2025
c016086
Merge with development, fix minor permission issue with edit filter
JuliaHa0902 Dec 20, 2025
52e3354
Fix yarn lock file
JuliaHa0902 Dec 20, 2025
b5333ca
Fixed route permissions to allow access to CP routes
shashank-madan Dec 22, 2025
c85115c
added pie char with filters
aayushshetty12 Dec 24, 2025
8a2bc63
Added filtering criteria for online events
shashank-madan Dec 25, 2025
4b7aa4f
added complete filter and dark mode
aayushshetty12 Dec 27, 2025
152d549
added margin to no data message
aayushshetty12 Dec 27, 2025
ed80105
added margin to no data message
aayushshetty12 Dec 27, 2025
b0e5a7a
refactor css into module.css
KH07 Dec 27, 2025
1277203
refactor css into module.css
KH07 Dec 27, 2025
d3c9019
fix: replace localhost url with dynamic ENDPOINTS variable
adithya-6101 Dec 28, 2025
079da99
Merge branch 'development' into shashank-madan-community-portal-filte…
shashank-madan Dec 28, 2025
cf44e1c
Merge branch 'development' into shashank-madan-community-portal-filte…
shashank-madan Dec 29, 2025
2d2417b
Refactor LBDashboard
dipti95 Dec 31, 2025
5d20762
Clean up LBDashboard.jsx by removing comments
dipti95 Dec 31, 2025
d6a2482
Merge branch 'development' into Dipti_Listing_and_bidding_dashboard_m…
dipti95 Dec 31, 2025
6bea3f9
Clean up LBDashboard by removing unused imports
dipti95 Dec 31, 2025
ec94c11
Refactor getClassNames function and cleanup code
dipti95 Dec 31, 2025
3752c13
Add Leaderboard styles in Leaderboard.module.css
dipti95 Dec 31, 2025
5c9c287
Change Leaderboard CSS import to module style
dipti95 Dec 31, 2025
61b2e72
add a definition field
KH07 Dec 31, 2025
e5cc8c1
multi-year
uhakruthi1 Dec 31, 2025
366700b
remove the old css file
KH07 Jan 1, 2026
8d72e74
Fixed dark mode css issue
Juhitha-Reddy Jan 1, 2026
f8c8b7f
Merge remote-tracking branch 'origin/development' into bhavpreet_ep_d…
Jan 2, 2026
58c478f
Line chart fix
naiduajaykumar Dec 5, 2025
9df9d9e
Create access page for Kitchen and Inventory portal
bhanuanishakkineni Jan 3, 2026
3de6a5d
Updated yarn file
naiduajaykumar Jan 3, 2026
bf3a07e
Fixed merge conflicts
naiduajaykumar Jan 3, 2026
92d3e4e
Delete src/components/LeaderBoard/Leaderboard.css
dipti95 Jan 4, 2026
b44b63e
Refactor className assignment for trophy text
dipti95 Jan 4, 2026
a804b09
Add trophyTextWhite class for white text color
dipti95 Jan 4, 2026
7429c8e
Merge branch 'development' into Dipti_Fix_colors_for_the_Dark_mode
dipti95 Jan 4, 2026
01ef6f0
Rename PopUpBar.css to PopUpBar.module.css
dipti95 Jan 4, 2026
127f2b5
Refactor PopUpBar to use CSS modules
dipti95 Jan 4, 2026
c48099e
Rename TeamReport.css to TeamReport.module.css
dipti95 Jan 4, 2026
aae3d9d
Refactor TeamReport to use CSS modules and debounce search
dipti95 Jan 4, 2026
37acd47
Change CSS import to use module styles
dipti95 Jan 4, 2026
1f46216
Add unit tests for Kitchen and Inventory Portal
bhanuanishakkineni Jan 4, 2026
2b77b5f
Merge development into feature branch and resolve lockfile conflicts
CasstielP Jan 4, 2026
37b2e9c
Merge pull request #4499 from OneCommunityGlobal/Ajay-darkmode-longes…
one-community Jan 4, 2026
6a0c49f
Merge pull request #4406 from OneCommunityGlobal/Ajay-fixed-the-renta…
one-community Jan 4, 2026
a11d4b2
Merge pull request #4644 from OneCommunityGlobal/adithya_hotflix_popu…
one-community Jan 4, 2026
ab540c7
Merge pull request #4645 from OneCommunityGlobal/shashank-madan-commu…
one-community Jan 4, 2026
76d68af
Merge pull request #4643 from OneCommunityGlobal/aayush_global_distri…
one-community Jan 4, 2026
a21dae2
dark-mode stylings added
shashank-madan Jan 4, 2026
43cf060
fix merge conflicts
shashank-madan Jan 4, 2026
af06791
improved code quality
shashank-madan Jan 4, 2026
22c58ed
rebuilt packages
shashank-madan Jan 4, 2026
bb5db2c
Merge pull request #4257 from OneCommunityGlobal/shashank-madan-hgn-s…
one-community Jan 4, 2026
85818c5
Merge pull request #4580 from OneCommunityGlobal/bhavpreet_ep_down_up…
one-community Jan 5, 2026
77085c2
Venkataramanan. Fix header logo alignment
Jan 5, 2026
b23b904
Venkataramanan. fix styling for adaptive adjustment
Jan 5, 2026
cb1c2f4
Merge branch 'development' into fix/landing-3997
uhakruthi1 Jan 5, 2026
8c4c2ee
Make Issues Breakdown chart responsive for small screens
uhakruthi1 Jan 5, 2026
d8fa64e
Venkataramanan: Fix leaderboard hrs alignment issue
Jan 5, 2026
f489f63
done
uhakruthi1 Jan 5, 2026
b6f9da1
Merge pull request #4197 from OneCommunityGlobal/Dipti_Listing_and_bi…
one-community Jan 5, 2026
bc7d93a
changed
uhakruthi1 Jan 5, 2026
bb922df
Merge branch 'development' into venkataramanan_fix_header_logo_alignment
Venk-rgb Jan 5, 2026
f63d197
css changed
uhakruthi1 Jan 5, 2026
2a8fa47
Make issue charts container responsive for small screens
uhakruthi1 Jan 5, 2026
5dcfc18
Merge pull request #4673 from OneCommunityGlobal/venkataramanan_fix_l…
one-community Jan 5, 2026
269b4bd
Make issue charts container responsive for small screens
uhakruthi1 Jan 5, 2026
6f255b0
fix merge conflicts and fix code to center header logo
Jan 5, 2026
05193cf
Merge pull request #4671 from OneCommunityGlobal/venkataramanan_fix_h…
one-community Jan 5, 2026
4ae9c75
Resolve merge conflicts in routes and yarn lock
uhakruthi1 Jan 5, 2026
1c1d560
Resolve merge conflicts in package, lockfiles, and routes
uhakruthi1 Jan 5, 2026
d9dfcde
Resolve merge conflicts in package, lockfiles, and routes
uhakruthi1 Jan 5, 2026
7944b25
Resolve merge conflicts in package, lockfiles, and routes
uhakruthi1 Jan 5, 2026
619106c
css changed
uhakruthi1 Jan 6, 2026
d552f18
Resolve merge conflicts for issue charts and lockfiles
uhakruthi1 Jan 6, 2026
2875892
Resolve merge conflicts for issue charts and lockfiles
uhakruthi1 Jan 6, 2026
42a7d21
changed
uhakruthi1 Jan 6, 2026
0732d4f
css changed
uhakruthi1 Jan 6, 2026
3ea807a
Merge branch 'development' into chirag-communityportal-bugfix-tomorro…
ChiragBellara Jan 6, 2026
bcfb983
css changes
uhakruthi1 Jan 6, 2026
3bb2350
changed
uhakruthi1 Jan 6, 2026
fe28f2a
Fixed merge errors and updated code to work with the new screen.
ChiragBellara Jan 6, 2026
a565431
changed
uhakruthi1 Jan 6, 2026
8990579
fixed merge conflicts with the dev branch
sumedhkumar96 Jan 6, 2026
39d1e8d
fixed merge conflicts with the dev branch
sumedhkumar96 Jan 6, 2026
2ffaea6
fixed merge conflicts with the dev branch
sumedhkumar96 Jan 6, 2026
d053e25
Remove unnecessary console.log statements from UserSkillsProfile
Namitha7070 Jan 6, 2026
69b103f
Remove console statements from skills dashboard components
Namitha7070 Jan 6, 2026
a9002f5
Merge branch 'development' into feature/skills-dashboard-radar-chart
Namitha7070 Jan 6, 2026
5fc4bb2
,
uhakruthi1 Jan 6, 2026
38a8684
chnages
uhakruthi1 Jan 7, 2026
4985248
chnaged
uhakruthi1 Jan 7, 2026
dfe061a
Fix dark mode dropdown selected text visibility
uhakruthi1 Jan 7, 2026
0e02b01
Fix dark mode dropdown selected text visibility
uhakruthi1 Jan 7, 2026
d56fad6
Merge pull request #4430 from OneCommunityGlobal/sumedh-feature-view-…
one-community Jan 7, 2026
d3e4197
Merge pull request #4336 from OneCommunityGlobal/sumedh-bugfix-equipm…
one-community Jan 7, 2026
50a1215
Merge branch 'development' into kristin-add-info-icon-for-activity-at…
KH07 Jan 7, 2026
489d01d
Refactor search functionality in TeamReport component
dipti95 Jan 7, 2026
5e6d6f8
changed
uhakruthi1 Jan 7, 2026
186ae0c
changed
uhakruthi1 Jan 7, 2026
33730e9
Fix collaboration category dropdown UI and filtering
uhakruthi1 Jan 7, 2026
ca9ac23
Fix collaboration category dropdown UI and filtering
uhakruthi1 Jan 7, 2026
0eb0353
Resolve lockfile conflicts and update Collaboration test
uhakruthi1 Jan 7, 2026
d0f0b59
Remove Collaboration.css to comply with CSS module policy
uhakruthi1 Jan 7, 2026
6852f0f
Fix Top N input handling to prevent value concatenation
uhakruthi1 Jan 7, 2026
7ee4e1a
create KIDashboard folder and move KIDashboard component there
bhanuanishakkineni Jan 7, 2026
645f1e9
Venkataramanan: fix blue square display sorting order
Jan 7, 2026
5719ae3
Merge pull request #4682 from OneCommunityGlobal/venkataramanan_fix_b…
one-community Jan 7, 2026
5d1636f
Update yarn.lock
uhakruthi1 Jan 8, 2026
c88bbfd
Fix date range validation and rendering in SimpleToolChart
uhakruthi1 Jan 8, 2026
a7c9b28
merge conflicts
uhakruthi1 Jan 8, 2026
3c5e4a5
Merge pull request #4139 from OneCommunityGlobal/rahul-bmdash-ui-adde…
one-community Jan 8, 2026
181d0fd
Resolved Merge Conflicts and updated accordingly
nikhilrouth Jan 8, 2026
b49d723
Fixed test cases
nikhilrouth Jan 8, 2026
46d2343
Fixed TimeEntry Tests
nikhilrouth Jan 8, 2026
1d8b485
Merge with development
JuliaHa0902 Jan 8, 2026
bb59d8f
Venkataramanan: Fix wbs resources dropdown to show only active members
Jan 8, 2026
e410f76
Merge pull request #4686 from OneCommunityGlobal/venkataramanan_fix_w…
one-community Jan 8, 2026
8bf0d6b
fix(userStatus): User Activation Deactivation
DiyaWadhwani Jan 9, 2026
b6dbe13
fix(endDate): display end date accurately
DiyaWadhwani Jan 9, 2026
db8f076
Merge pull request #4516 from OneCommunityGlobal/Casstiel_fix_page_er…
one-community Jan 9, 2026
7bfae87
Merge pull request #4161 from OneCommunityGlobal/Dipti_Fix_colors_for…
one-community Jan 9, 2026
e431c66
Bump jspdf from 3.0.4 to 4.0.0
dependabot[bot] Jan 9, 2026
4419047
Merge with development
JuliaHa0902 Jan 9, 2026
9461992
Merge pull request #4629 from OneCommunityGlobal/julia-combine-weekly…
one-community Jan 9, 2026
eb21be0
modularised src/common files to module css and updated the tests
nikhilrouth Jan 9, 2026
28ecd59
resloved new merge conflict issues
nikhilrouth Jan 9, 2026
e506d35
resloved yarn merge conflicts
nikhilrouth Jan 9, 2026
c6da761
updated the yarn
nikhilrouth Jan 10, 2026
b6bab53
fixed the path in Input.jsx file
nikhilrouth Jan 10, 2026
b4eb6ba
resloved mergr conflict with yarn
nikhilrouth Jan 10, 2026
398415d
Fix merge regressions in skills dashboard
Namitha7070 Jan 10, 2026
3199adf
resolved merge conflict
aayushshetty12 Jan 10, 2026
e51a9ba
Merge pull request #4688 from OneCommunityGlobal/Diya_Fix_UserStatus_…
one-community Jan 10, 2026
11f9877
Merge pull request #4654 from OneCommunityGlobal/kristin-add-info-ico…
one-community Jan 11, 2026
11eebd1
Merge pull request #4169 from OneCommunityGlobal/bm-issues-dark-mode-…
one-community Jan 11, 2026
a054e63
Merge pull request #4446 from OneCommunityGlobal/feature/simple-tool-…
one-community Jan 11, 2026
8658373
Merge pull request #4155 from OneCommunityGlobal/feature/skills-dashb…
one-community Jan 11, 2026
3600bcd
Merge pull request #4565 from OneCommunityGlobal/feature/limit-team-n…
one-community Jan 11, 2026
cd6d58b
check
uhakruthi1 Jan 11, 2026
a446a48
checks
uhakruthi1 Jan 11, 2026
eb028bd
checks
uhakruthi1 Jan 11, 2026
09b84a4
Merge branch 'development' into multi-year-alignement-3869
uhakruthi1 Jan 11, 2026
a9eca75
checks
uhakruthi1 Jan 11, 2026
858b167
Merge branch 'development' into feature/darkmode-ui-fix-grouped-bar
uhakruthi1 Jan 11, 2026
5de4857
check
uhakruthi1 Jan 11, 2026
9967012
Merge branch 'development' into fix/most-wasted-materials-routing
uhakruthi1 Jan 11, 2026
719cfb5
Merge remote-tracking branch 'origin/development' into fix/most-waste…
uhakruthi1 Jan 11, 2026
c0fc914
Merge pull request #4304 from OneCommunityGlobal/chirag-communityport…
one-community Jan 11, 2026
1718cf8
Merge pull request #4437 from OneCommunityGlobal/fix/most-wasted-mate…
one-community Jan 11, 2026
82265cd
Merge pull request #4444 from OneCommunityGlobal/feature/darkmode-ui-…
one-community Jan 11, 2026
7a48cc3
Merge pull request #4690 from OneCommunityGlobal/nikhil_migrate_src_c…
one-community Jan 11, 2026
8c87df1
Resolved merge conflicts
nikhilrouth Jan 11, 2026
5eb29e5
Merge pull request #4672 from OneCommunityGlobal/dependabot/npm_and_y…
EvianTan Jan 11, 2026
29a8280
Merge branch 'development' into feature/longest-open-issues-fixes
uhakruthi1 Jan 11, 2026
b7666a6
Merge pull request #4441 from OneCommunityGlobal/feature/longest-open…
one-community Jan 12, 2026
cd32b8b
Merge pull request #4651 from OneCommunityGlobal/multi-year-alignemen…
one-community Jan 12, 2026
714ab5c
conflicts
uhakruthi1 Jan 12, 2026
2994455
Merge pull request #4120 from OneCommunityGlobal/fix/landing-3997
one-community Jan 12, 2026
d3667ad
Merge pull request #3770 from OneCommunityGlobal/nikhil_migrate_src_T…
one-community Jan 12, 2026
d4db252
Merge branch 'development' into button-clear-filters-3869
uhakruthi1 Jan 12, 2026
169a6f2
conflict
uhakruthi1 Jan 12, 2026
f248444
conflicts
uhakruthi1 Jan 12, 2026
2b937c0
conflicts
uhakruthi1 Jan 12, 2026
15c542b
conflicts
uhakruthi1 Jan 12, 2026
2836a2c
Merge pull request #4550 from OneCommunityGlobal/button-clear-filters…
one-community Jan 12, 2026
c2ab4d9
Venkataramanan fix: active/inactive button color in user management page
Jan 12, 2026
3711279
Merge pull request #4702 from OneCommunityGlobal/venkataramanan_fix_a…
one-community Jan 13, 2026
9d1464b
Venkataramanan fix: back to top icon to be a floating icon
Jan 14, 2026
1e4a616
Merge pull request #4704 from OneCommunityGlobal/venkataramanan_fix_b…
one-community Jan 14, 2026
232f047
Bump undici from 7.16.0 to 7.18.2
dependabot[bot] Jan 14, 2026
773883e
Bump diff from 5.2.0 to 8.0.3
dependabot[bot] Jan 14, 2026
448d473
Venkataramanan: Fix intangible time to be blue in color in leaderboard
Jan 14, 2026
56d2b1b
Merge pull request #4710 from OneCommunityGlobal/venkataramanan_fix_l…
one-community Jan 14, 2026
f2d657a
Merge pull request #4152 from OneCommunityGlobal/Juhitha_impl_financi…
one-community Jan 15, 2026
3bd76df
Merge pull request #4133 from OneCommunityGlobal/sai_moola_bargraphRi…
one-community Jan 15, 2026
792b822
Merge pull request #4427 from OneCommunityGlobal/aayush_dark_mode_bui…
one-community Jan 15, 2026
5730cfc
Merge pull request #4664 from OneCommunityGlobal/kitchen-and-inventor…
one-community Jan 15, 2026
39618a3
Venkataramanan fix: WBS back button to go directly to WBS
Jan 15, 2026
d726237
Merge pull request #4709 from OneCommunityGlobal/dependabot/npm_and_y…
EvianTan Jan 18, 2026
aa16d10
Merge pull request #4708 from OneCommunityGlobal/dependabot/npm_and_y…
EvianTan Jan 18, 2026
1329864
Merge pull request #4283 from OneCommunityGlobal/siva_fix_pie_chart_c…
one-community Jan 18, 2026
0c62abb
Venkataramanan fix: Sonarqube issue
Jan 19, 2026
d016672
Venkataramanan: Fix Sonarqube issue
Jan 19, 2026
2281ca6
Merge pull request #4715 from OneCommunityGlobal/venkataramanan_fix_w…
one-community Jan 19, 2026
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
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script type="module" src="/src/index.jsx"></script>
<a class="top" href="#">Back to Top ↑</a>
<a class="back-to-top" href="#" aria-label="Back to top">
</a>
</body>
</html>
2,458 changes: 1,953 additions & 505 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@react-leaflet/core": "^2.1.0",
"@reduxjs/toolkit": "^2.4.0",
"@sentry/browser": "^9.15.0",
"@tanstack/react-query": "^5.85.3",
"@tanstack/react-query": "^5.90.16",
"@tinymce/miniature": "^6.0.0",
"@tinymce/tinymce-react": "^6.1.0",
"ajv": "^8.0.0",
Expand All @@ -54,7 +54,7 @@
"date-fns": "^2.14.0",
"date-fns-tz": "^2.0.1",
"dayjs": "^1.11.13",
"diff": "^5.0.0",
"diff": "^8.0.3",
"dompurify": "^3.2.5",
"elliptic": "^6.6.1",
"font-awesome": "^4.7.0",
Expand All @@ -65,7 +65,7 @@
"html2canvas": "^1.4.1",
"jest": "^30.2.0",
"jquery": "^3.7.1",
"jspdf": "^3.0.3",
"jspdf": "^4.0.0",
"jwt-decode": "^2.2.0",
"leaflet": "^1.9.4",
"leaflet.heat": "^0.2.0",
Expand Down Expand Up @@ -206,4 +206,4 @@
],
"**/*.{css,scss,sass}": "stylelint"
}
}
}
39 changes: 33 additions & 6 deletions public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,33 @@ body.bm-dashboard-dark .page-item.active .page-link {
}

/* Fix the position of the header at the top */
.top {
position: fixed;
right: 10px;
bottom: 10px;
}
.back-to-top {
position: fixed;
bottom: 24px;
right: 24px;

width: 48px;
height: 48px;

display: flex;
align-items: center;
justify-content: center;

background-color: #2A1B3D;
color: #ffffff;

border-radius: 50%;
font-size: 22px;
text-decoration: none;

box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
z-index: 1000;
}

.back-to-top:hover {
transform: translateY(-4px);
opacity: 0.9;
}

/* Allow the page content to scroll horizontally */
.container-fluid {
Expand All @@ -339,4 +361,9 @@ body.bm-dashboard-dark .page-item.active .page-link {
/* Hide the horizontal scrollbar */
.container-fluid::-webkit-scrollbar {
display: none;
}
}

.tab-content {
background-color: transparent;
border: none;
}
2 changes: 1 addition & 1 deletion src/actions/authActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import jwtDecode from 'jwt-decode';
import axios from 'axios';
import httpService from '../services/httpService';
import config from '../config.json';
import { ENDPOINTS } from '~/utils/URL';
import { ENDPOINTS } from '../utils/URL';
import { GET_ERRORS } from '../constants/errors';
import {
SET_CURRENT_USER,
Expand Down
8 changes: 8 additions & 0 deletions src/actions/bmdashboard/projectActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ export const fetchBMProjects = () => {
});
};
};

export const getProjectGlobalDistribution = async (payload) => {
const url = ENDPOINTS.PROJECT_GLOBAL_DISTRIBUTION

const res = await axios.get(url, {params: payload});

return res.data
};
1 change: 1 addition & 0 deletions src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export function getProjectById(projectId) {
};
}


export function getProjectsByUser(userId) {
const request = httpService.get(`${APIEndpoint}/projects/user/${userId}`);

Expand Down
118 changes: 118 additions & 0 deletions src/actions/weeklySummariesFilterAction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
import { ENDPOINTS } from '~/utils/URL';
import axios from 'axios';
import { normalizeFilter } from "~/utils/weeklySummariesFilterHelper";

export const weeklySummariesFiltersApi = createApi({
reducerPath: "weeklySummariesFiltersApi",
baseQuery: fetchBaseQuery({
prepareHeaders: (headers) => {
const token = axios.defaults.headers.common.Authorization;
if (token) headers.set("Authorization", token);
return headers;
},
}),
tagTypes: ["WeeklySummariesFilters"], // <-- Add tag type
endpoints: (builder) => ({

// ---------------------------------------
// GET Filter List
// ---------------------------------------
getWeeklySummariesFilters: builder.query({
query: () => ENDPOINTS.WEEKLY_SUMMARIES_FILTERS,
transformResponse: (response) => {
const filterList = response;
const updatedFilterChoices = [];

filterList.forEach(filter => {
updatedFilterChoices.push(normalizeFilter(filter));
});

return updatedFilterChoices;
},
providesTags: ["WeeklySummariesFilters"], // <-- Cache tag
}),

// ---------------------------------------
// CREATE New Filter
// ---------------------------------------
createWeeklySummariesFilter: builder.mutation({
query: ({data}) => ({
url: ENDPOINTS.WEEKLY_SUMMARIES_FILTERS,
method: "POST",
body: data,
}),
invalidatesTags: ["WeeklySummariesFilters"], // <-- Refresh cache
}),

// ---------------------------------------
// UPDATE Existing Filter
// ---------------------------------------
updateWeeklySummariesFilter: builder.mutation({
query: ({ id, data }) => ({
url: ENDPOINTS.WEEKLY_SUMMARIES_FILTER_BY_ID(id),
method: "PATCH",
body: data,
}),
invalidatesTags: ["WeeklySummariesFilters"], // <-- Refresh cache
}),

// ---------------------------------------
// REPLACE Existing Filter
// ---------------------------------------
replaceWeeklySummariesFilter: builder.mutation({
query: ({ id, data }) => ({
url: ENDPOINTS.WEEKLY_SUMMARIES_FILTER_BY_ID(id),
method: "PUT",
body: data,
}),
invalidatesTags: ["WeeklySummariesFilters"], // <-- Refresh cache
}),

// ---------------------------------------
// DELETE Existing Filter
// ---------------------------------------
deleteWeeklySummariesFilter: builder.mutation({
query: ({ id }) => ({
url: ENDPOINTS.WEEKLY_SUMMARIES_FILTER_BY_ID(id),
method: "DELETE",
}),
invalidatesTags: ["WeeklySummariesFilters"], // <-- Refresh cache
}),

// ---------------------------------------
// UPDATE Existing Filter with Replaced Team codes
// ---------------------------------------
updateFiltersWithReplacedTeamCodes: builder.mutation({
query: ({oldTeamCodes, newTeamCode}) => ({
url: ENDPOINTS.WEEKLY_SUMMARIES_FILTER_REPLACE_CODES,
method: "POST",
body: { oldTeamCodes, newTeamCode },
}),
invalidatesTags: ["WeeklySummariesFilters"], // <-- Refresh cache
}),

// ---------------------------------------
// UPDATE Existing Filter with Individual Codes changes
// ---------------------------------------
updateFiltersWithIndividualCodesChange: builder.mutation({
query: ({oldTeamCode, newTeamCode, userId}) => ({
url: ENDPOINTS.WEEKLY_SUMMARIES_FILTER_REPLACE_INDIVIDUAL_CODES,
method: "POST",
body: { oldTeamCode, newTeamCode, userId },
}),
invalidatesTags: ["WeeklySummariesFilters"], // <-- Refresh cache
}),

}),
});

export const {
useGetWeeklySummariesFiltersQuery,
useCreateWeeklySummariesFilterMutation,
useUpdateWeeklySummariesFilterMutation,
useReplaceWeeklySummariesFilterMutation,
useDeleteWeeklySummariesFilterMutation,
useUpdateFiltersWithReplacedTeamCodesMutation,
useUpdateFiltersWithIndividualCodesChangeMutation,
} = weeklySummariesFiltersApi;
2 changes: 2 additions & 0 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ function UpdateDocumentTitle() {
{ pattern: /^\/Logout$/, title: 'Logout' },
{ pattern: /^\/forcePasswordUpdate\/[^/]+$/, title: 'Force Password Update' },
{ pattern: /^\/$/, title: `Dashboard - ${fullName}` },
{ pattern: /^\/kitchenandinventory\/login$/, title: 'Kitchen and Inventory Login' },
{ pattern: /^\/kitchenandinventory$/, title: 'Kitchen and Inventory Dashboard' },
{ pattern: /.*/, title: 'HGN APP' }, // Default case
{
pattern: /^\/communityportal\/activity\/activityid\/feedback$/,
Expand Down
73 changes: 44 additions & 29 deletions src/components/AutoUpdate/AutoUpdate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,63 @@ function AutoUpdate() {
headers: noCacheHeaders,
};

// Create the hash request with proper URL handling for test environment
const hashRequest = (() => {
try {
return new Request('/hash.txt');
} catch (error) {
// In test environment, use a fallback URL
return new Request('http://localhost/hash.txt');
const resolveHashUrl = () => {
const isTestEnv =
(typeof import.meta !== 'undefined' && import.meta.env?.MODE === 'test') ||
(typeof process !== 'undefined' && process.env?.NODE_ENV === 'test');

if (isTestEnv || typeof window === 'undefined' || !window.location) {
return null;
}
})();
return new URL('/hash.txt', window.location.origin).toString();
};

useEffect(() => {
fetch(hashRequest, requestParams)
.then(response => {
response.text().then(text => {
const hashUrl = resolveHashUrl();
if (!hashUrl || typeof fetch === 'undefined') {
return undefined;
}

let isMounted = true;
fetch(hashUrl, requestParams)
.then(response => response.text())
.then(text => {
if (isMounted) {
setHash(text);
});
}
})
.catch(err => {
console.error(err); // eslint-disable-line no-console
});

return () => {
isMounted = false;
};
}, []);

useEffect(() => {
if (hash !== undefined) {
const interval = setInterval(() => {
fetch(hashRequest, requestParams)
.then(response => {
response.text().then(text => {
if (text !== hash) {
setUpdated(true);
}
});
})
.catch(err => {
console.error(err); // eslint-disable-line no-console
});
}, 5 * MINUTE);
return () => clearInterval(interval);
if (hash === undefined) {
return undefined;
}

const hashUrl = resolveHashUrl();
if (!hashUrl || typeof fetch === 'undefined') {
return undefined;
}

// No cleanup needed if the hash is undefined.
return () => {};
const interval = setInterval(() => {
fetch(hashUrl, requestParams)
.then(response => response.text())
.then(text => {
if (text !== hash) {
setUpdated(true);
}
})
.catch(err => {
console.error(err); // eslint-disable-line no-console
});
}, 5 * MINUTE);
return () => clearInterval(interval);
}, [hash]);

if (!updated) return null;
Expand Down
17 changes: 6 additions & 11 deletions src/components/BMDashboard/BMDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { fetchBMProjects } from '../../actions/bmdashboard/projectActions';
import ProjectsList from './Projects/ProjectsList';
import ProjectSelectForm from './Projects/ProjectSelectForm';
import BMError from './shared/BMError';
import './BMDashboard.module.css';
import styles from './BMDashboard.module.css';

export function BMDashboard() {
const [isError, setIsError] = useState(false);
Expand Down Expand Up @@ -170,18 +170,13 @@ export function BMDashboard() {

return (
<Container
className={`justify-content-center align-items-center bm-dashboard-container ${
darkMode ? 'bm-dashboard-dark' : 'bm-dashboard-light'
fluid
className={`justify-content-center align-items-center ${
darkMode ? styles.darkBmDashboardMain : ''
}`}
>
<header
className={`bm-dashboard__header ${
darkMode ? 'bm-dashboard__header-dark' : 'bm-dashboard__header-light'
}`}
>
<h1 className={darkMode ? 'text-light' : 'text-dark'}>
Building and Inventory Management Dashboard
</h1>
<header className={`${darkMode ? styles.darkBmDashboardHeader : styles.bmDashboardHeader}`}>
<h1>Building and Inventory Management Dashboard</h1>
</header>
<main
className={`bm-dashboard-main ${
Expand Down
Loading
Loading