-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Mark parent directory as viewed when all files are viewed #33958
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
Mark parent directory as viewed when all files are viewed #33958
Conversation
last call @go-gitea/technical-oversight-committee @wxiaoguang @delvh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from my side.
While I don't quite like the approach we chose, that can still be fixed afterward.
Let's get this merged first
Agree, the current approach looks too hacky and fragile But I do not see whether there would really be a fix "afterward". Maybe it's easier and clearer to get a clear and complete fix in this PR |
@wxiaoguang the way I see it is the following: My approach to such decisions is that when a feature is conceptually valuable and doesn't introduce backwards-compatibility issues, it should be merged. |
I won't block it, but IMO the benefit is smaller than the technical debt it brings. It only marks the viewed file/folder gray, but it breaks the whole diff file tree Vue reactivity system. Anyway, I have spent too much time on the various frontend bugs and refactorings. I am tired and won't say more. |
I did some refactoring: as discussed above, let backend prepare data as much as possible, to avoid abusing Vue reactivity system
And I found a strange problem (not sure whether it is a regression or a legacy problem): The |
@wxiaoguang the field will be |
I have clicked "Viewed" and marked a file as viewed, that map is still empty. |
Now that's interesting. |
That's why we need to "maintain" a project, otherwise strange things happens. I can see there are a lot of changes to the "DiffFileTree", maybe some changes are not quite right. |
@delvh do you have ideas about how to make it right? |
What exactly? |
I mean fix this problem. |
The proper fix should be like this: 291012d |
@delvh I fixed the problem by my understanding. If anything is wrong, feel free to point out or propose following up changes. |
* giteaofficial/main: [skip ci] Updated translations via Crowdin Fix two missed null value checks on the wiki page. (go-gitea#34205) Improve "lock conversation" UI (go-gitea#34207) Mark parent directory as viewed when all files are viewed (go-gitea#33958) Restore form inputs on organization create error (go-gitea#34201) Align User Details Page Header Layout with Design Specifications (go-gitea#34192)
Fix #25644
before:

after:
