feat: add Classic Footer#1904
Conversation
487ce86 to
2935612
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
We could also include |
Co-authored-by: marcustyphoon <marcustyphoon@gmail.com>
|
Maybe it's easier to just put |
… width mea culpa. copied tumblr's CSS too hard
I mean, my mental model is that tags are part of the footer too, but that's factually false. The footer doesn't have multiple rows. So if, visually, we're inserting a row above the footer... that's how we should be doing it from a DOM perspective as well. |
|
How much bikeshedding am I supposed to be doing over style? The widened |
|
Pointing things out isn't bikeshedding. Now that I see it, it's bothering me too... third try's the charm? One moment. |
|
Hmm, this one is annoying. No such thing as negative padding to offset the needed increased margin... I guess I could use a pseudo-element to draw the border instead? |
|
Oh, whoops, I had assumed it was intentional because I hadn't realized that it's from the new footer, not the changes you just made :D Hm, that is kind of a pain. |
|
It used to be 16px; do you think 12px or 16px looks better? (Are we bikeshedding now? :3) |
|
My brain so wants to believe the control buttons are still misaligned. But |
|
Yeah. Maybe we should move to using Tumblr icons for our control buttons... 😏 (Not in this PR, obviously.) |
|
This notably does leave in changes to We could leave this as is, carefully tweak them to be pixel-perfect even though they're unused, revert the changes so this PR does not have an unused diff, or possibly straight up remove the whole thing in this PR if we want to have no fallback (but I kind of want the fallback). |
I want to keep it in as a fallback, too. This leaves us with three options:
I don't think further work is warranted for a might-never-be-used fallback, but given that we already tested and verified the changes before the thing became a fallback, reverting them doesn't achieve anything except make the fallback worse on purpose. So, I vote we just leave them as-is. |
marcustyphoon
left a comment
There was a problem hiding this comment.
*chanting* M-V-P! M-V-P!
It's a little less cool in software development than in sports. But still.
Replies to my message asking about this can be summarized as a) you probably keep your place in the queue if you push a second release, probably maybe at least according to an educated guess by one person who knows, and b) request from the team that you do push a second release in that case to reduce overhead; did not directly answer question. |
|
Minor bug; acceptable, I think, for the MVP:
Going to be annoying to fix. Now you're thinking with portals! edit: wait now they do. what edit: wow if you alternate between clicking the replies button and note count, the modal flickers. no idea at present how that would happen! |
Hmm. I guess I would be willing to publish a release and just see what happens. The recent announcement about version rollbacks gives me hope that even if our submissions are approved out of order that I would be able to fix the wrong-version-marked-as-latest problem, if they haven't already fixed that themselves. |
|
I believe if you have two versions in the queue the earlier one gets auto disabled and the reviewer sees a combined diff. |
It's a race condition, I think? The notes floatie gets closed by any outside click occurring on the page—I guess if that happens first and our click handler happens second, the notes get closed and then immediately re-opened. |
|
Only after I push a fix do I realise there's an extra layer: there are two click events! The original one from actually clicking the notes button, and the one we perform by triggering a click to the Reply button. By stopping propagation, the document body only sees one click (in the bubbling phase, at least). Seems to fix the issue, either way. |
|
Opening the floatie with the reply button and then pressing notes to close, or vice versa, still flicks it back up for me, but I didn't look at all closely why, and it's quite minor. edit: Have now "looked at all closely." Conclusion: no idea. |
|
I'd love to center the position of the reblog modal (i.e. change from edit: Nope, I'm a liar. |
Huh. Problem I just noticed with this: Quick Reblog users who don't want to use the classic with-note-counts footer should be able to access it. But if we...
edit: anyway here's wonderwall const modalReblogButtonSelector = `${keyToCss('menuItemsWrapper')} > a[href^="/reblog/"]:has(use[href="#managed-icon__ds-pencil-outline-24"])`;
const modalReblogButtonObserver = new MutationObserver(mutations =>
mutations
.flatMap(({ addedNodes }) => [...addedNodes])
.filter(addedNode => addedNode.querySelector?.(modalReblogButtonSelector))
.forEach(addedNode => {
addedNode.setAttribute('hidden', '');
setTimeout(() => addedNode.removeAttribute('hidden'), 500);
addedNode.querySelector(modalReblogButtonSelector).click();
})
);
/* if (preference) */ modalReblogButtonObserver.observe(document.body, { childList: true }); |
|
Reverting how the reblog button works when clicked is categorically a Classic Footer problem to solve. Quick Reblog is for adding the on-hover menu and nothing else. I also don't see "people who do want the spread-out button layout, but don't want the new on-click reblog menu" as a demographic that actually exists. |
|
In practice that's likely true, yeah. Logically I don't think it makes as much sense; Quick Reblog cleanly replaces almost the entire functionality of the reblog menu*, and Classic Footer removes the split note counts, which is a sidegrade. *Except opening the post notes to the reblogs view, which in a hypothetical case without Classic Footer but with the menu removed takes the same number of clicks—two—but is done in an illogical way, by first clicking on the replies button; this kind of illogical situation is one we have historically avoided creating and could be another reasonable argument against allowing the menu to be removed independently of Classic Footer. |










Description
Adds a new feature, Classic Footer, to the list of usable features. This feature styles the post footer on processable posts to remove the per-type engagement counts and right-align all the control buttons, and adds a working old-style (pre-bubbleisation) note count button to the bottom-left corner of posts.
Screen.Recording.2025-10-07.at.2.20.39.pm.mov
This is the minimum viable product; the following possible enhancements are intentionally omitted for this iteration:
tumblr.languageDatadoes not expose plural forms of strings 😩)Oh, and this changes the icon colour of Classic Search to the 2013 Tumblr dashboard blue, to match this feature's icon. I think branding our "Classic" features with classic colours fits quite nicely.
Testing steps