How itays/bindecy-interview works
This is a client-side React file explorer designed for 10k–100k nodes. Users browse a virtualized, paginated folder tree, filter by name/size/category, preview selected files, and create or delete nodes. The README documents the loader/store/API flow and the major capabilities; several state and tree implementations are not excerpted, so their relationships below rely on that documentation rather than claims of source inspection.
Main entry points: file-explorer.tsx Explorer screen · file-preview.tsx Preview panel · loader.ts Listing loader · explorer-store.ts Explorer store
Components 22
Browse and filter
- Explorer screen
app/features/file-explorer/ui/file-explorer.tsx - Filter toolbar
app/features/file-explorer/ui/filter-toolbar/filter-toolbar.tsx - Tree panel
app/features/file-explorer/ui/tree/tree-panel.tsx - Virtual tree
app/features/file-explorer/ui/tree/virtual-tree.tsx - Tree rows
app/features/file-explorer/ui/tree/tree-row.tsx - Tree keyboard
app/features/file-explorer/ui/tree/tree-keyboard.ts
File preview
- Preview panel
app/features/file-explorer/ui/preview/file-preview.tsx - Node detail hook
app/features/file-explorer/ui/preview/use-node-detail.ts - Media renderers
app/features/file-explorer/ui/preview/preview-media.tsx - Preview fallback
app/features/file-explorer/ui/preview/preview-fallback.tsx - Preview URL check
app/features/file-explorer/ui/preview/preview-url.ts
Node changes
- Tree actions
app/features/file-explorer/ui/tree/tree-actions.tsx - Create dialog
app/features/file-explorer/ui/crud/create-node-dialog.tsx - Delete dialog
app/features/file-explorer/ui/crud/delete-node-dialog.tsx
Explorer runtime
- Visible rows
app/features/file-explorer/state/visible-rows.ts - Filter and sort rules
app/features/file-explorer/domain/filters.ts - Explorer store
app/features/file-explorer/state/explorer-store.ts - Listing loader
app/features/file-explorer/state/loader.ts - Mock explorer API
app/features/file-explorer/api/file-explorer-api.ts - Mutation handlers
app/features/file-explorer/state/mutations.ts - Explorer provider
app/features/file-explorer/state/explorer-provider.tsx
Other components
- User
Connections 28
- User → Explorer screen: opens
- Explorer screen → Filter toolbar: renders
app/features/file-explorer/ui/file-explorer.tsx - Explorer screen → Tree panel: renders
app/features/file-explorer/ui/file-explorer.tsx - Explorer screen → Preview panel: renders
app/features/file-explorer/ui/file-explorer.tsx - Filter toolbar → Listing loader: applies filters
- Filter toolbar → Explorer store: reads counts
app/features/file-explorer/ui/filter-toolbar/filter-toolbar.tsx - Tree panel → Virtual tree: renders
app/features/file-explorer/ui/tree/tree-panel.tsx - Virtual tree → Tree rows: renders
app/features/file-explorer/ui/tree/virtual-tree.tsx - Virtual tree → Tree keyboard: delegates keys
app/features/file-explorer/ui/tree/virtual-tree.tsx - Virtual tree → Visible rows: displays rows
- Tree rows → Listing loader: requests pages
app/features/file-explorer/ui/tree/tree-row.tsx - Tree rows → Explorer store: reads node state
app/features/file-explorer/ui/tree/tree-row.tsx - Listing loader → Mock explorer API: lists children
- Mock explorer API → Listing loader: returns pages
- Listing loader → Explorer store: writes results
app/features/file-explorer/state/loader.ts - Explorer store → Filter and sort rules: uses filter rules
app/features/file-explorer/state/explorer-store.ts - Preview panel → Node detail hook: loads selection
app/features/file-explorer/ui/preview/file-preview.tsx - Node detail hook → Mock explorer API: fetches node
- Preview panel → Media renderers: renders media
app/features/file-explorer/ui/preview/file-preview.tsx - Preview panel → Preview fallback: shows fallback
app/features/file-explorer/ui/preview/file-preview.tsx - Preview panel → Preview URL check: validates URL
app/features/file-explorer/ui/preview/file-preview.tsx - Tree actions → Create dialog: opens dialog
app/features/file-explorer/ui/tree/tree-actions.tsx - Tree actions → Delete dialog: opens dialog
app/features/file-explorer/ui/tree/tree-actions.tsx - Create dialog → Mutation handlers: creates node
- Delete dialog → Mutation handlers: deletes node
- Mutation handlers → Mock explorer API: sends changes
- Mutation handlers → Explorer store: patches listings
app/features/file-explorer/state/mutations.ts - Explorer screen → Explorer provider: uses context