Comments (9)
I'll get started on this, at least the data for now. I'm not sure I want to make any changes to the tables themselves if we're going to merge in the mui-datatables pr soon.
from theouterrim.
What I'm thinking so far is that the restricted value will be another hidden column (like generatedId), we'll give the price columns a custom renderer that conditionally prepends (R) on restricted items, and I'm hoping that the sorting will be done based on the data value and not the display value. If not, a custom sort function should handle that.
from theouterrim.
Let me see if I can get you a screenshot:
from theouterrim.
Yeah, that's very broken, thanks.
from theouterrim.
Excellent! Thanks for snapping up another issue. As soon as I finished poking around at the new table, we'll get that in.
I look forward to your solution on the (R)
issue here. Whatever you come up with could also be used in #45 with +
for some weapons.
from theouterrim.
Got this working, though it looks like the table wants to break the price column once you have more than 4 digits in the price, like this:
Is this something we care to fix? Should be possible to just change the word-breaking css. I've also noticed that a lot of column seem to break annoyingly leading to some items, like weapons with lots of qualities or anything that's in all the core books, ending up 5-6 rows tall. We could just make nothing break, though that would probably significantly widen most of the tables.
UPDATE: Actually, looks like the wrapping depends on what else is there, as the table lets the columns determine their widths dynamically. I have no idea what logic the table itself uses to determine how wide the table as a whole should be, but I have a feeling it might depend on how wrappable the column values themselves are. Something like the Special column on the Weapons table wraps to almost 1 entry per line, whereas the starships table has less easily-wrapped column, so the whole thing ends up wider.
from theouterrim.
Very cool that you got this working.
I think we're fine just leaving the wrapping as it is, considering the dynamism of it. If it ends up being really annoying we can revisit it.
from theouterrim.
Sounds good, once #52 is merged I'll open the PR for this
from theouterrim.
Awesome, merged.
from theouterrim.
Related Issues (20)
- Update EotE Core Rulebook audited data
- Invalid prop type in column provider HOT 1
- Check on reported Intuitive Navigation issue
- Add new Vehicle Weapons section
- Add new sections to content status page
- Add slug to end of resource URLs HOT 1
- 'PRICE_FILTER_OPTIONS' was not found in './shared/ColumnHelper' HOT 1
- Add code of conduct to repository
- Add contributing guidelines to repository
- Lannik species appears two times in species table HOT 1
- Makashi Technique - wrong index HOT 2
- Category is pinned to left column in tables
- Upgrade to Gatsby 3
- Fix the billion mui-datatables deprecation notices
- Typos and other oddities HOT 2
- Upgrade to Gatsby v4 HOT 2
- Upgrade material-ui to V5 HOT 5
- Upgrade to Gatsby v5
- Migrate off of Gatsby
- Request: Adding crafting rules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from theouterrim.