-
-
Notifications
You must be signed in to change notification settings - Fork 243
Improve user details UX on member page (#1889) #1934
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
adithya-naik
wants to merge
15
commits into
OWASP:main
Choose a base branch
from
adithya-naik:enhance/improve-member-details-ux-#1889
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.
Open
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
19b2131
Improve user details UX on member page (#1889)
adithya-naik a6b50ae
β
refactor: cleanup and optimizations in DetailsCard as suggested-#1889
adithya-naik 2cfad49
refactor/handled ReDoS vulnerability
adithya-naik 23984ac
removed excess coomments-#1889
adithya-naik 7c7ac79
Resolved merge conflict in CardDetailsPage.tsx
adithya-naik fbe45d3
Merge branch 'main' into enhance/improve-member-details-ux-#1889
kasya 866da53
Fix tests
kasya 467b995
Merge branch 'main' into enhance/improve-member-details-ux-#1889
kasya c79faf5
Update n/a vs unknown
kasya fd717a9
Merge branch 'main' into enhance/improve-member-details-ux-#1889
kasya e431022
Merge branch 'main' of github.com:OWASP/Nest into pr/adithya-naik/1934-1
kasya 5a498f3
Merge branch 'main' into enhance/improve-member-details-ux-#1889
kasya 112b703
unknown to N/A
adithya-naik bfa5c0d
in tests -- unknown to N/A
adithya-naik 6c9b194
Merge branch 'main' into enhance/improve-member-details-ux-#1889
kasya 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
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.
π‘ Verification agent
π§© Analysis chain
Verify consistency across tests for fallback changes.
Ensure no lingering expectations for "Unknown" remain in tests or UI. You can run:
π Script executed:
Length of output: 41269
Update fallback text from βUnknownβ to βN/Aβ throughout the codebase
Weβve verified that while the CardDetailsPage tests have been updated to expect βN/Aβ, both the source and many other tests still use βUnknownβ as the fallback. Those need to be aligned:
β’ In source files:
β frontend/src/components/LeadersList.tsx (line 16): replace
<>Unknown</>with<>N/A</>.β frontend/src/components/CardDetailsPage.tsx (lines 71 and 168): update both occurrences of
'Unknown'to'N/A'.β’ In unit tests:
Run
rg -n "Unknown" frontend/__tests__and replace allexpect(...get(Text|ByText)('Unknown')β¦)assertions with'N/A'. In particular:β frontend/tests/unit/components/LeadersList.test.tsx
β frontend/tests/unit/global-error.test.tsx (if the literal βUnknown crashβ is now outdated)
β Any other component/page tests that assert on βUnknownβ
β’ Optional: add or update tests for the new mailto link behavior in CardDetailsPage (e.g. check
href="mailto:β¦") to ensure coverage.Once these changes are made, rerun your test suite to confirm no βUnknownβ expectations remain.
π€ Prompt for AI Agents