@fleetbase/solid-engine 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon/extension.js +2 -2
- package/addon/templates/home.hbs +0 -29
- package/composer.json +1 -1
- package/extension.json +4 -2
- package/package.json +5 -4
- package/server/src/Http/Controllers/DataController.php +57 -0
- package/server/src/Services/AclService.php +259 -0
- package/server/src/Services/PodService.php +49 -2
- package/server/src/Services/ResourceSyncService.php +8 -0
- package/ACL_SOLUTION.md +0 -72
- package/CSS_SCOPE_ISSUE.md +0 -140
- package/HOTFIX_SYNTAX_ERROR.md +0 -100
- package/MANUAL_ACL_SETUP.md +0 -135
- package/REFACTORING_SUMMARY.md +0 -330
- package/VERIFICATION_CHECKLIST.md +0 -82
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# Refactoring Verification Checklist
|
|
2
|
-
|
|
3
|
-
## Code Cleanup ✓
|
|
4
|
-
- [x] Removed old `addon/routes/pods/` directory
|
|
5
|
-
- [x] Removed old `addon/controllers/pods/` directory
|
|
6
|
-
- [x] Removed old `addon/templates/pods/` directory
|
|
7
|
-
- [x] Removed `server/src/Http/Controllers/PodController.php`
|
|
8
|
-
- [x] Removed `server/src/Http/Controllers/ContainerController.php`
|
|
9
|
-
- [x] Removed commented code from `addon/templates/application.hbs`
|
|
10
|
-
- [x] Removed commented routes from `server/src/routes.php`
|
|
11
|
-
|
|
12
|
-
## New Files Created ✓
|
|
13
|
-
- [x] `addon/routes/data/index.js`
|
|
14
|
-
- [x] `addon/routes/data/content.js`
|
|
15
|
-
- [x] `addon/controllers/data/index.js`
|
|
16
|
-
- [x] `addon/controllers/data/content.js`
|
|
17
|
-
- [x] `addon/templates/data/index.hbs`
|
|
18
|
-
- [x] `addon/templates/data/content.hbs`
|
|
19
|
-
- [x] `server/src/Http/Controllers/DataController.php`
|
|
20
|
-
|
|
21
|
-
## Routes Updated ✓
|
|
22
|
-
- [x] `addon/routes.js` - Simplified to data routes
|
|
23
|
-
- [x] `server/src/routes.php` - Updated API endpoints
|
|
24
|
-
|
|
25
|
-
## Templates Updated ✓
|
|
26
|
-
- [x] `addon/templates/application.hbs` - Sidebar navigation
|
|
27
|
-
- [x] `addon/templates/home.hbs` - Quick actions and terminology
|
|
28
|
-
|
|
29
|
-
## Controllers Updated ✓
|
|
30
|
-
- [x] `addon/controllers/home.js` - Navigation method
|
|
31
|
-
|
|
32
|
-
## Services Updated ✓
|
|
33
|
-
- [x] `server/src/Services/PodService.php` - Added createFolder() and deleteResource()
|
|
34
|
-
|
|
35
|
-
## Terminology Changes ✓
|
|
36
|
-
- [x] "Pods" → "Data" throughout UI
|
|
37
|
-
- [x] "Container" → "Folder" in code comments and user-facing text
|
|
38
|
-
- [x] Updated all user-facing messages
|
|
39
|
-
|
|
40
|
-
## Testing Required
|
|
41
|
-
- [ ] OIDC authentication flow
|
|
42
|
-
- [ ] Pod URL extraction from WebID
|
|
43
|
-
- [ ] Data browser loads correctly
|
|
44
|
-
- [ ] Folder creation works
|
|
45
|
-
- [ ] Folder navigation works
|
|
46
|
-
- [ ] File/folder deletion works
|
|
47
|
-
- [ ] Resource import (vehicles, drivers, contacts, orders)
|
|
48
|
-
- [ ] Search functionality
|
|
49
|
-
- [ ] Error handling (401, invalid inputs)
|
|
50
|
-
|
|
51
|
-
## API Endpoints to Test
|
|
52
|
-
|
|
53
|
-
### GET /solid/int/v1/data
|
|
54
|
-
Expected: Returns root contents of user's pod
|
|
55
|
-
|
|
56
|
-
### GET /solid/int/v1/data/folder/{slug}
|
|
57
|
-
Expected: Returns contents of specified folder
|
|
58
|
-
|
|
59
|
-
### POST /solid/int/v1/data/folder
|
|
60
|
-
Payload: `{ "name": "test-folder", "path": "" }`
|
|
61
|
-
Expected: Creates new folder
|
|
62
|
-
|
|
63
|
-
### DELETE /solid/int/v1/data/{type}/{slug}
|
|
64
|
-
Example: `DELETE /solid/int/v1/data/folder/vehicles`
|
|
65
|
-
Expected: Deletes specified folder or file
|
|
66
|
-
|
|
67
|
-
### POST /solid/int/v1/data/import
|
|
68
|
-
Payload: `{ "resource_types": ["vehicles", "drivers"] }`
|
|
69
|
-
Expected: Imports selected resources into folders
|
|
70
|
-
|
|
71
|
-
## Files Count Summary
|
|
72
|
-
- **Created:** 7 files
|
|
73
|
-
- **Modified:** 6 files
|
|
74
|
-
- **Deleted:** 14 files (12 frontend + 2 backend)
|
|
75
|
-
- **Net change:** -1 files (cleaner codebase!)
|
|
76
|
-
|
|
77
|
-
## Code Quality Checks
|
|
78
|
-
- [x] No references to old `pods.explorer` or `pods.index` routes
|
|
79
|
-
- [x] No references to `PodController` or `ContainerController`
|
|
80
|
-
- [x] All imports and dependencies updated
|
|
81
|
-
- [x] Consistent naming conventions (data/folder)
|
|
82
|
-
- [x] Clean, readable code structure
|