-
-
Notifications
You must be signed in to change notification settings - Fork 304
feat: Add Contribution Heatmap to Chapter and Project Pages #2674
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
mrkeshav-05
wants to merge
74
commits into
OWASP:main
Choose a base branch
from
mrkeshav-05:feature/contribution-heatmap-chapter-project
base: main
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.
+2,572
−266
Open
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
6c1dfe5
feat: add contribution_data field to Chapter and Project models
mrkeshav-05 bc3a0a2
Create migration 0066 to add fields to database
mrkeshav-05 6312a4c
add management command to aggregate contributions
mrkeshav-05 bd56ef0
expose contribution_data in GraphQL API
mrkeshav-05 7616a42
refactor: extract contribution date aggregation into a separate metho…
mrkeshav-05 866ff7c
test: add contribution_data to the test's expected field names set.
mrkeshav-05 9581474
test: add unit tests for ChapterNode field resolutions and configurat…
mrkeshav-05 3643de0
test: add unit tests for owasp_aggregate_contributions management com…
mrkeshav-05 ec42168
feat: add contributionData to GraphQL queries
mrkeshav-05 3bb7a10
feat: update TypeScript types for contribution data
mrkeshav-05 ea0f8f2
feat: add contributionData field to both project and chapter nodes
mrkeshav-05 5c2d7a6
fixed linting errors
mrkeshav-05 006a13f
fixed failed tests in chapter_test.py
mrkeshav-05 936ae35
fixed backend tests in owasp_aggregate_contributions_test.py
mrkeshav-05 83a7d52
feat: add contribution heatmap to chapter details page
mrkeshav-05 fbae28a
feat: integrate contribution heatmap into project details page
mrkeshav-05 5b2b1ba
feat: enhance contribution heatmap component with isCompact prop
mrkeshav-05 f18d214
apply variant compact
mrkeshav-05 b1e73b1
feat: add contribution stats and heatmap to chapter and project detai…
mrkeshav-05 f5408ff
make chapter page same as project page
mrkeshav-05 ffc9b98
reduce the gap between the cards
mrkeshav-05 d7e2738
optimize queryset by select_related for owasp_repository
mrkeshav-05 9509361
feat: optimize project queryset with select_related and prefetch_related
mrkeshav-05 750765a
chapter contribution aggregation tests
mrkeshav-05 4e1fde6
fix: update contribution_data test to assert field type
mrkeshav-05 751c4b0
update contribution stats calculation to provide estimated values
mrkeshav-05 66a2b24
fix: handle null contribution stats in project and chapter details so…
mrkeshav-05 b58d6df
fixing sonalcloud errors
mrkeshav-05 571c9ad
run pnpm lint
mrkeshav-05 9488b9e
adjust layout and formatting
mrkeshav-05 0b5738a
fixedbackend testcases
mrkeshav-05 ee9a0f2
remove redundant code in project and chapter
mrkeshav-05 da52f15
make another component for github stats
mrkeshav-05 c292cad
fixing sonar issues
mrkeshav-05 4bd4a7b
fixing tests
mrkeshav-05 5a488a0
remove unused variables
mrkeshav-05 d9af698
refactor: improve heatmap series generation and chart options
mrkeshav-05 7241288
fixing sonar cloud issues
mrkeshav-05 61ee215
fix make check
mrkeshav-05 70ac87a
fixing sonarcloud issues
mrkeshav-05 4e5c008
handling null/undefined values
mrkeshav-05 9a85719
include test identifiers
mrkeshav-05 296a3d7
add tests for ContributionHeatmap component with various scenarios
mrkeshav-05 601dc5d
add tests for ContributionStats component
mrkeshav-05 ab98b4d
fixing sonarcloud issues
mrkeshav-05 3bafbb2
sort active chapters and projects
mrkeshav-05 b1ebb6a
added trailing whitespace
mrkeshav-05 c1d0c14
apply make check
mrkeshav-05 e518fb0
pnpm run lint -- --fix
mrkeshav-05 d040213
removing sonarcloud issues with contributionheatmap and contributions…
mrkeshav-05 172ac3d
add contribution_stats field to Chapter and Project models for github…
mrkeshav-05 bf8907c
add contribution_stats field to Chapter and Project GraphQL nodes
mrkeshav-05 c10b9dd
add contribution statistics calculation for chapters and projects
mrkeshav-05 c375a38
add contribution_stats fields to Chapter and Project migrations
mrkeshav-05 5a78728
add contributionStats field to Project type
mrkeshav-05 8515c7d
add contributionStats field to Chapter type
mrkeshav-05 cfb3e8c
run pnpm run --graphql-codegen to update the generated types
mrkeshav-05 7b9afb9
add contributionStats field to GET_CHAPTER_DATA and GET_PROJECT_DATA …
mrkeshav-05 1719296
create contributionDataUtils file for handling contribution stats logic
mrkeshav-05 8f09b7f
refactor: replace estimeted contribution stats with actual
mrkeshav-05 94615c0
added tests for contributionHeatmap
mrkeshav-05 2a4fda6
added tests for contributionStats field
mrkeshav-05 ee80609
Run pre-commit
mrkeshav-05 722ad72
add .slice().reverse() for compatibility
mrkeshav-05 a633ad8
resolve some issues by coderabbitai
mrkeshav-05 30c9ab1
make check
mrkeshav-05 d92ad4f
made the contributionheatmap responsive for both project and chapter …
mrkeshav-05 db5a3be
fixed failed testcases
mrkeshav-05 87036e9
fixing contributionheatmap for tests
mrkeshav-05 d7d2546
run pnpm run test:unit
mrkeshav-05 c957d72
make check
mrkeshav-05 9112a53
fixing sonarcloud issues
mrkeshav-05 ed036e5
adjust heatmap chart dimensions for better responsiveness
mrkeshav-05 e2ccc93
update command in backend/Makefile to aggregate contributions
mrkeshav-05 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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.