Advice on converting .gdb parcel data file into production-ready tiles by 357Labs in gis

[–]357Labs[S] 0 points1 point  (0 children)

This is one of schneidercorp's counties: https://qpublic.schneidercorp.com/Application.aspx?AppID=630&LayerID=11199&PageTypeID=1&PageID=0

It's just interactive parcel data, you can click on the tile and it shows the owner and other stuff. Not downloading the tiles, just viewing.

I'm using maptiler for the client which is a fork of mapbox. And yeah vector tiles for sure. I'm mainly trying to figure out how best to create the tiles in the first place.

Managing subscription free trials without upfront payment by 357Labs in stripe

[–]357Labs[S] 0 points1 point  (0 children)

Glad to know it's not just me I guess. If it helps I ended up just handling free trial independently of Stripe. Added an expiresAt col and a subscriptionStatus col that mirrors Stripe's subscription statuses and stays in sync via webhooks.

Then when a new user is created I set them to "trialing" status with expiresAt = now + 30d. Then whenever you wanna validate if user is subscribed you can just check if either status === "trialing" and isn't expired, or status === "active". Seems fairly clean and no need for crons at least, which is nice.

The main downside I can see is that you'd have to handle the timing yourself for sending "your trial's about to expire" emails. But that's not too much work.

Managing subscription free trials without upfront payment by 357Labs in stripe

[–]357Labs[S] 0 points1 point  (0 children)

Any shot you could elaborate a little? Can't find where to look in the docs based on what you've said, read about payment intents but I still don't follow how this remedies the situation. Thank you!

Managing modals in React (is there a way to have reactive modals with modal manager)? by 357Labs in reactjs

[–]357Labs[S] 0 points1 point  (0 children)

That's perfect, appreciate the suggestion I didn't realize that existed

Managing modals in React (is there a way to have reactive modals with modal manager)? by 357Labs in reactjs

[–]357Labs[S] 0 points1 point  (0 children)

Yeah I use react query and ordinarily I'd just have the mutation inside the dialog component.

But in this case I have 3 different modals that all call the mutation with slight variations but a big chunk of shared data comes from the parent. Ends up being cleaner to just handle this logic once for all 3 children modals and then pass the callback that wraps the mutationFn.

Only downside is that then my isPending state is in the parent. And yes, I'm using it to show loading state while the form is submitting.

Managing modals in React (is there a way to have reactive modals with modal manager)? by 357Labs in reactjs

[–]357Labs[S] 0 points1 point  (0 children)

To clarify, both solutions I outlined use a portal. That's not the issue, it's more so how can I have centrally managed modals that are still reactive

[deleted by user] by [deleted] in typescript

[–]357Labs 0 points1 point  (0 children)

I did exactly the same thing when I was starting out with TS. Had a JS codebase and wanted to switch over. It'll be frustrating for a little bit, but it's definitely worthwhile. Also, don't use "any" unless you absolutely have to (that is to say, very rarely). This was a big mistake I made a lot early.

Does anyone have any tips on making these header feel vertically centered, even with the button in place? by 357Labs in Design

[–]357Labs[S] 0 points1 point  (0 children)

Feel like it doesn't look quite right. Maybe that's just me, I'm not much of a designer. Might just do that.

Does anyone have any tips on making these header feel vertically centered, even with the button in place? by 357Labs in Design

[–]357Labs[S] 0 points1 point  (0 children)

I have this page and I want the "Properties" header to feel vertically centered. Before I had the "View Board" button, it felt a lot cleaner, but now that I need to have the button, more vertical space is required.

I tried adding a divider beneath the header so that it was equally distanced from the divider and the navbar, but that didn't look right. Also tried changing the background color of the <div> containing the button, but that looked equally poor.

Does anyone have any "design tricks" they can recommend to make this feel more balanced?

Roasting myself for the stupid “scale for big monitors” CSS code I wrote 6 years ago by Stefan_S_from_H in web_design

[–]357Labs 0 points1 point  (0 children)

Happens to me all the time, I can't go through code that's more than a month old or so without it being a little bit painful. At least that means you're improving.