Title: improvement(workflow): smooth the running hatch and sit it in the slot's own box by waleedlatif1 · Pull Request #6638 · simstudioai/sim · GitHub
Open Graph Title: improvement(workflow): smooth the running hatch and sit it in the slot's own box by waleedlatif1 · Pull Request #6638 · simstudioai/sim
X Title: improvement(workflow): smooth the running hatch and sit it in the slot's own box by waleedlatif1 · Pull Request #6638 · simstudioai/sim
Description: Summary Two things about the running-block hatch, from the Slack thread. Slanted edges read as stepped. A repeating gradient is sampled once per pixel with no coverage term, so a hard colour stop on an edge 15° off vertical can only land wholly on one side or the other. There is no partial value to soften it, and on a mark this thin the staircase is the whole edge. Each edge now ramps over 0.75px — roughly a device pixel — which hands the rasterizer the intermediate values antialiasing would have produced. The period runs centre-of-mark to centre-of-mark (11.59 → 36.7) rather than starting at an edge. A repeating gradient truncates at its own wrap, so anchoring at 0 left the ramp leaving the mark cut in half and pulled its 50%-coverage line 0.19px inward — one side of every stripe stayed sharper and the gap rendered 1.75px instead of 1.93px. Both ramps have to sit strictly inside the period. The list still tiles backwards from its first stop, so the marks land where anchoring at 0 put them: same 26px pitch, same phase against the squares, which matters because the marks are aligned to the slot rhythm. The bar did not match the slots. The hatch was inset 4px into a 24px row, so it stood 16px tall inside a swell whose slots are 24px — a shorter bar floating in the row rather than the slots themselves filling — and its right end stopped short of where a hovered slot's fill ends. It now spans the row. The row already sits inside the container's 2px/3.2px inset, so occupying it outright puts the hatch in exactly the box a slot's hover fill occupies: same height, same padding in from the swell on every side. The end taper had to move with it. Its two numbers were read off the slot's diagonal at the old overlay's top and bottom (y=4, y=20); continuing that same edge — slope 20/24 — across the full row gives 20px in at the top and flush at the bottom, so the hatch still ends on the slot's own diagonal. Type of Change Improvement Testing Reproduced the swell faithfully in headless Chromium — real container metrics (h-[28px], py-0.5, px-[0.2rem]), the real cap clip-path values, the composited will-change: transform layer — with a hovered slot rendered alongside as ground truth. Height and padding, sampling a column through the stop's hover fill and through the hatch: top bottom height stop hover fill 2.0px 26.0px 24.0px hatch (after) 2.0px 26.0px 24.0px hatch (before) 6.0px 22.0px 16.0px Edge smoothness, tracking a single stripe and measuring its deviation from its own straight line: 1x 2x hard stops 0.289 0.282 feathered 0.063 0.047 0.28 device px is the signature of a fully quantized edge (uniform-over-one-pixel has σ≈0.289). Pixel magnification confirms it: before is binary black/white steps with no intermediate greys, after is a smooth ramp — now symmetric on both sides — with the mark's dark core intact. Feather symmetry, 50%-coverage crossings across three periods (gap nominal 1.93px): measured gap period anchored at the mark's edge 1.746 / 1.742 / 1.748 period anchored at the mark's centre 1.932 / 1.931 / 1.930 Feather width was chosen by sweeping 0.35/0.5/0.75/1.0px — wider keeps smoothing, but the gap is only 1.93px of stop so it comes straight out of the core. Also verified: fading to transparent produces no dark fringe (premultiplied interpolation — measured 250→253→255 over white), and Tailwind emits every arbitrary value here intact rather than silently dropping it. Not yet seen on a running block in the app — verified against the isolated swell only. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary Two things about the running-block hatch, from the Slack thread. Slanted edges read as stepped. A repeating gradient is sampled once per pixel with no coverage term, so a hard colour stop o...
X Description: Summary Two things about the running-block hatch, from the Slack thread. Slanted edges read as stepped. A repeating gradient is sampled once per pixel with no coverage term, so a hard colour stop o...
Opengraph URL: https://github.com/simstudioai/sim/pull/6638
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d3d9fed9-ac5f-483f-5191-10c9db005e90 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD06:F138D:B2B8EA:F4DF01:6AFB525B |
| html-safe-nonce | 3738d494816d9b460f4d36ce9311b706e086f69bd4fd8e5eec267a6b987ab34c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDA2OkYxMzhEOkIyQjhFQTpGNERGMDE6NkFGQjUyNUIiLCJ2aXNpdG9yX2lkIjoiNzc2NTQ3MjI0NjQ1MjkzMzIxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cae2308152bc4357f98bfb9c2f0a12c4d37037fe8644e6cc445f2563a736c228 |
| hovercard-subject-tag | pull_request:4265094685 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6638/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary Two things about the running-block hatch, from the Slack thread. Slanted edges read as stepped. A repeating gradient is sampled once per pixel with no coverage term, so a hard colour stop o... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cbf66c024bb6d10e6955baa7413c54cf13a201bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width