-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make table columns resizable and/or hideable #2468
Comments
Hi @johncowen and @jakubdyszkiewicz ! Could we please put this on hold until we hear back from Jason regarding any usability improvements he’d like to make to the KTable UX enhancements? We want to make sure that we incorporate his feedback before applying these changes to other tables in Konnect. I’ll be sure to write a follow-up comment on this PR once we’ve gotten his blessing. For more details, see https://kongstrong.slack.com/archives/C047HAF5STU/p1713799754188899?thread_ts=1713556888.785669&cid=C047HAF5STU |
Oh hey @miko-bautista 👋 I'm sure that will be fine! Thanks! |
@johncowen Thank you for waiting! This is now unblocked! 🙌 |
Whilst the feature here is making our table columns resizable, kongponents provides us with this functionality. But kongponents rightly doesn't dictate how you should persist the column sizes once resized. Therefore the majority of this PR is providing a way application-wide that we can persist and retrieve user preference/settings/values etc. Here we use `localStorage` but we could just as well switch in a separate set of `sources` to use something different such as a users session. I chose to key settings by route name, and after doing so I figured we may as well make all this available via `RouteView`. Notes: - Adds `DataSink`, a writing version of `DataSource`. The most important thing for me here is the interface. The innards of `DataSink` and how it works under-the-hood will no doubt change, but I don't want to do all that at this stage, only enough for me to add this feature. - Moves `DataSource:src="/me"` into RouteView and then provides RouteView#me via RouteViews slot. I figure every route will potentially need to get/set user persisted values so we may as well make it available via the RouteView rather than have to repeatedly add the DataSource everytime as we do previoius to this PR. - I've only done `MeshListView` for now for proof-of-concept, if I get an initial approval of this, next steps will be to roll this out everywhere. Part of #2468 --- Signed-off-by: John Cowen <[email protected]>
Description
Kongponents recently added the ability to make the columns of KTable resizable/hideable.
We should see where we can make use of this.
The text was updated successfully, but these errors were encountered: