Skip to content
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

[Discover 2.0][Feature Request] Persistent Column Width in Data Grid Table #5726

Open
ananzh opened this issue Jan 23, 2024 · 0 comments
Open
Labels
discover for discover reinvent enhancement New feature or request table reinvent v2.16.0

Comments

@ananzh
Copy link
Member

ananzh commented Jan 23, 2024

Is your feature request related to a problem? Please describe.

Our current implementation of the data grid table utilizes OuiDataGrid, which allows users to adjust the width of table columns. Users invest time customizing these settings to suit their preferences. To enhance user experience, it's beneficial to make these adjustments persistent across sessions.

Describe the solution you'd like

I propose three options to address this:

  • Local Storage: Utilize the local storage capability provided by OpenSearch Dashboards' Storage service. This approach ensures that user preferences, such as specific column widths, are retained across browser sessions. However, this solution is not entirely permanent, as these settings can be lost if the user clears their browser storage. Additionally, this approach does not save the preferences in the saved search.

  • State Storage: Store the column width settings in the application's state, possibly using Redux. When a user loads a table from a saved search, the application first checks for any saved column width settings in the state. This method provides a more integrated solution within the application's ecosystem.

  • Hybrid Approach: Implement both local storage and state storage. This approach provides the benefits of both methods, ensuring a fallback mechanism if one fails and offering a more robust solution.

Additional Considerations

  • It's important to balance user convenience with the potential risks of storing data in local storage, particularly concerning data privacy and security, which should not be a big deal given only column width.
  • The implementation should be user-friendly, intuitive, and should seamlessly integrate with the existing user interface of OpenSearch Dashboards.
  • A mechanism to revert to default settings might also be beneficial, providing users with an option to reset their customizations easily.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discover for discover reinvent enhancement New feature or request table reinvent v2.16.0
Projects
None yet
Development

No branches or pull requests

2 participants