-
Notifications
You must be signed in to change notification settings - Fork 402
fix: add cx-read-more component (for product reviews) #20250
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
ac6662b
fix: add cx-read-more component (for product reviews)
ulates-sap e51eafa
Merge branch 'develop' into feature/CXSPA-9967
uroslates 30cd526
Merge branch 'develop' into feature/CXSPA-9967
uroslates 1f2ba77
Merge branch 'develop' into feature/CXSPA-9967
uroslates 4afe15e
fix: add review title/comments/reviewrName characters limit (for prod…
ulates-sap 706a30f
fix: fixing failed test
ulates-sap f18eccd
fix: add feature flags
ulates-sap 31ae890
fix: fix feature flags prettier issues
ulates-sap bfa7c2e
Merge branch 'develop' into feature/CXSPA-9967
uroslates f1b7838
Merge branch 'develop' into feature/CXSPA-9967
uroslates 08c6e45
Merge branch 'develop' into feature/CXSPA-9967
uroslates 763a4f0
Merge branch 'develop' into feature/CXSPA-9967
uroslates 1acc3bb
fix: address PR comments - add docs
ulates-sap 5f35d81
fix: addressing PR comments
ulates-sap 5397a80
Merge branch 'develop' into feature/CXSPA-9967
uroslates ac9ef3f
Merge branch 'develop' into feature/CXSPA-9967
uroslates fde983c
Merge branch 'develop' into feature/CXSPA-9967
uroslates 602d712
Merge branch 'develop' into feature/CXSPA-9967
uroslates 0320717
Merge branch 'develop' into feature/CXSPA-9967
uroslates 227d352
fix: addressing PR comments
ulates-sap 3cdb270
Merge branch 'develop' into feature/CXSPA-9967
uroslates 35e9fce
Merge branch 'develop' into feature/CXSPA-9967
uroslates 1657f61
Merge branch 'develop' into feature/CXSPA-9967
uroslates 3e27277
fix: address some UX comments
ulates-sap 01ef3ef
fix: fix prettier issues
ulates-sap d000d60
Merge branch 'develop' into feature/CXSPA-9967
uroslates 1f97930
Merge branch 'develop' into feature/CXSPA-9967
uroslates 65fe4b8
Merge branch 'develop' into feature/CXSPA-9967
uroslates 6e460e7
Merge branch 'develop' into feature/CXSPA-9967
uroslates 2865d69
Merge branch 'develop' into feature/CXSPA-9967
uroslates b961442
fix: address PR comments
ulates-sap 0580631
Merge branch 'develop' into feature/CXSPA-9967
uroslates 9ebc4c0
Merge branch 'develop' into feature/CXSPA-9967
uroslates 3127247
Merge branch 'develop' into feature/CXSPA-9967
uroslates 7f370b7
Merge branch 'develop' into feature/CXSPA-9967
Zeyber d20dc90
Merge branch 'develop' into feature/CXSPA-9967
uroslates 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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2025 SAP Spartacus team <[email protected]> | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| export * from './read-more.component'; |
14 changes: 14 additions & 0 deletions
14
projects/storefrontlib/shared/components/read-more/read-more.component.html
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <ng-container *ngIf="isCollapsed"> | ||
| {{ text.slice(0, maxLength) }} | ||
| </ng-container> | ||
| <ng-container *ngIf="!isCollapsed"> | ||
| {{ text }} | ||
| </ng-container> | ||
|
|
||
| <button | ||
| class="btn-link" | ||
| *ngIf="showReadMore" | ||
| (click)="isCollapsed = !isCollapsed" | ||
| > | ||
| {{ (isCollapsed ? readMoreI18nKey! : readLessI18nKey!) | cxTranslate }} | ||
| </button> |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.