Skip to content

Commit 672b5d5

Browse files
committed
release ready
1 parent aabde75 commit 672b5d5

6 files changed

Lines changed: 27 additions & 24 deletions

File tree

addon/components/modals/create-solid-folder.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<Input
1111
@type="text"
1212
@value={{@options.folderName}}
13-
@onInput={{fn (mut @options.folderName)}}
1413
placeholder="Enter folder name (e.g., vehicles, drivers)"
1514
class="w-full form-input"
1615
/>

addon/controllers/data/index.js

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,22 @@ export default class DataIndexController extends Controller {
103103
modal.startLoading();
104104

105105
try {
106-
const response = await this.fetch.post('data/folder', {
107-
name: folderName
108-
}, {
109-
namespace: 'solid/int/v1'
110-
});
106+
const response = await this.fetch.post(
107+
'data/folder',
108+
{
109+
name: folderName,
110+
},
111+
{
112+
namespace: 'solid/int/v1',
113+
}
114+
);
111115

112116
if (response.success) {
113117
this.notifications.success(`Folder "${folderName}" created successfully!`);
114118
this.hostRouter.refresh();
115119
return modal.done();
116120
}
117-
121+
118122
this.notifications.error(response.error || 'Failed to create folder.');
119123
} catch (error) {
120124
this.notifications.serverError(error);
@@ -143,27 +147,31 @@ export default class DataIndexController extends Controller {
143147
resourceTypes[type] = !resourceTypes[type];
144148
},
145149
confirm: async (modal) => {
146-
const selected = Object.keys(resourceTypes).filter(type => resourceTypes[type]);
147-
150+
const selected = Object.keys(resourceTypes).filter((type) => resourceTypes[type]);
151+
148152
if (selected.length === 0) {
149153
return this.notifications.warning('Please select at least one resource type to import.');
150154
}
151155

152156
try {
153157
modal.setOption('importProgress', `Importing ${selected.join(', ')}...`);
154-
155-
const response = await this.fetch.post('data/import', {
156-
resource_types: selected
157-
}, {
158-
namespace: 'solid/int/v1'
159-
});
158+
159+
const response = await this.fetch.post(
160+
'data/import',
161+
{
162+
resource_types: selected,
163+
},
164+
{
165+
namespace: 'solid/int/v1',
166+
}
167+
);
160168

161169
if (response.success) {
162170
this.notifications.success(`Successfully imported ${response.imported_count} resources!`);
163171
this.hostRouter.refresh();
164172
return modal.done();
165173
}
166-
174+
167175
this.notifications.error(response.error || 'Failed to import resources.');
168176
modal.setOption('importProgress', null);
169177
} catch (error) {

addon/controllers/home.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default class HomeController extends Controller {
1111
@service modalsManager;
1212
@tracked authStatus = null;
1313

14-
1514
constructor() {
1615
super(...arguments);
1716
this.checkAuthenticationStatus.perform();
@@ -57,11 +56,11 @@ export default class HomeController extends Controller {
5756
}
5857

5958
@task *navigateToPods() {
60-
this.hostRouter.transitionTo('console.solid-protocol.data');
59+
yield this.hostRouter.transitionTo('console.solid-protocol.data');
6160
}
6261

6362
@task *navigateToAccount() {
64-
this.hostRouter.transitionTo('console.solid-protocol.account');
63+
yield this.hostRouter.transitionTo('console.solid-protocol.account');
6564
}
6665

6766
get isAuthenticated() {
@@ -98,8 +97,6 @@ export default class HomeController extends Controller {
9897
return 'http://localhost:3000';
9998
}
10099

101-
102-
103100
get storageLocations() {
104101
return this.userProfile.storage_locations || [];
105102
}

addon/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
const menuService = universe.getService('menu');
66

77
// Register menu item in header
8-
const iconOptions = { iconComponent: new ExtensionComponent('@fleetbase/solid-engine', 'solid-brand-icon'), iconComponentOptions: { width: 19, height: 19 } };
8+
// const iconOptions = { iconComponent: new ExtensionComponent('@fleetbase/solid-engine', 'solid-brand-icon'), iconComponentOptions: { width: 19, height: 19 } };
99
menuService.registerHeaderMenuItem('Solid', 'console.solid-protocol', { priority: 5 });
1010

1111
// Register admin settings -- create a solid server menu panel with it's own setting options

addon/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import buildRoutes from 'ember-engines/routes';
33
export default buildRoutes(function () {
44
this.route('home', { path: '/' });
55
this.route('account');
6-
this.route('data', { path: '/data' }, function () {
6+
this.route('data', function () {
77
this.route('content', { path: '/:slug' });
88
});
99
});

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ module.exports = buildEngine({
1313
return true;
1414
},
1515
});
16-

0 commit comments

Comments
 (0)