Repository navigation
Shreevaths taking over for Vamsidhar - Create Line Graph For Cost Breakdown by Expenditure 20 #3906
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
Open
ReinaT5678
wants to merge
39
commits into
development
Choose a base branch
from
reina-create-line-graph-for-cost-breakdown-by-expenditure-20
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
33f6418
route fixes and new Node version
ReinaT5678 cb4f4a9
yarn changes
ReinaT5678 ea78e38
commented out test failing
ReinaT5678 1f3749b
expenditure files
ReinaT5678 b16aafb
Merge branch 'development' into reina-create-line-graph-for-cost-brea…
ReinaT5678 cb9b4a3
Merge branch 'development' into reina-create-line-graph-for-cost-brea…
ReinaT5678 db4f3ae
feat: Add Cost Breakdown Chart component with line graph for expendit…
vamsidharpanithi 9c0e2a4
merge: resolve conflicts with development branch for frontend
vamsidharpanithi 954b513
fix: add missing @fortawesome/free-brands-svg-icons dependency
vamsidharpanithi d3a38fa
fix: fixed failing tests
vamsidharpanithi 74442f5
feat: switch from yarn to npm package management
vamsidharpanithi 69ad3df
fix: update CI workflows to use npm instead of yarn
vamsidharpanithi 0fd05d8
fix: change npm ci to npm install to resolve rollup dependency issue
vamsidharpanithi f317260
fix: update deploy.yml workflow to use npm instead of yarn
vamsidharpanithi 0f1fa6a
fix: change npm ci to npm install in deploy.yml to resolve rollup dep…
vamsidharpanithi cd40b3b
ci: switch tests to npm ci; verify Linux optional deps
vamsidharpanithi ffd4a31
ci: install @rollup/rollup-linux-x64-gnu in GA before tests to fix op…
vamsidharpanithi ff36d8c
fixed merge conflicts
7329646
Fix duplicate imports in routes.jsx from merge conflict
7f01444
Fix duplicate imports in routes.jsx from merge conflict
969a20f
Fix SonarCloud issues: duplicate imports, contrast, PropTypes, option…
246fb87
Fix remaining SonarCloud issues: contrast, optional chain, unused imp…
02d3c1f
Fix contrast and optional chain issues
4f91a1c
Resolve merge conflicts and fix remaining SonarCloud issues
b99729b
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
shreevathsrao 6e9c587
Resolve merge conflict files
shreevathsrao 385972f
Fix the line chart
shreevathsrao 472441a
fix test case
shreevathsrao 132f934
fix: Merge branch 'development' of into reina-create-line-graph-for-c…
shreevathsrao 3a2304e
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
shreevathsrao f5b29a1
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
shreevathsrao 3163602
fix the redundancy code
shreevathsrao 46d6735
fix: sonarCube issues
shreevathsrao 06d046a
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
shreevathsrao 05f6be1
fix: css issues for mobile
shreevathsrao 4a8a56a
fix: BE integrations
shreevathsrao d6474e8
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
shreevathsrao 83d54d8
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
shreevathsrao 1461943
fix: fixed css and api issues
shreevathsrao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
441 changes: 441 additions & 0 deletions
441
src/components/BMDashboard/ExpenditureGraph/ExpenditureLineGraph.jsx
Large diffs are not rendered by default.
Oops, something went wrong.
136 changes: 136 additions & 0 deletions
136
src/components/BMDashboard/ExpenditureGraph/ExpenditureLineGraph.module.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,136 @@ | ||
| /* Global dark mode styles */ | ||
| body.dark-mode { | ||
| background-color: #1b2a41; | ||
| color: #fff; | ||
| transition: background-color 0.3s ease; | ||
| } | ||
|
|
||
| /* Main container styles */ | ||
| .expenditure-chart-container { | ||
| padding: 20px; | ||
| background-color: #f9f9f9; | ||
| border-radius: 8px; | ||
| box-shadow: 0 2px 4px rgb(0 0 0 / 10%); | ||
| transition: all 0.3s ease; | ||
| min-height: 100vh; | ||
| width: 100%; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| /* Dark mode container */ | ||
| .expenditure-chart-container.dark-mode { | ||
| background-color: transparent; | ||
| color: #fff; | ||
| box-shadow: none; | ||
| border-radius: 0; | ||
| } | ||
|
|
||
| /* Inner chart container */ | ||
| .chart-inner-container { | ||
| background-color: #fff; | ||
| border-radius: 12px; | ||
| border: 1px solid rgb(0 0 0 / 8%); | ||
| box-shadow: none; | ||
| padding: 20px; | ||
| max-width: 800px; | ||
| width: 100%; | ||
| height: 400px; | ||
| position: relative; | ||
| margin: 0 auto; | ||
| transition: box-shadow 0.3s ease, border-color 0.3s ease; | ||
| } | ||
|
|
||
| .expenditure-chart-container.dark-mode .chart-inner-container { | ||
| background-color: #16213e; | ||
| border: 1px solid #233554; | ||
| } | ||
|
|
||
| /* Chart canvas */ | ||
| .expenditure-chart-container.dark-mode canvas { | ||
| background-color: #16213e; | ||
| color: #fff; | ||
| border-radius: 8px; | ||
| } | ||
|
|
||
| /* Error styling */ | ||
| .error { | ||
| color: #7f0000; | ||
| background-color: #fff; | ||
| padding: 10px; | ||
| border-radius: 4px; | ||
| border: 1px solid #d32f2f; | ||
| text-align: center; | ||
| max-width: 800px; | ||
| margin: 0 auto 20px; | ||
| } | ||
|
|
||
| .expenditure-chart-container.dark-mode .error { | ||
| background-color: #2a3a5a; | ||
| color: #ffb3b3; | ||
| border: 1px solid #ffb3b3; | ||
| } | ||
|
|
||
| /* Heading styles */ | ||
| .expenditure-chart-container h1 { | ||
| font-size: 1.5rem; | ||
| margin-bottom: 20px; | ||
| font-weight: 600; | ||
| text-align: center; | ||
| } | ||
|
|
||
| /* Filter controls */ | ||
| .filter-controls { | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| width: 100%; | ||
| padding: 0 20px; | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| .filter-group { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: flex-end; | ||
| gap: 10px; | ||
| } | ||
|
|
||
| .project-filter { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 10px; | ||
| } | ||
|
|
||
| .date-filters { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 10px; | ||
| } | ||
|
|
||
| /* Form elements */ | ||
| label { | ||
| color: inherit; | ||
| } | ||
|
|
||
| select, | ||
| input[type="date"] { | ||
| padding: 6px 10px; | ||
| border-radius: 4px; | ||
| border: 1px solid #ddd; | ||
| background-color: #fff; | ||
| color: #333; | ||
| font-size: 14px; | ||
| } | ||
|
|
||
| .expenditure-chart-container.dark-mode select, | ||
| .expenditure-chart-container.dark-mode input[type="date"] { | ||
| background-color: #253342; | ||
| color: #fff; | ||
| border: 1px solid rgb(255 255 255 / 20%); | ||
| } | ||
|
|
||
| /* Loading message */ | ||
| .loading-message { | ||
| text-align: center; | ||
| color: inherit; | ||
| margin: 20px 0; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure we are using module.css files