Gezinmeyi atla
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

@fat41 B takipçi

X profili
387 beğeniİndirOrijinal gönderi

59.699 görüntüleme

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 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Mitchell Hashimoto profil fotoğrafı

    @mitchellh

    What’s a primitives team

    40 beğeni

  • Jacob profil fotoğrafı

    @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 beğeni

  • Mitchell Hashimoto profil fotoğrafı

    @mitchellh

    Ah I thought you meant like cavemen

    42 beğeni

  • Jacob profil fotoğrafı

    @fat

    well i mean @amadeus IS on the team sooo…

    10 beğeni

  • ray arayilakath ‎.߆ profil fotoğrafı

    @rayhanadev

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

    2 beğeni

  • Jacob profil fotoğrafı

    @fat

    @mitchellh @amadeus Only bc he’s annoyingly talented

    2 beğeni

  • Devon Govett profil fotoğrafı

    @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 beğeni

  • Jacob profil fotoğrafı

    @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 beğeni

  • ◢ Brøck Whitten profil fotoğrafı

    @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 beğeni

  • Jacob profil fotoğrafı

    @fat

    lmaooo WISE

  • from the future profil fotoğrafı

    @nk

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

    3 beğeni

  • Jacob profil fotoğrafı

    @fat

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

    8 beğeni

  • from the future profil fotoğrafı

    @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 beğeni

  • Jacob profil fotoğrafı

    @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 profil fotoğrafı

    @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 beğeni

  • Jacob profil fotoğrafı

    @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 profil fotoğrafı

    @wwwjim

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

    2 beğeni

  • Jacob profil fotoğrafı

    @fat

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

  • jay profil fotoğrafı

    @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 beğeni

  • Jidé ✨ profil fotoğrafı

    @jidefr

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

    2 beğeni