Skip to content

Commit

Permalink
feat(frontend): show user def attrs in bug report details
Browse files Browse the repository at this point in the history
closes #1825
  • Loading branch information
anupcowkur committed Feb 24, 2025
1 parent 915e4d8 commit 2307f05
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ export default function BugReport({ params }: { params: { teamId: string, appId:
<p className="font-sans"> Device: {bugReport.attribute.device_manufacturer + bugReport.attribute.device_model}</p>
<p className="font-sans"> App version: {bugReport.attribute.app_version} ({bugReport.attribute.app_build})</p>
<p className="font-sans"> Network type: {bugReport.attribute.network_type}</p>
{bugReport.user_defined_attribute !== undefined && bugReport.user_defined_attribute !== null && (
<div key="user_defined_attribute">
{Object.entries(bugReport.user_defined_attribute).map(([attrKey, attrValue]) => (
<p key={attrKey + ":" + attrValue} className="font-sans"> {attrKey}: {attrValue?.toString()}</p>
))}
</div>
)}

<div className="py-6" />
{bugReport.description && <p className="font-sans text-xl">{bugReport.description}</p>}
<div className="py-8" />
Expand Down

0 comments on commit 2307f05

Please sign in to comment.