Skip to content

Rename stdlib/stdlib to stdlib/src#3

Merged
eadanfahey merged 2 commits intomasterfrom
ef/stdlib-src-rename
May 14, 2021
Merged

Rename stdlib/stdlib to stdlib/src#3
eadanfahey merged 2 commits intomasterfrom
ef/stdlib-src-rename

Conversation

@eadanfahey
Copy link
Copy Markdown
Contributor

No description provided.

@eadanfahey eadanfahey merged commit 626072e into master May 14, 2021
@eadanfahey eadanfahey deleted the ef/stdlib-src-rename branch May 14, 2021 11:43
## Developing

The repo is split between [JavaScript functions](https://github.com/hashintel/hash/tree/master/packages/engine/stdlib/stdlib/ts) — written in TypeScript — and [Python functions](https://github.com/hashintel/hash/tree/master/packages/engine/stdlib/stdlib/py).
The repo is split between [JavaScript functions](https://github.com/hashintel/hash/tree/master/packages/engine/stdlib/src/ts) — written in TypeScript — and [Python functions](https://github.com/hashintel/hash/tree/master/packages/engine/src/stdlib/py).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python link should be stdlib/src not src/stdlib. TS one is fine

kachkaev pushed a commit that referenced this pull request Jan 17, 2022
Preparation for the public release
@hashdotai hashdotai mentioned this pull request Jun 9, 2025
3 tasks
kube added a commit that referenced this pull request Apr 14, 2026
… reviews

Decompose the monolithic chart effect into 4 single-responsibility effects:
- Effect 1: create/destroy uPlot on structural changes only
- Effect 2: sync container size via useElementSize hook
- Effect 3: stream data with setData(data, false)
- Effect 4: playhead redraw

Derived state replaces imperative plumbing:
- useElementSize(ref) replaces getBoundingClientRect + inline ResizeObserver
- useStableCallback(onScrub) keeps a stable identity, fixing chart
  recreation on every streaming update (AI review #1)
- Extract attachRulerScrubbing() helper with cached overRect

AI review fixes:
- #1 onScrub instability causing chart recreation — useStableCallback
- #2 missing placeMeta in streaming effect deps
- #3 fill color hex assumption — use color-mix(in srgb) instead
- #4 y-scale [0,0] when all values zero — Math.max(1, max * 1.05)
- #7 playhead line offset not dpr-scaled — tipY - 4 * dpr

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants