None of the Tleilaxu cards are showing for some reason, even though I have Immortality expansion checked above. Also a significant number of Imperium (5 of 30) and Intrigue (13 of 15) cards from Immortality are not showing in their respective sections either. I checked the data in google sheets and they're all there though. I'm not seeing what's different about those particular cards that might make them not show up. I think you've made an awesome tool here, and I am excited to give it a try, so hope you are able to figure this out. Thanks!
Hey, Matthew. I think I figured out what the issue is. The third option in the "Game Setup" is supposed to auto-select all of the mechanics associated with the expansions you selected (e.g. "Tech" is selected automatically if "Rise of Ix" is selected), but I changed some code that broke that. It should work now.
For clarity, if you have an expansion enabled (e.g. Immortality) but have the specific mechanics of that expansion disabled (e.g. "Research" and "Grafting" are unchecked), the tables of Imperium and Intrigue cards won't display cards that use those unchecked mechanics. For example, the Imperium card "For Humanity" would show up because it doesn't rely on any new mechanics, but "Bene Tleilax Lab" wouldn't. That functionality was still working before, I think; it just wasn't auto-selecting the mechanics as intended.
Take a spin now and let me know if it's still not working.
I didn't pull the code into VSCode but I was able to implement filtering for the cardInput cell. I've also now just figured out that the data was coming from a Google Sheet. Duh. Apologies for missing that. I've created a copy and am going to chip away at validating the data therein. I'm also gonna add a Dreadnoughts column so the filter for that works as well. As a rule, ignore all of the suggestions I made in the first comment, because I am now able to fix them for myself.
Feel free to take as much code as you want from my fork. You created the original thing and I barely touched it, so I'm not gonna worry about copyright or anything for this project.
Hey! Sorry for getting to these a month later. This is a cool feature of Observable that I haven’t used much.
I’ll take a look through your fork and see what you’ve done.
Everything you added seems like really great additions, including some things I didn’t even know were possible, liked the grayed out expansions select boxes. I’ll definitely be copying most of your new implementations.
I’m completely self-taught on all things data / JavaScript, so I only really know how to build things I’ve imagined a need for and then powered through to learn. I’d be very down to collaborate on a future version of this if there’s value in that. If there’s some hard changes to the original Google Sheet that make handling the data easier, I’m down.
I've actually started a standalone project based off of this (though I didn't reuse any of the code). I can add you to it on GitHub if you would like. Just send me your deets. I've also copied the card spreadsheet and made some modifications with a buddy. I can share that with you as well if you'd like.