-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Remove row clicking from notification table #22695
Conversation
I would vote against this as it removes desired behaviour as far as I'm concerned. Not only is row clicking pretty standard UI practice (see github's own) but this is already the behaviour and the reported issue is about missing functionality on top of this. I don't really see justification to having to be pinpoint accurate when looking through a notification list. |
The alternative, then, would be to make the I am fine if that's the consensus, but will need to fiddle around with it. Fomantic tables seem to want to generate padding, so it won't be quite as easy as just making the |
The other thought I had is wouldn't this negatively affect the touch/mobile interface as well? |
If anything imo it would be better, less chance to misclick, as these table rows actually have different links depending on where in the segment you click. |
fwiw what "github does" is what I described above, where the As well, for things that do the same no matter where you click I think it's fine, but ours is slightly different because you can click to the issue/PR, but there's also a segment for clicking to the repo itself. So honestly I am fine with either solution, though I don't mind trying to fiddle with the CSS (later) to get it working as-is. |
That's a good point, I hadn't noticed that bit. I'm not saying its something that would necessarily need to be adhered to (as GH is far from perfect on the UI front) is that the row click for the GH notifications only seems to stretch as far as it needs to then cuts off when it gets to the "other" links. Edit: typing this at the same time as you did. Either way I'm just stating a (soft) preference, the main issue I think is inconsistency. |
So I recall making the whole row clickable deliberately to keep things the same as on GH which also did the same thing at that point. Making the Now you can still right/middle click on the link bit... |
Interesting. See #17388 , IMO the If it's not, the JS should be removed together. |
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This is a far cry from making it full-height, but I could not find a "good" way to make it full-height without some very hacky CSS. (admittedly I am not a UI expert by any means) What GitHub does, and what I suspect we should eventually do (if fomantic lets us), is instead of a table they use a list and cleverly styled divs to render the "table" which allows the anchor tag to encompass the content. I am fine with taking pointers on clever CSS to make this work, accepting this PR as-is, or closing it as "the other way was good enough" I personally find the dead-space to be a bit tacky, but it does at least bring it closer. |
It will be hacky to make a full height The |
Hmm ... since the I never understand why people like keeping refactor PRs stale and keeping resolving conflicts. |
Please resolve the conflicts. |
Maybe the JS code should also be removed together. Since there won't be gitea/web_src/js/features/common-global.js Lines 124 to 137 in e7ef94e
|
Is this PR active? I am working on some JS clean-up work, and I could help to propose a sub PR for this PR (to clean the unused JS code). |
That would be great! |
PR: jolheiser#3 Although it looks like changing a lot, actually only the last commit is related. Other commits are all from "main" branch, because I have to merge the PR's branch with main first, to resolve conflicts. |
…ation-table # Conflicts: # templates/user/notification/notification_div.tmpl # web_src/less/_user.less
70116df
to
dfc6547
Compare
@wxiaoguang looks like I messed something up in my merge, so I reconciled the updating my branch and then cherry-picked your |
Nvm. I guess you did a squash merge? IMO a "fast foward" or a normal merge won't cause these messes 😁 I think it looks good to me, thank you very much. |
Yep, I used the default without considering it 😓 Thanks for the review! |
ps: I guess line 70: https://github.com/go-gitea/gitea/pull/22695/files#diff-40b7988fcd35c50d12157e06dc96b586404a4d1d3772a4b257340f11295bec5aR70 The |
Signed-off-by: jolheiser <john.olheiser@gmail.com>
…notification-table
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #22695 +/- ##
========================================
Coverage 47.14% 47.15%
========================================
Files 1149 1155 +6
Lines 151446 152396 +950
========================================
+ Hits 71397 71855 +458
- Misses 71611 72069 +458
- Partials 8438 8472 +34
... and 45 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
This does also fix the padding issue on empty list. I think generally this list should be reworked to no longer be a <table>
, but that can be done later.
Resolves go-gitea#22692 I don't think there's a need for this entire row to be clickable (and even different links depending on which segment you click) The links still point to the same spot, so no information is lost here. --------- Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Backport #22695 by @jolheiser Resolves #22692 Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* upstream/main: (23 commits) Fix project card preview select and template select (go-gitea#23684) [skip ci] Updated translations via Crowdin Add git dashes separator to some "log" and "diff" commands (go-gitea#23606) Add Simplified Chinese translate for oauth2-provider (go-gitea#23713) Fix incorrect `toggle` buttons (go-gitea#23676) Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form (go-gitea#23626) Allow new file and edit file preview if it has editable extension (go-gitea#23624) [skip ci] Updated translations via Crowdin Clean some legacy files and move some build files (go-gitea#23699) Remove row clicking from notification table (go-gitea#22695) Describe Gitea's purpose more accurately (go-gitea#23698) [skip ci] Updated translations via Crowdin ensure go/bin path exists when copying hugo bin into it (go-gitea#23692) Create commit status when event is `pull_request_sync` (go-gitea#23683) Add `deps-docs` command to makefile (go-gitea#23686) Fix incorrect package doc link (go-gitea#23679) Improve indices for `action` table (go-gitea#23532) Clarify that Gitea requires JavaScript (go-gitea#23677) Use data-tooltip-content for tippy tooltip (go-gitea#23649) Add aria attributes to interactive time tooltips. (go-gitea#23661) ...
Resolves #22692
I don't think there's a need for this entire row to be clickable (and even different links depending on which segment you click)
The links still point to the same spot, so no information is lost here.