fix: always show all CRE links on CRE pages without collapsing (#901)#909
Conversation
|
@shreeshtripurwarcomp23-coder Add the screenshot/screen recording of the result |
|
@Pa04rth The issue was in The fix adds an Changes are limited to a single file:
|
|
@shreeshtripurwarcomp23-coder Approved |
|
@Pa04rth |
…#901) test signed commit
864c77b to
b4e139f
Compare

Fixes #901
Problem
On a CRE page, lists of linked CREs were being collapsed after 5 items,
requiring users to click "Show more" to see the rest. This happened because
the collapse logic in CommonRequirementEnumeration.tsx did not distinguish
between CRE links and links to external standards.
Fix
Added a check in CommonRequirementEnumeration.tsx: if all links in a group
are CREs, show all of them without collapsing and hide the "Show more" button.
Links to external standards still collapse as before.
This matches the logic already present in DocumentNode.tsx (allLinksAreCres).
Changes
application/frontend/src/pages/CommonRequirementEnumeration/CommonRequirementEnumeration.tsxDOCUMENT_TYPESfrom../../constallLinksAreCresbefore rendering each link groupvisibleResults(full list when CREs, sliced otherwise) instead of inline slice!allLinksAreCres