How nextcloud/tables works
Nextcloud Tables lets users build custom tables, define columns, manage rows, and organize tables and views. The main workflow runs from the table UI through API controllers to domain services and persistent data; views configure how table data is presented. Separate branches cover contexts, importing, sharing, and federation. The README documents templates and creating tables from scratch. Some backend links are supported only by the SOURCE INDEX; unsampled implementation details and uncertain routing are omitted.
Main entry points: Api1Controller.php API controllers · App.vue Tables app · ContextService.php Context organization · TableService.php Table management
Components 21
User interface
- Tables app
src/App.vue - Table interface
src/modules/main/sections/Table.vue - Data grid
src/shared/components/ncTable/sections/CustomTable.vue - Navigation
src/modules/navigation/sections/Navigation.vue - Sharing interface
src/modules/sidebar/sections/SidebarSharing.vue
API and domain
- API controllers
lib/Controller/Api1Controller.php - Table management
lib/Service/TableService.php - Column management
lib/Service/ColumnService.php - Row operations
lib/Service/RowService.php - View configuration
lib/Service/ViewService.php - Permission checks
lib/Service/PermissionsService.php
Organization and sharing
- Context organization
lib/Service/ContextService.php - Data import
lib/Service/ImportService.php - Sharing
lib/Service/ShareService.php - Federation
lib/Service/FederationService.php - Activity tracking
lib/Activity/ActivityManager.php
Persistence
- Table records
lib/Db/Table.php - Table storage
lib/Db/TableMapper.php - View records
lib/Db/View.php - View storage
lib/Db/ViewMapper.php
Other components
- Nextcloud user
Connections 24
- Nextcloud user → Tables app: uses
README.md - Tables app → Navigation: renders
src/App.vue - Tables app → Sharing interface: renders
src/App.vue - Tables app → Table interface: opens
- Table interface → Data grid: renders
- Table interface → API controllers: requests data
- API controllers → Table management: manages tables
lib/Controller/Api1Controller.php - API controllers → Column management: manages columns
lib/Controller/Api1Controller.php - API controllers → Row operations: operates rows
lib/Controller/Api1Controller.php - API controllers → View configuration: configures views
lib/Controller/Api1Controller.php - API controllers → Context organization: manages contexts
- API controllers → Data import: imports data
lib/Controller/Api1Controller.php - API controllers → Sharing: manages shares
lib/Controller/Api1Controller.php - Table management → Table storage: reads and writes
lib/Service/TableService.php - Table management → Activity tracking: records activity
lib/Service/TableService.php - View configuration → View storage: reads and writes
lib/Service/ViewService.php - View configuration → Table records: uses table
lib/Service/ViewService.php - Context organization → Table management: gets table schemes
lib/Service/ContextService.php - Context organization → View configuration: gets view schemes
lib/Service/ContextService.php - Context organization → Sharing: deletes context shares
lib/Service/ContextService.php - Sharing → Federation: notifies remote shares
lib/Service/ShareService.php - Sharing → Permission checks: checks access
lib/Service/ShareService.php - Table storage → Table records: maps records
- View storage → View records: maps records
lib/Db/ViewMapper.php