question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chonky 2.x release

Remaining todos:

  • Move ChonkyIconFA into the (currently empty) chonky-icon-fontawesome package
  • Migrate List view file entry from SCSS to JSS
  • Fix drag & drop indicator when selection is dropped onto itself
  • Migrate 1.x documentation to Docz
  • Write docs for the new file action framework
  • Improve Noty popups in demos
  • Fix custom context menu handlers consuming events even when FileContextMenu component is not enabled
  • Show file array validation error in the UI & console Validation errors are only shown in console now for better UX.
  • Add keyboard shortcut integration to the new search component (Ctrl+F, Escape).
  • Fix default config applying default file view/sort actions twice.
  • Fix shift-click range selection working when disableSelection is set to true.
  • Fix dark mode version of the docs banner.
  • Add FullFileBrowser component.
  • Add a method for programatically requesting actions to the file browser handle.
  • Fix font size in live editor in Docz
  • Fix zoom and text overflow in search bar on mobile
  • Add built-in file actions API reference page

Stretch goals:

  • Add folderChainIcon field to FileData.
  • Expand DnD documentation (namely describe what checks happen when files are dropped).
  • Support custom toolbar/context menu ordering
  • Global search support (toggling between global & local search)
  • Action buttons support (Submit/Cancel)
  • Support custom properties display (in addition to default file size/mod date)
  • Support custom component classes (similar to Material UI)
  • Support dark mode
  • Support JS theme overriding
  • Improve folder structure for components
  • Disable backdrop on context menu so people can click/right click other things without having to dismiss the menu explicitly.
  • Improve file browser styling on mobile
  • Polish the compact view
  • Support drag & drop into folder chain and opening files via drag & drop
  • Add a way to highlight/style specific file entries
  • Investigate Cannot have two HTML5 backends error on hot reload even when using external DnDProviders.
  • Improve TypeDoc component in Docz.
  • Add deprecation notices & links to 1.x documentation website.
  • Rename action.fileFilter into aciton.selectionFilter (with backwards-compatible deprecation warning for fileFilter).
  • Add action.option.fileFilter for hiding files (similar to built-in “Show hidden files” functionality).
  • Support localization.
  • Decrease bundle size.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
TimboKZcommented, Nov 9, 2020

Thanks @TheAksh! Moving files to the parent directory using drag & drop is not supported yet, but I’m planning to work on this soon. I’ll use the mechanism suggested in #42.

Thanks @AndreyVanyakin, it’s an interesting question!

I think Recoil is a great library and I definitely enjoyed using it. The main pitfall in my opinion is that it is still experimental - it’s not very stable (as you might have seen from many console errors in Chonky 1.x), and the developers are keen on using experimental React features which forces library users to upgrade to the most recent version of React. They are doing some cool things under the hood so it’s understandable, but I didn’t want to force people to upgrade just because Chonky uses Recoil under the hood.

Recoil’s experimental status was a nuisance but it was not the main driver for switching to Redux. I’d say there were 3 reasons for switching (in the descending order of importance):

  1. Individual Recoil atoms were hard to maintain - they were initialised & updated in different files all around the place. They also had arbitrary cross-dependencies, and it was a nightmare to debug. I’m sure I could improve the file structure and abstraction to make it more centralised, but I felt like I would just be reinventing Redux.
  2. As you know, file actions are probably the most important feature Chonky has, and I needed to find a way to represent state such that it could be easily changed from file action effects. I feel like Redux does the job reasonably well, and I’m not sure if this would even be possible with Recoil.
  3. It’s gonna sound weird, but I found Recoil to be too tightly coupled with React for my needs. Everything needed to be done using hooks, which meant your state logic had to be aware of React and React re-renders in some way. It’s not a huge problem, but it’s annoying.

In conclusion, I will repeat that I really enjoyed using Recoil and will definitely use it again in some smaller component libraries. There is virtually zero boilerplate in Recoil, but nowadays Redux boilerplate is not that annoying either (thanks Redux Toolkit!). I also wouldn’t be surprised if over time Recoil would introduce more Redux-like features (or vice versa) to become the greatest state management library ever built.

P.S. I unknowingly re-invented createSlice from Redux Toolkit around a year ago. If I knew it was already a thing back then, Chonky would likely use Redux from the start.

1reaction
AndreyVanyakincommented, Nov 9, 2020

Thanks for such a detailed response. I started a new project with Recoil and it felt awesome after all the overhead code Redux enforces. Hopefully, the team behind Recoil won’t stop moving forward and I don’t have to switch to Redux 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cisco DNA Center - Release Notes
Release Notes for Cisco DNA Center Platform, Release 1.3.3.x 10/Aug/2020 · Release Notes for Cisco DNA Center Platform, Release 1.3.1.x 28/Apr/2020 · Release ......
Read more >
2.0.x release versions | Dataproc Documentation - Google Cloud
Component 2.0.53‑debian10/‑ubuntu18/‑rocky8 2022/12/19 2.0.52‑debian10/‑ubuntu1... Apache Atlas 2.0.0 2.0.0 Apache Flink 1.12.5 1.12.5 Apache Hadoop 3.2.3 3.2.3
Read more >
Docker for Windows 2.x release notes
This page contains release notes for Docker Desktop for Windows 2.x. Docker Desktop Community 2.5.0.1 . 2020-11-10. Download Docker Desktop.
Read more >
Apache Log4j 2.19.0 Release Notes - GitHub
Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements ......
Read more >
Release Notes - Xray 2.x - JFrog Wiki
Xray 2.16.0. Released: August 2, 2020. Feature Enhancements. Go Version Upgrade. The Go version with Xray has been upgraded to version 1.14 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found