aglinxinyuan opened a new issue, #7412:
URL: https://github.com/apache/texera/issues/7412

   ### Task Summary
   
   `UserProjectListItemComponent` decides in its template what a viewer is 
allowed to touch, and none of it is rendered by the spec — the existing tests 
call the save and colour methods directly.
   
   The rule that matters is the `editable` gating. A project the viewer only 
holds READ on must not be offered the rename, add-description, share or delete 
controls, and that decision lives entirely in two `*ngIf="editable"` guards 
plus one on the action list.
   
   Also unpinned:
   
   - the name/edit-input swap behind `*ngIf="!editingName; else editingProject"`
   - the description starting **collapsed** (`descriptionCollapsed` defaults to 
true) and expanding on request
   - the `trim()` guard that stops a whitespace-only description from rendering 
an empty expander
   - the character counter, and the save icon appearing only once the text 
actually differs from `entry.description`
   - the `yyyy-MM-dd HH:mm` creation-date format
   
   Two notes for whoever picks this up:
   
   - The spec already has a `TestHostComponent` wrapper, because the component 
is rooted at `<nz-list-item>` and throws outside an `<nz-list>` host.
   - An expanded description renders a `<markdown>` element, so the TestBed 
needs `MarkdownModule.forRoot()`. No existing test reaches that path, which is 
why it has not come up.
   
   ### 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]

Reply via email to