-
Notifications
You must be signed in to change notification settings - Fork 0
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
Odi/new main dashboard search #233
Conversation
Visit the preview URL for this PR (updated for commit 306344e): https://childrens-aid-society--pr233-odi-new-main-dashboa-6levieg7.web.app (expires Wed, 20 Dec 2023 18:27:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 93f6cb7bff946a1edd29d684408e6d31442cf0b1 |
intake_list.append(intake_new) | ||
|
||
return jsonify(intake_list), 200 | ||
except Exception as error: |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
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.
nice work!! searching by family name works nicely 😁
one thing—clicking on view all
doesn't work
instead, could we simply remove the view all button, and show all searches with a given family name?
args = request.args | ||
try: | ||
family_name = args.get("family_name") | ||
print(f"Received request for family_name: {family_name}") |
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.
lint
if not isinstance(family_name, str): | ||
raise Exception("Family name passed is not of str type") | ||
intakes = Intake.query.filter_by(family_name=family_name).all() | ||
print(intakes) |
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.
lint
/> | ||
) : ( | ||
<h3 style={{ marginTop: "20px" }}> | ||
Sorry, we couldn`t find that for you. |
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.
small nit: wrong apostrophe (` vs ')
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.
small changes—rn subsections are displaying all their cases, rather than the first 4
{cases.slice(0, 4).map((caseData: CaseCardProps) => { | ||
return ( | ||
<CaseCard | ||
key={caseData.caseId} | ||
caseId={caseData.caseId} | ||
referringWorker={caseData.referringWorker} | ||
date={caseData.date} | ||
familyName={caseData.familyName} | ||
caseTag={caseData.caseTag} | ||
/> | ||
); | ||
})} |
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.
i think keeping this logic is ok, but maybe u could wrap it with your new showViewAll
bool
if showViewAll
is true, use the slicing logic
else, display all
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.
lgtmm lez goo
Notion ticket link
Ticket Name
Implementation description
Steps to test
What should reviewers focus on?
Checklist