Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
70c4e39
updated layout for create a conversion modal, changed scripts from CR…
minhtriet359 Jun 30, 2025
de6ee87
changed state in create conversion modal to be compitable with new up…
minhtriet359 Jul 7, 2025
ffaf4a9
created an overview page for daily patterns
minhtriet359 Jul 8, 2025
e72bbd7
changed component folder name from days to daily-pattern
minhtriet359 Jul 8, 2025
e437035
Initial UI for the weekly conversion patterns feature
evan-carey Jul 13, 2025
9d2d38a
added UI for for daily pattern overview page and create modal
minhtriet359 Jul 18, 2025
69e9433
Merge branch 'oed-csumb-su25:development' into evan-carey/weekly-pattern
evan-carey Jul 19, 2025
9f65376
feat(weeks): add help tooltips to week views; change /weeks page link…
evan-carey Jul 19, 2025
f4a0cc5
Merge remote-tracking branch 'oed-backend/taliaBranch' into evan-care…
evan-carey Jul 19, 2025
3cae2f2
Merge branch 'development' of https://github.com/oed-csumb-su25/OED-f…
PRINCESANCHEZ Jul 19, 2025
5691a31
Add fr/es translations for Edit Conversion UI
PRINCESANCHEZ Jul 19, 2025
77d031c
Merge remote-tracking branch 'backend/taliaBranch' into triet_overvie…
minhtriet359 Jul 21, 2025
47b3130
feat(weeks): complete weekly conversion patterns feature
evan-carey Jul 23, 2025
6af16b5
Merge remote-tracking branch 'oed-backend/taliaBranch' into evan-care…
evan-carey Jul 23, 2025
8835272
fix(weeks): create week API request fails because `id` is included
evan-carey Jul 23, 2025
dbfd046
revert changes to gitignore and docker-compose
evan-carey Jul 23, 2025
63deb77
fix(database): weeks table must be created before conversion_segments…
evan-carey Jul 23, 2025
7a6e8ed
Merge remote-tracking branch 'talia/taliaBranch' into edit-conversions
PRINCESANCHEZ Jul 23, 2025
6eccbe3
created UI for day overview page and create day modal
minhtriet359 Jul 23, 2025
f13fa05
Merge remote-tracking branch 'backend/taliaBranch' into triet_overvie…
minhtriet359 Jul 23, 2025
70f0da5
hooked up day to backend
minhtriet359 Jul 23, 2025
24abf08
added check to make sure days cannot have the same name
minhtriet359 Jul 23, 2025
da3e438
hooked conversion create modal - need to connect pattern
minhtriet359 Jul 24, 2025
7fba152
Merge remote-tracking branch 'origin/evan-carey/weeks-api' into Triet…
minhtriet359 Jul 24, 2025
69c2ebb
fix merge errors
minhtriet359 Jul 24, 2025
7bb4599
hooked up create conversion to backend
minhtriet359 Jul 24, 2025
e9bdc07
revert changes to git.ignore and docker-compose.yml
minhtriet359 Jul 24, 2025
91d3d23
Merge timeVaryingConversion into edit-conversions: resolved translati…
PRINCESANCHEZ Jul 24, 2025
cdec8e0
Merge Talia’s taliaBranch into edit-conversions after resolving confl…
PRINCESANCHEZ Jul 25, 2025
92bd352
undo formatting changes to docker-compose
evan-carey Jul 26, 2025
109fd51
undo formatting change to docker-compose
evan-carey Jul 26, 2025
026b882
Address code review comments for Weeks feature
evan-carey Jul 26, 2025
22ee2c1
Revert docker-compose.yml to match development branch
evan-carey Jul 26, 2025
c089e38
Merge remote-tracking branch 'talia/taliaBranch' into edit-conversions
PRINCESANCHEZ Jul 27, 2025
a66561b
Add files via upload
Gomez-V Jul 27, 2025
3f55c76
Merge remote-tracking branch 'talia/taliaBranch' into edit-conversions
PRINCESANCHEZ Jul 28, 2025
c3a6cdb
fix(weeks): WeeksDetailComponent does not need a loading spinner
evan-carey Jul 29, 2025
16e9ee7
Edit Pattern Components
Gomez-V Jul 29, 2025
336f928
Add conversionSegments Redux API and implement split segment logic
PRINCESANCHEZ Jul 29, 2025
d441a89
Merge branch 'evan-carey/weeks-api' into evan-carey/days-edit
evan-carey Jul 30, 2025
00fa5aa
Merge remote-tracking branch 'origin/edit-conversions' into evan-care…
evan-carey Jul 30, 2025
0e79628
[wip] Edit Day feature
evan-carey Jul 30, 2025
4b4712f
move ConversionSegmentData interface to separate file for modularity
PRINCESANCHEZ Jul 30, 2025
c595d12
feat(days): Edit Day feature
evan-carey Jul 31, 2025
cc74833
chore: dead code and comments cleanup
evan-carey Jul 31, 2025
c9d87fc
Merge pull request #1 from oed-csumb-su25/evan-carey/weeks-api
evan-carey Jul 31, 2025
92dfe3a
cleanup modal state, add multi-field error handling, update API endpo…
PRINCESANCHEZ Jul 31, 2025
ca8f960
Merge remote-tracking branch 'oed-backend/taliaBranch' into evan-care…
evan-carey Aug 1, 2025
3ae7ab7
Add delete logic + i18n for field errors
PRINCESANCHEZ Aug 1, 2025
e5c3dc3
Merge remote-tracking branch 'talia/taliaBranch' into edit-conversions
PRINCESANCHEZ Aug 1, 2025
9180c06
feat: implement internationalization for day editing and segment spli…
Gomez-V Aug 1, 2025
e83f7e1
Merge branch 'backend/taliaBranch' into Triet/backend_integration
minhtriet359 Aug 1, 2025
fbbd313
Merge branch 'timeVaryingConversion' into Triet/backend_integration
minhtriet359 Aug 1, 2025
c1bebba
changed dayName to name
minhtriet359 Aug 2, 2025
9059525
Merge branch 'backend/taliaBranch' into Triet/backend_integration
minhtriet359 Aug 2, 2025
065abeb
feat(days): ability to edit day segment hours
evan-carey Aug 2, 2025
260c1dc
Merge branch 'evan-carey/days-edit' of https://github.com/oed-csumb-s…
evan-carey Aug 2, 2025
fb414b8
Merge remote-tracking branch 'oed-backend/taliaBranch' into evan-care…
evan-carey Aug 2, 2025
5e667fb
update endpoints to match server; fix bad file path on server
evan-carey Aug 2, 2025
692be81
changed all daily patterns to days
minhtriet359 Aug 2, 2025
0b2329c
fixed space indetations
minhtriet359 Aug 2, 2025
d7f33a6
Clean up EditConversionModal: fix delete edge cases, error handling, …
PRINCESANCHEZ Aug 2, 2025
c927ace
added French and Spanish translations for daily.patterns
Gomez-V Aug 3, 2025
2a190d4
made necessary naming and logic adjustments per reivew
minhtriet359 Aug 3, 2025
1e0b033
Fix datetime handling, split logic, and styling in Edit Conversion modal
PRINCESANCHEZ Aug 3, 2025
b5ac72d
Merge branch 'evan-carey/days-edit' into Triet/backend_integration
minhtriet359 Aug 3, 2025
ef3ada3
converted daily.patterns to days
minhtriet359 Aug 3, 2025
a65656c
create conversion only show warning when no pattern
minhtriet359 Aug 3, 2025
60ac3b3
Merge remote-tracking branch 'origin/Triet/backend_integration' into …
PRINCESANCHEZ Aug 3, 2025
8460566
Merge remote-tracking branch 'talia/taliaBranch' into edit-conversions
PRINCESANCHEZ Aug 3, 2025
3f4b2a4
Refactor EditConversionModal: separate segment save, centralize <hr> …
PRINCESANCHEZ Aug 3, 2025
ae66225
Refactor conversionSegmentsApi: clean up tags, remove transformRespon…
PRINCESANCHEZ Aug 3, 2025
8f4138e
fixed valid tags for page reload when edit day, added notification fo…
minhtriet359 Aug 3, 2025
3130482
fixed route mismatch for conversionSegment
minhtriet359 Aug 3, 2025
c672193
Merge remote-tracking branch 'origin/Triet/backend_integration' into …
PRINCESANCHEZ Aug 3, 2025
1c755ea
Add leading slash to sourceDestination URL and license header to conv…
PRINCESANCHEZ Aug 3, 2025
0e12b72
fixed splitting conversion not working
minhtriet359 Aug 4, 2025
f2c001c
Fix segment save validation and add -99 handling for No Pattern option
PRINCESANCHEZ Aug 4, 2025
628783d
refactor: remove unnecessary sorting from Edit and Delete segment han…
PRINCESANCHEZ Aug 4, 2025
76ec31b
Refactor: Add interface for editing conversion segments with original…
PRINCESANCHEZ Aug 4, 2025
67d6b5b
fix(days): missing translation; broken paging in segments table; cac…
evan-carey Aug 5, 2025
dd34818
fix: lint errors
evan-carey Aug 5, 2025
6bd4066
Merge remote-tracking branch 'oed-backend/taliaBranch' into evan-care…
evan-carey Aug 5, 2025
abf05d7
refactor(weeks): change Week property `weekName` to `name` to match b…
evan-carey Aug 5, 2025
ab5fcb0
Fix error handling for split and edit segment fields
PRINCESANCHEZ Aug 5, 2025
dbcc9a2
Merge remote-tracking branch 'talia/taliaBranch' into edit-conversions
PRINCESANCHEZ Aug 5, 2025
7a5b9fe
Implement split and delete functionality for time-varying conversion …
PRINCESANCHEZ Aug 5, 2025
6ed174f
Merge remote-tracking branch 'talia/taliaBranch' into edit-conversions
PRINCESANCHEZ Aug 5, 2025
1ed9ff7
Merge remote-tracking branch 'oed-backend/taliaBranch' into evan-care…
evan-carey Aug 6, 2025
2e54383
fix(days): SQL script params don't match model for deleting and updat…
evan-carey Aug 6, 2025
22c2fca
refactor(days): update front-end day segments API to match backend
evan-carey Aug 6, 2025
8dd1336
Merge remote-tracking branch 'origin/edit-conversions' into evan-care…
evan-carey Aug 6, 2025
1ad4b91
feat(days): resolve code review comments
evan-carey Aug 6, 2025
4151fbc
Merge pull request #2 from oed-csumb-su25/evan-carey/days-code-review
evan-carey Aug 6, 2025
f122842
revert docker-compose changes
minhtriet359 Aug 6, 2025
a379f72
Merge branch 'development' into development
minhtriet359 Aug 7, 2025
cb4f6e1
Merge pull request #4 from oed-csumb-su25/development
minhtriet359 Aug 7, 2025
b12aed7
Merge branch 'development' into evan-carey/days-edit
minhtriet359 Aug 7, 2025
0858d73
Merge remote-tracking branch 'oed-backend/taliaBranch' into evan-care…
evan-carey Aug 9, 2025
e9090ef
Fix typo in comment from segmentsApi to conversionSegmentsApi
PRINCESANCHEZ Aug 9, 2025
265f38f
fix(translations): remove non-translated symbols and restore colon wi…
PRINCESANCHEZ Aug 9, 2025
0293082
chore: revert changes to .gitignore and docker-compose
evan-carey Aug 9, 2025
484df8f
Merge pull request #5 from oed-csumb-su25:evan-carey/code-review
evan-carey Aug 9, 2025
96593d9
fix(weeks): address code review comments for CreateWeekModal
evan-carey Aug 9, 2025
8bc0661
fix(weeks): address code review comments for EditWeekModalComponent
evan-carey Aug 9, 2025
615b09b
fix(days): address some code review comments for DeleteDaySegment
evan-carey Aug 9, 2025
29dacf9
Refactor: remove null from weekPatternsId, add blank line, localize P…
PRINCESANCHEZ Aug 9, 2025
70953de
fix(days): address code review comments for EditDayModal
evan-carey Aug 9, 2025
dc39352
fix(conversions): a11y - add aria-label to truncated segment note cell
evan-carey Aug 9, 2025
fc4b4d9
refactor: remove ModalHeader toggle from Week and Day modals
evan-carey Aug 9, 2025
7ac9e14
style(days): center note modal on EditDayModal component
evan-carey Aug 10, 2025
d83956d
fix(days): change EditDaySegment validation according to code review
evan-carey Aug 10, 2025
ae8a7d2
feat(days): move day segment split logic to back-end
evan-carey Aug 10, 2025
f7a4991
refactor(days): use Day types for days API
evan-carey Aug 10, 2025
6d80b33
Merge pull request #6 from oed-csumb-su25/evan-carey/code-review
evan-carey Aug 10, 2025
5257b57
fix(header): route should be lowercase
evan-carey Aug 10, 2025
54ad9cf
fix(days): don't need to check if name exists when sorting days
evan-carey Aug 10, 2025
44c1ff5
fix(days): error messages shouldn't say "Please try again"
evan-carey Aug 10, 2025
b9fcd65
Merge pull request #7 from oed-csumb-su25/evan-carey/code-review
evan-carey Aug 10, 2025
174ee41
refactor: reuse "intercept" and "edit" keys from translation file
evan-carey Aug 10, 2025
69685dd
refactor: reuse "slope" translation key for conversion and day views
evan-carey Aug 10, 2025
870f074
fix(days): remove commented out code
evan-carey Aug 10, 2025
b9b3f96
Merge pull request #8 from oed-csumb-su25/evan-carey/code-review
evan-carey Aug 10, 2025
445ebdc
Refactor unnecessary styling for edit conversion modal
PRINCESANCHEZ Aug 10, 2025
ea763de
refactor: use the `useTranslate` hook in components instead of the `t…
evan-carey Aug 10, 2025
9629d4a
fix(redux/api): remove unused tag type
evan-carey Aug 10, 2025
7abdd8a
Merge pull request #9 from oed-csumb-su25/evan-carey/code-review
evan-carey Aug 10, 2025
b96ee3a
Remove refetchSegments call and simplify error notification arguments
PRINCESANCHEZ Aug 10, 2025
6df9272
Implement splitEarlier and splitLater routes, and handle -99 weekPatt…
PRINCESANCHEZ Aug 11, 2025
4eb5f9c
Add success notification and unwrap() for split/delete segment actions
PRINCESANCHEZ Aug 11, 2025
b19c9b2
Replaced intl.formatMessage with translate() for static strings witho…
PRINCESANCHEZ Aug 11, 2025
7d6afb5
Fix neutral segment warning flow and backend constraint error on dele…
PRINCESANCHEZ Aug 11, 2025
2cc09b7
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Aug 11, 2025
005cfcc
Make delete buttons hidden instead of disabled
PRINCESANCHEZ Aug 11, 2025
75b4c62
addressed required changes for conversions.ts and CreateConversionModal
minhtriet359 Aug 11, 2025
5914dfc
Merge branch 'evan-carey/days-edit' of https://github.com/oed-csumb-s…
minhtriet359 Aug 11, 2025
9d67c8b
Enable editing slope, intercept, pattern, and note when splitting con…
PRINCESANCHEZ Aug 12, 2025
1360183
Enable editing slope, intercept, pattern, and note when splitting con…
PRINCESANCHEZ Aug 12, 2025
87b3e5c
made required changes for addConversion and addDay modals
minhtriet359 Aug 12, 2025
f363755
Merge branch 'evan-carey/days-edit' of https://github.com/oed-csumb-s…
minhtriet359 Aug 12, 2025
2288a2c
Merge remote-tracking branch 'origin/evan-carey/days-edit' into edit-…
PRINCESANCHEZ Aug 13, 2025
e0dd651
Refactor EditConversionModalComponent with child components; update s…
PRINCESANCHEZ Aug 13, 2025
62a1c51
Add comment for SplitConversionSegmentPayload and fix minor indentation
PRINCESANCHEZ Aug 13, 2025
613942c
remove hardcoded string and remove minimum constraint to support -99 …
PRINCESANCHEZ Aug 13, 2025
003bce9
Centralize css styling and update translation strings
PRINCESANCHEZ Aug 14, 2025
81eed88
feat(days): show success message on splitting day segment
evan-carey Aug 14, 2025
cc25461
feat(days): show success notification on deleting a day segment
evan-carey Aug 14, 2025
8c6686c
fix(translations): "Segments Table" -> "Day Segments Table"
evan-carey Aug 14, 2025
0a0c91c
fix(translations): "week.delete.confirm" missing Spanish translation
evan-carey Aug 14, 2025
459465b
simplify handleSourceIdChange/handleDestinationIdChange and set defau…
minhtriet359 Aug 14, 2025
2babc47
Shorten reactstrap import and add modal divider in Days Edit
PRINCESANCHEZ Sep 8, 2025
5a6d6c8
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Sep 8, 2025
d1dae3a
fix: Remove unused warning modal state when closing delete segment modal
PRINCESANCHEZ Sep 8, 2025
685b5e9
Add validation to prevent split times outside segment range
PRINCESANCHEZ Sep 8, 2025
cb80349
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Sep 8, 2025
82fe7f7
Align modal table row count with other tables (20 rows)
PRINCESANCHEZ Sep 8, 2025
3c8cf92
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Sep 8, 2025
52252c6
add default row count constant for consistent pagination across table…
PRINCESANCHEZ Sep 8, 2025
ac109a5
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Sep 8, 2025
ad1b59e
Update split flow to match day behavior
PRINCESANCHEZ Sep 8, 2025
0102914
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Sep 8, 2025
c8c849a
Allow editing segment start/end with neighbor auto-update and validation
PRINCESANCHEZ Sep 11, 2025
612799c
refactor: improve datetime validation, clear errors on input, remove …
PRINCESANCHEZ Sep 11, 2025
bfaf3cd
disable save when unchanged and add success/error notifications
PRINCESANCHEZ Sep 12, 2025
615b227
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Sep 12, 2025
c5ecc50
remove unused exports
PRINCESANCHEZ Sep 12, 2025
2da5d3f
Merge branch 'edit-conversions' into evan-carey/days-edit
PRINCESANCHEZ Sep 12, 2025
576c2ae
remove edit conversion warning
huss Sep 12, 2025
26e7e0a
commenting change to address PR comment
huss Sep 12, 2025
b8ef6b5
Add error handling with showErrorNotification for neighbor segment au…
PRINCESANCHEZ Sep 12, 2025
c61046b
Update split time placeholder to use complete and move to translations
PRINCESANCHEZ Sep 12, 2025
692ed35
add comments to explain git add . usage for invalid props
PRINCESANCHEZ Sep 12, 2025
e2dd45f
Use .then/.catch for neighbor segment adjustments
PRINCESANCHEZ Sep 13, 2025
94b223b
update pattern dropdown to use translation string for no pattern
PRINCESANCHEZ Sep 14, 2025
7010c25
Skeleton for Holidays made
hugo-severino04 Apr 20, 2026
7d0e895
Added models for holidays, holidayGroupMembers, holidayInstances, and…
JZmor Apr 25, 2026
e898418
Merge branch 'ModelBranch' into ImplementingHoliday
hugo-severino04 Apr 27, 2026
e3ab892
quick fix
hugo-severino04 Apr 27, 2026
e8aaa3a
Merge branch 'ImplementingHoliday' into gettingRoutsImplemented
hugo-severino04 Apr 27, 2026
01110a4
Complete holiday and holiday instance routes
hugo-severino04 Apr 27, 2026
d7c29a4
Holiday Routes completed
hugo-severino04 Apr 29, 2026
6b9bf1b
Merge branch 'gettingRoutsImplemented' into ImplementingHoliday
hugo-severino04 Apr 29, 2026
c0f1479
Added Holiday Component folder and general component files
JSmevog1 Jun 15, 2026
daaefdb
Created starter code for the EditHolidayModalComponent.tsx
JSmevog1 Jun 17, 2026
0583ea8
added translations for holiday information to holiday.ts
JSmevog1 Jun 17, 2026
8a2b93b
added HolidayGroupInstanceViewComponent and holiday.ts and implemente…
JSmevog1 Jul 1, 2026
ed6ae5e
Deleted unnecessary holiday files that I created. Created and impleme…
JSmevog1 Jul 1, 2026
3c405e2
Added modal for displaying full holiday note and changed styles to fo…
JSmevog1 Jul 1, 2026
1bad1d3
added test data and a route to for the page to work
JSmevog1 Jul 2, 2026
e51b386
Pushing HolidayInstacePage as checkpoint before refactor. Also added …
tkakar0451 Jul 8, 2026
f8889fd
Changed style to match OED Log Messages page more and removed unneces…
JSmevog1 Jul 8, 2026
e3f22c5
changed the functionality of number of holidays to display
JSmevog1 Jul 8, 2026
6abb692
added a way to view previous holiday instance groups
JSmevog1 Jul 8, 2026
35ad080
Created create holiday instance group modal component and gave it OED…
JSmevog1 Jul 15, 2026
e8f2d0e
added holidayInstanceGroupViewComponent and edit Holiday Instance Gro…
JSmevog1 Jul 15, 2026
cbd9569
Frontend of Holiday Instance Page should be finished
tkakar0451 Jul 15, 2026
82c5d14
Edited HolidayInstanceGroupComponent to implement the view that displ…
JSmevog1 Jul 15, 2026
2d75aa9
added the ability to add a name to holiday instance groups
JSmevog1 Jul 15, 2026
c16760a
added a temp api file and added a section under the pages header tab …
JSmevog1 Jul 15, 2026
cd6d83d
Add client API slices for holidays and holiday instances
tkakar0451 Jul 19, 2026
3be965f
Merge Hugo's holiday backend (routes, models, SQL) into holiday insta…
tkakar0451 Jul 19, 2026
17453d9
Fix bad auto-merge in ConversionSegment.splitEarlier
tkakar0451 Jul 19, 2026
b130c20
Wire HolidayInstancePage to real backend via RTK Query
tkakar0451 Jul 19, 2026
43a924f
Move holiday-instances route inside AdminOutlet
tkakar0451 Jul 19, 2026
2dc91e4
Meeting 6 UI to-dos + internationalization
tkakar0451 Jul 19, 2026
88d4aa2
Added the back end holiday routes location and refresh endpoints
RoseArias Jul 22, 2026
8bbed1a
added all formattedMessages to data.ts and added translations
JSmevog1 Jul 22, 2026
f627c57
Merge remote-tracking branch 'origin/tariq-holiday-instance-page' int…
JSmevog1 Jul 22, 2026
1720750
changed holiday instances to holiday rates. Edited all translations t…
JSmevog1 Jul 22, 2026
e577db0
Implemented holiday page front end and connected it to the backend
RoseArias Jul 22, 2026
dbcb59e
Created Holiday Instance Group API and edited various files to implem…
JSmevog1 Jul 22, 2026
f3871ba
Merge remote-tracking branch 'origin/rose-holiday-page' into holidayF…
JSmevog1 Jul 24, 2026
f3e2d88
Added route for Holiday
JSmevog1 Jul 24, 2026
e5297e0
Add holiday rates to admin menu
RoseArias Jul 25, 2026
9fe20e3
Polish holiday pages and translations
RoseArias Jul 25, 2026
ef99950
deleted unnecessary test file. Made changes so that location select i…
JSmevog1 Jul 25, 2026
09e7dc3
Reverted a deletion that stopped it from working
JSmevog1 Jul 25, 2026
ef78d8f
Address code review on holidayFrontEnd base
tkakar0451 Jul 28, 2026
7e458e3
Cap holiday rate name input at the 50-char database limit
tkakar0451 Jul 29, 2026
bcde61e
Added holiday rate group to the weeks page create and edit modal. Fun…
JSmevog1 Jul 29, 2026
6eb9aed
added comments
JSmevog1 Jul 29, 2026
ffd1eb1
Fixed error code in Steve's email
JSmevog1 Jul 29, 2026
f4608d0
Adding tooltips, comments, and minor input validation to Holiday page
RoseArias Aug 2, 2026
e677f41
Fixed editing and saving web browser console error
JSmevog1 Jul 30, 2026
049787a
added todo message
JSmevog1 Jul 30, 2026
0a0b36b
Renamed holiday group folder. Added success message notification afte…
JSmevog1 Aug 3, 2026
a5f7955
Added comments and TODO's
JSmevog1 Aug 3, 2026
7cb294f
Added TODO
JSmevog1 Aug 3, 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
151 changes: 146 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"csv": "~5.3.2",
"csv-stringify": "~5.6.5",
"d3": "~7.8.5",
"date-holidays": "~3.33.0",
"dotenv": "~16.4.5",
"escape-html": "~1.0.3",
"express": "~4.19.2",
Expand Down
51 changes: 48 additions & 3 deletions src/client/app/components/HeaderButtonsComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import TooltipHelpComponent from '../components/TooltipHelpComponent';
import { clearGraphHistory } from '../redux/actions/extraActions';
import { authApi } from '../redux/api/authApi';
import { selectOEDVersion } from '../redux/api/versionApi';
import { useTranslate } from '../redux/componentHooks';
import { useAppDispatch, useAppSelector } from '../redux/reduxHooks';
import { selectHelpUrl } from '../redux/slices/adminSlice';
import { selectOptionsVisibility, toggleOptionsVisibility } from '../redux/slices/appStateSlice';
import { selectHasRolePermissions, selectIsAdmin, selectIsLoggedIn } from '../redux/slices/currentUserSlice';
import { UserRole } from '../types/items';
import { useTranslate } from '../redux/componentHooks';
import LanguageSelectorComponent from './LanguageSelectorComponent';
import TooltipMarkerComponent from './TooltipMarkerComponent';
import LoginComponent from './LoginComponent';
import TooltipMarkerComponent from './TooltipMarkerComponent';

/**
* React Component that defines the header buttons at the top of a page
Expand Down Expand Up @@ -58,12 +58,17 @@ export default function HeaderButtonsComponent() {
shouldAdminButtonDisabled: true,
shouldUsersButtonDisabled: true,
shouldGroupsButtonDisabled: true,
shouldHolidaysButtonDisabled: true,
shouldHolidayInstancesButtonDisabled: true,
shouldHolidayInstanceGroupsButtonDisabled: true,
shouldMetersButtonDisabled: true,
shouldMapsButtonDisabled: true,
shouldCSVMetersButtonDisabled: true,
shouldCSVReadingsButtonDisabled: true,
shouldUnitsButtonDisabled: true,
shouldConversionsButtonDisabled: true,
shouldDaysButtonDisabled: true,
shouldWeeksButtonDisabled: true,
shouldLogMsgButtonDisabled: true,
shouldVisualUnitMapButtonDisabled: true,
// Translated menu title that depend on whether logged in.
Expand Down Expand Up @@ -96,12 +101,17 @@ export default function HeaderButtonsComponent() {
shouldAdminButtonDisabled: pathname === '/admin',
shouldUsersButtonDisabled: pathname === '/users',
shouldGroupsButtonDisabled: pathname === '/groups',
shouldHolidaysButtonDisabled: pathname === '/holidays',
shouldHolidayInstancesButtonDisabled: pathname === '/holiday-instances',
shouldHolidayInstanceGroupsButtonDisabled: pathname === '/holiday-instance-groups',
shouldMetersButtonDisabled: pathname === '/meters',
shouldMapsButtonDisabled: pathname === '/maps',
shouldCSVMetersButtonDisabled: pathname === '/csvMeters',
shouldCSVReadingsButtonDisabled: pathname === '/csvReadings',
shouldUnitsButtonDisabled: pathname === '/units',
shouldConversionsButtonDisabled: pathname === '/conversions',
shouldDaysButtonDisabled: pathname === '/days',
shouldWeeksButtonDisabled: pathname === '/weeks',
shouldLogMsgButtonDisabled: pathname === '/logmsg',
shouldVisualUnitMapButtonDisabled: pathname === '/visual-unit'
}));
Expand Down Expand Up @@ -211,6 +221,27 @@ export default function HeaderButtonsComponent() {
to="/groups">
<FormattedMessage id='groups' />
</DropdownItem>
<DropdownItem
style={state.adminViewableLinkStyle}
disabled={state.shouldHolidayInstanceGroupsButtonDisabled}
tag={Link}
to="/holiday-instance-groups">
<FormattedMessage id='holiday.instance.groups' />
</DropdownItem>
<DropdownItem
style={state.adminViewableLinkStyle}
disabled={state.shouldHolidayInstancesButtonDisabled}
tag={Link}
to="/holiday-instances">
<FormattedMessage id='holiday.rates' />
</DropdownItem>
<DropdownItem
style={state.adminViewableLinkStyle}
disabled={state.shouldHolidaysButtonDisabled}
tag={Link}
to="/holidays">
<FormattedMessage id='holidays' />
</DropdownItem>
<DropdownItem
style={state.adminViewableLinkStyle}
disabled={state.shouldMapsButtonDisabled}
Expand All @@ -224,6 +255,20 @@ export default function HeaderButtonsComponent() {
to="/meters">
<FormattedMessage id='meters' />
</DropdownItem>
<DropdownItem
style={state.adminViewableLinkStyle}
disabled={state.shouldDaysButtonDisabled}
tag={Link}
to="/days">
<FormattedMessage id='patterns.daily' />
</DropdownItem>
<DropdownItem
style={state.adminViewableLinkStyle}
disabled={state.shouldWeeksButtonDisabled}
tag={Link}
to="/weeks">
<FormattedMessage id='patterns.weekly' />
</DropdownItem>
<DropdownItem
style={state.adminViewableLinkStyle}
disabled={state.shouldUnitsButtonDisabled}
Expand Down Expand Up @@ -322,4 +367,4 @@ export default function HeaderButtonsComponent() {

</div>
);
}
}
21 changes: 16 additions & 5 deletions src/client/app/components/RouteComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,35 @@
import * as React from 'react';
import { IntlProvider } from 'react-intl';
import { RouterProvider, createBrowserRouter } from 'react-router-dom';
import ReadingsCSVUploadComponent from '../components/csv/ReadingsCSVUploadComponent';
import MetersCSVUploadComponent from '../components/csv/MetersCSVUploadComponent';
import ReadingsCSVUploadComponent from '../components/csv/ReadingsCSVUploadComponent';
import MapCalibrationContainer from '../containers/maps/MapCalibrationContainer';
import MapsDetailContainer from '../containers/maps/MapsDetailContainer';
import { useAppSelector } from '../redux/reduxHooks';
import { selectSelectedLanguage } from '../redux/slices/appStateSlice';
import LocaleTranslationData from '../translations/data';
import { UserRole } from '../types/items';
import AppLayout from './AppLayout';
import HomeComponent from './HomeComponent';
import AdminComponent from './admin/AdminComponent';
import LogMsgComponent from './admin/LogMsgComponent';
import UsersDetailComponent from './admin/users/UsersDetailComponent';
import ConversionsDetailComponent from './conversion/ConversionsDetailComponent';
import DaysDetailComponent from './days/DaysDetailComponent';
import GroupsDetailComponent from './groups/GroupsDetailComponent';
import MetersDetailComponent from './meters/MetersDetailComponent';
import AdminOutlet from './router/AdminOutlet';
import ErrorComponent from './router/ErrorComponent';
import { GraphLink } from './router/GraphLinkComponent';
import NotFound from './router/NotFoundOutlet';
import RoleOutlet from './router/RoleOutlet';
import UnitsDetailComponent from './unit/UnitsDetailComponent';
import ErrorComponent from './router/ErrorComponent';
import { selectSelectedLanguage } from '../redux/slices/appStateSlice';
import LogMsgComponent from './admin/LogMsgComponent';
import VisualUnitDetailComponent from './visual-unit/VisualUnitDetailComponent';
import HolidayInstanceGroupComponent from './holiday-instance-groups/HolidayInstanceGroupComponent';
import WeeksDetailComponent from './weeks/WeeksDetailComponent';
import HolidayInstancePage from './holiday-instances/HolidayInstancePage';
import HolidayPage from './holiday/HolidayPage';


/**
* @returns the router component Responsible for client side routing.
Expand Down Expand Up @@ -55,15 +61,20 @@ const router = createBrowserRouter([
element: <AdminOutlet />,
children: [
{ path: 'admin', element: <AdminComponent /> },
{ path: 'holidays', element: <HolidayPage /> },
{ path: 'holiday-instances', element: <HolidayInstancePage /> },
{ path: 'calibration', element: <MapCalibrationContainer /> },
{ path: 'conversions', element: <ConversionsDetailComponent /> },
{ path: 'days', element: <DaysDetailComponent /> },
{ path: 'weeks', element: <WeeksDetailComponent /> },
{ path: 'csvMeters', element: <MetersCSVUploadComponent /> },
{ path: 'maps', element: <MapsDetailContainer /> },
{ path: 'units', element: <UnitsDetailComponent /> },
{ path: 'users', element: <UsersDetailComponent /> },
{ path: 'logmsg', element: <LogMsgComponent /> },
{ path: 'users', element: <UsersDetailComponent /> },
{ path: 'visual-unit', element: <VisualUnitDetailComponent/> }
{ path: 'visual-unit', element: <VisualUnitDetailComponent/> },
{ path: 'holiday-instance-groups', element: <HolidayInstanceGroupComponent /> }
]
},
{
Expand Down
Loading