-
-
Couldn't load subscription status.
- Fork 248
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 10 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
Make this assertion more resilient and verify link semantics for email/company
Counting all "Unknown" instances can become brittle as the page evolves. Prefer field-scoped assertions (email/company/location) and add tests for:
Example tests to add:
Quick check to see if such tests already exist:
π Script executed:
Length of output: 427
Iβve adjusted the grep patterns to avoid the regex error and split the search for clarity. Letβs verify whether any mailto or GitHub link assertions already exist in our tests:
π Script executed:
Length of output: 13714
Letβs inspect the existing UserDetails tests around the GitHub link checks to see if any cover the company field (and confirm there are truly no mailto/email tests):
π Script executed:
Length of output: 1650
Make βUnknownβ assertion field-scoped and add email/company link tests
The catch-all
in frontend/tests/unit/pages/UserDetails.test.tsx (around line 468) is brittle and doesnβt verify email or company link behavior. Please:
β’ Email
β valid address β renders as a
mailto:linkβ invalid address β renders as plain text (no
<a>)β’ Company
β starts with β@β β renders as a GitHub link (
https://github.com/<org>)β otherwise β renders plain text
Example tests to guide you:
π€ Prompt for AI Agents