跳过导航
Our primitives team has been working on a new project we're calling "trees".
0:00 / 0:41

Our primitives team has been working on a new project we're calling "trees".

Jacob

@fat4.1万 位关注者

在 X 上查看
387 个赞下载原帖

59,699 次观看

Our primitives team has been working on a new project we're calling "trees". Trees will be a new SSR, shadow dom, drag and drop, virtualized, vanilla js / react web-component, with a handful of search / filter niceties, collapsible repo paths, themeabilty, diff stat representation, and more. Like most Pierre Computer Company things, it's built very well by people that care a lot about these sorts of things. Sadly so far trees[dot]com is unwilling to give us their domain.

44 条评论

评论来自 X (Twitter) 上的原帖

  • Mitchell Hashimoto 的头像

    @mitchellh

    What’s a primitives team

    40 个赞

  • Jacob 的头像

    @fat

    We have two teams internally right now… The Code Primitives team is building diffs, trees, etc. These are low level, composable libraries for working with "code primitives". Our bet is wave 1 was forking VSCode - editor first agentic coding… tab, tab, type shit. Wave 2 - tui, cli's, etc. Wave 3 - return desktop, but NOT editor first. We're building for this wave – foundational abstractions, for building dev tools. the next "VSCode"…etc.

    53 个赞

  • Mitchell Hashimoto 的头像

    @mitchellh

    Ah I thought you meant like cavemen

    42 个赞

  • Jacob 的头像

    @fat

    well i mean @amadeus IS on the team sooo…

    10 个赞

  • ray arayilakath ‎.߆ 的头像

    @rayhanadev

    @mitchellh @amadeus i love the consistency at which amadeus is trolled both on and off slack 😭😭

    2 个赞

  • Jacob 的头像

    @fat

    @mitchellh @amadeus Only bc he’s annoyingly talented

    2 个赞

  • Devon Govett 的头像

    @devongovett

    Did you guys try React Aria for this? The Tree component supports Virtualizer, handles multi-selection, keyboard navigation, drag and drop, accessibility, etc. I got pretty good perf with this data set when I tried it.

    32 个赞

  • Jacob 的头像

    @fat

    Yup - in we originally implemented our tree view on top of react aria. it was lovely. a couple of different design constraints here for us, but lots of inspo from y'alls work

    11 个赞

  • ◢ Brøck Whitten 的头像

    @sintaxi

    thinking I might squat on... shadow-dom-drag-and-drop-virtualized-vanilla-js-react-web-component-with-search-filter-niceties-collapsible-repo-paths-themeability-diff-stat-representation-and-more[dot]com ...just in case.

    12 个赞

  • Jacob 的头像

    @fat

    lmaooo WISE

  • from the future 的头像

    @nk

    how do you get the virtualized list to never have blank areas when you scroll super fast?

    3 个赞

  • Jacob 的头像

    @fat

    @amadeus and @SlexAxton have spent an unreasonable amount of time on exactly this. especially in safari, lots of dark arts

    8 个赞

  • from the future 的头像

    @nk

    @amadeus @SlexAxton I only need to know how to solve this in chromium but I gave up before I could figure it out. Would love to know

    2 个赞

  • Jacob 的头像

    @fat

    @amadeus @SlexAxton @amadeus has a twitter post somewhere on this he can link – but also mb you can just use our tree stuff? (if you're just doing to render layers)…. not sure if that's your usecase tho

  • from the future 的头像

    @nk

    @amadeus @SlexAxton I'm not sure if we can actually use it because we have a lot of extra chrome in our tree and wiring it all up seems like more trouble than just borrowing ideas

    3 个赞

  • Jacob 的头像

    @fat

    @amadeus @SlexAxton we should support this pretty well – but also yah if you just read amadeus's tweet it sorta explains some of the hacks with sticky, etc.

  • Jimmy Lee 的头像

    @wwwjim

    Yoooooo @caidanwilliams we did some fire trees too check this out

    2 个赞

  • Jacob 的头像

    @fat

    @caidanwilliams wait in your hot ass sacred computer shit??

  • jay 的头像

    @mewtyunjay

    we built something similar at work, a virtualized grid + gantt timeline in vanilla TS with react bindings! imperative DOM with element pooling (no vdom in scroll path) collapsible tree rows, inline editing, keyboard nav, drag-to-zoom, handles 10k+ rows at 60fps and initial render takes less than 300ms. built with a lot of care and passion for performant sw :)

    2 个赞

  • Jidé ✨ 的头像

    @jidefr

    Much needed, there is still no perfect batterie included tree lib out there.

    2 个赞