Fix logic and styling of archived project warning in diff comments
What does this MR do and why?
Fix logic and styling of archived project warning in diff comments
- When project is archived, don't show signed in users the "please sign in" prompt, show them the archived project prompt
- When a project cannot be commented on and there are no replies, do not show the empty reply holder in threaded comments; it is wasted empty vertical space
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
Screenshots or screen recordings
Note that these screenshots apply only to comments in archived projects
MR diff comments:
| Before | After |
|---|---|
![]() |
![]() |
MR regular comments:
| Before | After |
|---|---|
![]() |
![]() |
Issue comments:
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Ensure you have an MR somewhere in the GDK that has comments on a diff. Some but not all of the comments should have replies.
- In a separate tab, archive the project that contains that MR (don't worry, this is reversible)
- In the tab where the MR diff with comments is, refresh the page to see the changes from this MR
Related to #504137 (closed)
Edited by Chad Lavimoniere





