aglinxinyuan opened a new issue, #7405:
URL: https://github.com/apache/texera/issues/7405
### Task Summary
`BrowseSectionComponent`'s specs cover the route map and the cover-URL
cache, but no card has ever been rendered, so every per-entity binding and
fallback in the template is unpinned. Locally the template sits at roughly 8%
of statements.
What the template decides on its own:
- the whole section disappears when it holds no entities (`*ngIf="entities
&& entities.length > 0"`)
- one card per entity, with its name and description
- `{{ entity.description || 'No description available' }}` — without it, an
entity published with no description renders an empty paragraph and collapses
the card
- `[src]="getCoverImage(entity)"` plus an inline `(error)` handler that
swaps in `defaultBackground`; a cached cover URL can still 404, and that
handler is the only thing preventing a broken image
- the avatar labelled with the entity id, and `[userName]="entity.ownerName
|| ''"`
Note for whoever picks this up: the cards embed `texera-user-avatar`, which
injects `UserService`. The real one pulls in `AuthService` and from there
`JwtHelperService` and `NzModalService`; providing the shared `StubUserService`
cuts the chain in one step. `routerLink` on the cards also needs
`RouterTestingModule`.
### Task Type
- [ ] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [x] Testing / QA
- [ ] Documentation
- [ ] Performance
- [ ] Other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]