roadrunnertwice: Yoshimori from Kekkaishi, with his beverage of choice. (Coffee milk (Kekkaishi))
Nick Eff ([personal profile] roadrunnertwice) wrote in [site community profile] dw_dev2020-08-14 02:36 pm
Entry tags:

Code Tour: July 18 to August 13, 2020

Hello, it's time for another code tour! This is mostly stuff that isn't live yet, but will arrive in the next code push.

Stuff to Make the Updated Comment Pages Better

RECAP: Our goal with the updated comment pages is to:

  • Mostly reproduce the look and feel of the old comment pages...
  • ...but make their implementation more maintainable, repairable, and consistent...
  • ...and also make the site work better on mobile.

We're not changing things because we hate the layout of the living room, we're changing them because the floor joists are rotten. It's just that getting the living room looking the same afterwards can take a little bit of time.

Pull request 2790: Tweaks for Foundationized entry pages
Category: Visual bugs, the updated comment pages
Patch by: [github.com profile] momijizukamori
Description: A small pile of visual tweaks, in our ongoing effort to make the new site skin comment pages look as much like the old ones as is practical.

Nonfree Pull request 140: S2pagination
Category: Visual bugs, the updated comment pages
Patch by: [github.com profile] rshatch
Description: The page-switching links didn't quite look right in the updated comment pages.

Nonfree Pull request 139: Swap Tropo Purple primary and accent colors, to be slightly less neon
Category: Visual bugs, the updated comment pages
Patch by: [github.com profile] momijizukamori
Description: The new version of Tropo Purple was too rowdy.

Issue 2777: Form for mass action on comments less subtle in s2foundation beta
Pull request 2778: Tidy up some s2foundation form controls
Category: Visual bugs, the comment page updates
Patch by: [github.com profile] nfagerlund
Reported by: [github.com profile] kareila
Description: New site skins: making a button look less "โ€ผ๏ธ", and tidying up dropdown controls a bit.

Pull request 2811: Site skin comments: Attempt to fix the wooz
Nonfree Pull request 141: Tropos: reduce background brightness
Category: The comment page updates
Patch by: [github.com profile] nfagerlund
Description: On the updated comment pages, some photosensitive users reported weird migraine or vertigo issues. We're adjusting the spacing and width of some page elements in an attempt to NOT DO THAT. (Also: making the background darker on the default site skins. The background color actually didn't change, but people are widely reporting that it LOOKS brighter. We're unable to determine why they're seeing that, but we ARE able to darken it a tiny bit more.)

Pull request 2810: Various new site skin fixes
Issue 2793: Different fix for comment subject height shenanigans
Category: Visual bugs, the comment page updates
Patch by: [github.com profile] nfagerlund
Reported by: [github.com profile] kareila
Description: A small pile of visual tweaks, in our ongoing effort to make the new site skin comment pages look as much like the old ones as is practical.

BML -> TT Conversion Stuff

Pull request 2781: groundwork for profile conversion
Pull request 2796: convert /profile from BML to TT
Category: TT conversion
Patch by: [github.com profile] kareila
Description: Converts the user profile pages to use modern templates instead of BML. This shouldn't result in any visible changes, since it left the styling alone. (Soon, though.)

THAT SAID, this is kind of a huge deal; profiles were one of the biggest and nastiest of the remaining BML pages.

Pull request 2816: convert /support/submit to Foundation
Category: Visual improvements
Patch by: [github.com profile] kareila
Description: Updates the support ticket submission page to the new site skin styles.

Pull request 2808: fix missing strings from converting /shop/receipt to TT
Category: Cleanup
Patch by: [github.com profile] kareila
Description: Fixed some stuff that got missed while updating a page to a newer code style.

Miscellaneous Stuff

Issue 2785: Community import still busted
Pull request 2786: [#2785] fix community import error
Category: Plain bugs
Patch by: [github.com profile] kareila
Reported by: [github.com profile] rahaeli
Description: The option to import to/from a community broke, and jobs were failing with a "You must be logged in to a personal account (not OpenID) in order to import content into it" error. Should be fixed now.

Issue 1663: Beta Icon Browser: Organize by Keyword instead of Upload Order
Pull request 2825: Icon browser revisions
Category: Icon browser, the comment page updates
Patch by: [github.com profile] nfagerlund
Reported by: [github.com profile] kaberett
Description: Yes. YES. You can finally choose to sort icons by keyword in the icon browser.

This item also includes some other changes for the icon browser:

  • No text means no text. Got rid of the keyword menu that appeared under the selected icon in no-text mode. If you want to select a specific keyword for an icon with multiple keywords, enable yes-text mode.
  • One-click operation. No more "select" button, just click the icon or keyword you want.
  • Minor layout tidying.

Pull request 2733: Comment preview: Display toggleable truncated parent above preview
Category: New features, comment preview
Patch by: [github.com profile] nfagerlund
Description: We replaced the comment preview a few code pushes ago with a better implementation, which means it's now possible to make other improvements to it. (The old version was completely unrepairable.) So here's another improvement: we now display the entry/comment you're replying to above the preview, which is where you'd expect it to be based on how comment threads are usually laid out. We truncate it to make sure your preview stays above the fold, but you can expand it to read the whole thing if you want.

(If JavaScript is disabled, the context goes below the preview like it always has, because otherwise there was no way to keep your preview above the fold.)

Issue 2797: Visually signpost the "do more shit" link on mobile menu
Pull request 2799: [#2797] add arrow glyph to username mobile menu link
Category: Visual improvements
Patch by: [github.com profile] kareila
Reported by: [github.com profile] rahaeli
Description: On mobile, the new-style site skins put the logout, inbox, etc. links behind a tap on the username on the left hand side of the menu bar. But it wasn't really clear that it was a menu of actions, so we added a double-arrow (ยป) to show that it's not just a link.

Issue 2821: feeds with YouTube embeds have invalid site-embed errors
Pull request 2823: Fix embeds in feed content
Category: Plain bugs
Patch by: [github.com profile] nfagerlund
Reported by: [github.com profile] kareila
Description: Embedded media in feed accounts stopped working, due to a bug introduced in the markup formats work. Fixed.

Issue 2819: s2foundation breaks javascript on core1 styles
Pull request 2820: Re-enable javascript in core1 with s2foundation features
Category: Plain bugs, styles, the comment page updates
Patch by: [github.com profile] nfagerlund
Description: Our built-in JavaScript stopped working in journal views for journals that use a "core1" journal style, which are usually old custom styles that were ported from LJ or IJ.

The bug is now fixed, but because of how basic core1 is, it's not necessarily fixed for all core1 journal styles. After the next code push: If you use a custom core1 style that overrides the Page::print() function, you must update your style to call $this->print_script_tags(); right before closing the <body> tag. (You can't do this until the next code push, because the function you need to call doesn't exist in core1 itself yet.)

If you don't want to deal with this type of breakage in the future, consider switching to a core2-based style that looks similar to your old one. Core1 is deprecated; you should expect occasional weirdness from it, and it will never support all of the features our modern style system supports.

Pull request 2813: Restore space between body and crosspost footer
Category: Plain bugs
Patch by: [github.com profile] nfagerlund
Description: When you crosspost to LJ or another LJ-like site, we add a footer at the bottom to link back to the original post. There's supposed to be some line breaks before that footer, but they went away; now they're back.

Pull request 2802: Fix mobile blowouts on Drifting
Category: Visual bugs, styles
Patch by: [github.com profile] nfagerlund
Description: The "Drifting" layout behaved real badly when viewing entries or comments with over-wide content on mobile.

Issue 2791: entry preview uses wrong alert-box class
Pull request 2805: [#2791] siteskin entry preview tweaks
Category: Visual bugs
Patch by: [github.com profile] kareila
Reported by: [github.com profile] rahaeli
Description: When previewing an entry in the beta create entries page, the "this is only a preview, your entry has not been saved" alert box at the bottom of the preview window used the wrong styling.

Issue 2177: improve no-such-user 404
Pull request 2814: use more sitescheme error templates
Category: Better failures
Patch by: [github.com profile] kareila
Reported by: [github.com profile] rahaeli
Description: This improved some error pages to be more informative and less gross-looking.

Pull request 2826: remove ineffective editjournal feature action:saveunsuspend
Category: Code machete
Patch by: [github.com profile] kareila
Description: There was a useless "Save and Request Unsuspension" button on /editjournal, which was maybe part of a feature someone had started but not finished at the time that Dreamwidth's code forked from LiveJournal's.

Pull request 2774: give all cookies the secure attribute on HTTPS sites
Category: Modernization
Patch by: [github.com profile] kareila
Description: The major browsers are in the process of changing their default behavior for cookies, so sites need to update what their cookies say to compensate. This does that. (Dreamwidth uses cookies to keep you logged in, and to recognize that you're logged in no matter whose journal you're currently viewing or commenting on.)

Stuff No One's Going to Notice

Pull request 2788: fix double escaping of file contents in /admin/fileedit
Category: Plain bugs, TT conversion
Patch by: [github.com profile] kareila
Description: This fixes a bug that crept into an admin page during conversion, which had no effect on normal users.

Pull request 2818: test commafy without ljlib
Category: Cleanup
Patch by: [github.com profile] martindemello
Description: This has no real effect on users. Our tests have a tendency to load the entire universe in order to test one tiny, isolated behavior; this updates some tests so they don't have to do that.

Issue 2779: uninitialized value warning generated by profile.js when viewing logged-out profile
Pull request 2800: [#2779] fix uninitialized value warning when viewing logged-out profile
Category: Cleanup
Patch by: [github.com profile] kareila and [github.com profile] nfagerlund
Description: This has no real effect on users, but was greatly annoying the devs.

Pull request 2809: more misc. cleanup
Category: Cleanup
Patch by: [github.com profile] kareila
Description: This has no real effect on users.

Pull request 2641: improvements to bin/checkconfig.pl
Pull request 2789: second try for improvements to bin/checkconfig.pl
Category: Dev tooling
Patch by: [github.com profile] kareila
Description: This has no real effect on users. It improves some tools we use for making sure a dev server is set up correctly.

Pull request 2773: misc. small cleanup fixes for July 2020
Category: Cleanup
Patch by: [github.com profile] kareila
Description: This has no real effect on users.

Pull request 2780: Remove ancient JS function that always returns before doing anything
Category: Code machete
Patch by: [github.com profile] nfagerlund
Description: ๐Ÿ”ช

Pull request 2776: Misc: Silence some warnings
Category: Cleanup
Patch by: [github.com profile] nfagerlund
Description: This has no real effect on users.

Pull request 2775: Make CleanHTML rely on DW::Formats for defaults/aliases
Category: Cleanup
Patch by: [github.com profile] nfagerlund
Description: This has no real effect on users. Combining some duplicated code.

Pull request 2783: remove unused module cgi-bin/LJ/Setting/Bio.pm
Category: Code machete
Patch by: [github.com profile] kareila
Description: ๐Ÿ”ช

muccamukk: Arwen in a white dress in the candlelight. (LotR: Evenstar)

[personal profile] muccamukk 2020-08-14 09:46 pm (UTC)(link)
Thanks for all your work! I appreciate the topic break down on this post, as it made it easier for a not very codey person like me to follow along.
brainwane: My smiling face, including a small gold bindi (Default)

Thanks!

[personal profile] brainwane 2020-08-14 09:51 pm (UTC)(link)
I subscribe to a lot of feeds and I leave comments, so I know I will appreciate the improvements to embeds and comment preview. Thank you!
dewline: Text - "On the DEWLine" (Default)

[personal profile] dewline 2020-08-14 10:36 pm (UTC)(link)
This helps me understand what's going on, so thanks for that. Much appreciating the explanations!
azurelunatic: Vivid pink Alaskan wild rose. (Default)

[personal profile] azurelunatic 2020-08-14 11:23 pm (UTC)(link)
Yay cod!
bluedreaming: digital art of a person overlaid with blue, with ace-aro-agender buttons (Default)

[personal profile] bluedreaming 2020-08-15 01:09 am (UTC)(link)
This is great to read (and super excited to have community import back). Thank you to all the people working on this.
yuuago: (Yuri on Ice - GuangHong - :D)

[personal profile] yuuago 2020-08-15 01:39 am (UTC)(link)
Awesome! Thanks for the hard work.
sparowe: (Joy)

[personal profile] sparowe 2020-08-15 11:18 am (UTC)(link)
Recently subscribed to this blog in order to keep up with everything going on. That said, code is a foreign language to me, so I really appreciate the breakdown--also, some of those descriptions are just fantastic! :D
bemused_writer: Boy meditating (Aang)

[personal profile] bemused_writer 2020-08-30 06:46 am (UTC)(link)
Thanks for the hard work! I love reading these updates. ^^ One thing I was wondering, and it may be obvious, but how do I tell if my theme is core1 or core2 based?
bemused_writer: Woman in comfy sweater (Willow Rosenberg)

[personal profile] bemused_writer 2020-08-30 10:43 pm (UTC)(link)
Oh, excellent! Looks like I'm on core2 in that case and things should be good. Thanks for the reply!