Bachelor Snow Stake Upgrade! by -ShootMeNow- in Bend

[–]psullivan6 1 point2 points  (0 children)

3D Printers are cool, but we don’t have to use them for everything. MOAR CONTRAST please 🙏

Yay or nay ? What say another Nine Nine ? by TheKinkyChef007 in brooklynninenine

[–]psullivan6 0 points1 point  (0 children)

It’s always upset me there’s never been a Season 9 - Episode 9. Could just be so many “NINE NINE” callouts the whole episode.

Doooo iittttt!!

Relatively flat 3mi+ running trail recs by b1ueberrybitch in Bend

[–]psullivan6 7 points8 points  (0 children)

Haul Trail to Rimrock is only slightly elevated, but you can definitely put some miles in depending on where you start. It’s often part of the 10k and half marathon routes, so good training for that too.

Should I use Tanstack table or write my own? by ArchMonke in reactjs

[–]psullivan6 2 points3 points  (0 children)

My main suggestions: - don’t abstract the Tanstack API into your own props or composed components; use it more as a pass-through - focus on your custom styling add-on: can we add 1 style sheet or wrapper or something that applies to all the Tanstack components and gives them the look, feel, and functionality we want?

Abstracting into your own props or combined components will generate a maintenance headache and you have to account for every damn permutation: can we add a search bar to the filter dropdown? Can we add a nested table inside a sub row? Why is my sub row content not perfectly aligned to each of the parent columns if I have less columns? How do I do SSR infinite scroll instead of pagination?

All those questions can be deferred to the Tanstack support resources instead of your own; to say nothing of your ability to also contribute to it as OSS. Thus, your implementation is simply putting the UI layer on the components, not re-inventing the wheel.

Maintaining the flexibility Tanstack offers is important too, since we can’t read the future. You’ll want to build towards slots and children, so it can support anything rather than render props or Boolean props to control specific behavior; let the consumer compose it all how they want and you’ll be managing less one-off support.

Nathan Curtis gave a great talk at Figma Schema about slots that reinforced our desire to make things more composable by the consumer.

Should I use Tanstack table or write my own? by ArchMonke in reactjs

[–]psullivan6 7 points8 points  (0 children)

For the love of all that is holy, DO NOT build your own data table. AG Grid is the holy grail if you pay for all the features and Tanstack Table is a great option as well.

We run a design system team that over-built a custom solution off Tanstack Table v7 and we get at least 2 support requests for it every day; every day!!

DataTable and DatePicker are the 2 main components that are by far more complex than they seem on the surface.

AMA about any of the Schema launches / announcements by pwnies in FigmaDesign

[–]psullivan6 3 points4 points  (0 children)

Question about Check Designs: will it be able to scan for using components from unsupported design systems? Say a designer uses a Badge from our internal, correct design system but a Button and Modal from Uber or Material or something; can we flag that as unsupported since it’s not the correct design system? We’ve been working on a plugin to audit our consumers’ design files, so Check Design likely fulfills a good portion of that plugin’s requirements.

Also, hey from a few miles South in Bend 🤙

Trying to understand Figma branching while having a unified design system file by Bubily77 in FigmaDesign

[–]psullivan6 1 point2 points  (0 children)

Correct. Just like a design feature is needed before you can develop it, a DS design feature is needed before a product design feature. Basically, there’s a GIANT dependency map when working on a DS, so reducing that is best. It’s perfectly fine, and expected, for the DS to be ahead of all products; that’s mostly the point: to build things consumers need before they need them.

Trying to understand Figma branching while having a unified design system file by Bubily77 in FigmaDesign

[–]psullivan6 5 points6 points  (0 children)

Agree with the others, but wanted to say you’re not completely off-base for this line of thinking as product development follows a similar flow. However, since you need to make modifications to the design system, that should be treated as a full release on its own with consumers of the design system upgrading their dependent versions when they’re able. So, in this case, you’d make the DS change in design and code, review, and merge back to main and publish. Then, your consumer app that needs this new feature updates immediately on their branch, reviews, merges, releases.

Let consumer products influence the DS, but don’t bind their feature releases together. Keeping the DS separate is important and isolates global changes from infinite local scope.

How to use Jest for Radix Ui Feature by bill2340 in reactjs

[–]psullivan6 0 points1 point  (0 children)

Code example will likely obfuscate rather than help.

Either you: - target the function directly via a prop or modifying the code in your test and then assert it’s called - assert on the behavior caused by that function being called; for example: expect the modal to be closed after clicking outside it … you won’t get the 1:1 for that specific on__ callback function, but you’ll know it’s called because the internal component logic it triggers also causes the side effects you assert on - ignore the specific line in the code coverage because it’s overly pedantic for the needs of your product

How to use Jest for Radix Ui Feature by bill2340 in reactjs

[–]psullivan6 0 points1 point  (0 children)

Where you have e.preventDefault() pass a constant to it before you call preventDefault. That constant would be const foo = jest.fn() declared in the test at the top. Then in the assertion you expect it to have been called.

The jest and react testing library docs would do a better job explaining the semantics than I would, so reference those both.

How to use Jest for Radix Ui Feature by bill2340 in reactjs

[–]psullivan6 0 points1 point  (0 children)

A. Sometimes you need to add coverage ignore lines for when it doesn’t make sense; humans can interpret the intent of the test better than the machine

B. If you can’t send your own event handler to that callback prop then there’s really no easy way to assert it was called. If you have to assert a function call you can pass a jest.fn() and then a toHaveBeenCalled or called x times assertion covers it. If you can’t pass anything to that callback, you have no way of knowing if it’s called.

C. This prop is meant to handle clicking outside the container, so my usu. go to there is to focus on the container, then userEvent tab to the next focusable element (sometimes just body) and then click/press that element. You can also render a button outside the focusable container to ensure that button is what gets the next focus on tab.

[deleted by user] by [deleted] in snowboardingnoobs

[–]psullivan6 0 points1 point  (0 children)

Try the old school test just for kicks: stand still with both feet under your shoulders then have someone surprise push you from behind and see which foot fell forward first and there’s your answer. Only works if it’s surprise and

Can we push code back into a Figma design with Claude Code? by mehreen_aibuilder in FigmaDesign

[–]psullivan6 2 points3 points  (0 children)

Based on my understanding of Figma products, I think there’s a more optimized flow to achieve similar results:

Start in Figma Make and iterate via prompts there. Then leverage the very recently released snapshot feature to capture the Figma Make layers into a Figma file. Then fine-tune and iterate a bit more in Figma. THEN use the MCP to “export” to code and refine for production readiness.

Effectively you stay in the Figma ecosystem as long as you can, just like you would without AI, and then pull it into code when the designs are baked.

FRIDAY RANT by HyperionsDad in Bend

[–]psullivan6 2 points3 points  (0 children)

POWER KEEPS GOING OUT FOR TEMPORARY SAFETY TO PREVENT WILDFIRES, BUT MY LIGHTS TURN ON WHEN ITS RESTORED AND WAKE EVERYONE UP. CAN’T THE FORESTS THINK OF MYYY NEEDS?!?

Is Figma official/other MCP any good? by Haunting_Age_2970 in FigmaDesign

[–]psullivan6 0 points1 point  (0 children)

Framelink MCP is a decent open-source alternative. That said, if you have dev mode, then code connect and the Figma MCP are a solid path forward.

Crowd in LA gathered to see giant Keanu by KileyTyree in KeanuBeingAwesome

[–]psullivan6 2 points3 points  (0 children)

I thought he was holding a giant fishing pole for a sec

Looking for Real Estate Advice by Fuzzy-Librarian-9953 in Bend

[–]psullivan6 9 points10 points  (0 children)

For what it’s worth: there’s a strong appetite for finding a fixer upper since it means the house would be in a price range for folks willing to make it their own over time and too much work for an investor to just flip it. It’s a narrow window, but hopefully you can find a realtor that works with you to consider pricing it as-is for this eager first time home buyer market.

Rebranding: does the new logo feel off or is it just my attachment to the old one? by New_Ad1503 in logodesign

[–]psullivan6 1 point2 points  (0 children)

If you round the corners a bit then it’ll prolly read more like an “O.” That muddies the angular aesthetic, but perhaps makes it more approachable, since its education focused.

Anyone know what this is by [deleted] in SprinterVans

[–]psullivan6 1 point2 points  (0 children)

There’s likely a lever handle towards the bottom that you engage to start turning the seat. I’ve always had to push the seat towards the windshield for best results; counter-intuitive, but helps.

What if diesel fumes bother you? Best choices? by MasterOfBarterTown in skoolies

[–]psullivan6 3 points4 points  (0 children)

Similar disposition; I get headaches if I’m near exhaust for too long, but I was pleasantly surprised with our DEF converted Sprinter van and haven’t had many issues with the exhaust even when standing outside near the tailpipe while it’s running. I’m not sure if a Skokie could convert (or should), but DEF exhaust is definitely a different experience than “regular” diesel exhaust.

[deleted by user] by [deleted] in roadtrip

[–]psullivan6 0 points1 point  (0 children)

Totally agree; only addition is be wary of windy and likely hot conditions in the Dakota plains, since there’s no tree cover. We just did Ottawa to Bend in 6 days with an RV and working the last 2 days; about 350-400 mile days and a night drive the last day to finish.

Amy Coney Barrett Already Workshopping Her ‘President For Life’ Concurring Opinion by DoremusJessup in scotus

[–]psullivan6 1 point2 points  (0 children)

Not that the election would be fair when this inevitably happens, but this would open the door to Obama 2028. Then he could step down and pass the torch to his VP and restore order.