feat: 🎸 create routes for session-recording and channels (#89)
* feat: 🎸 create routes for session-recording and channels ✅ Closes: ICU-8241 * refactor: 💡 add hardcoded ids to make route navigation possible these are temporary and will be removed upon feature completion * refactor: 💡 rename channels route to channels-by-connection
This commit is contained in:
1 parent
319591b2e8
commit
c74d53931c
13 files changed
+85
-2
No files matched your search
@@ -220,6 +220,9 @@ session-recordings:
|
||||
storage-bucket:
|
||||
title: Storage Bucket
|
||||
title_plural: Storage Buckets
|
||||
channel:
|
||||
title: Channel
|
||||
title_plural: Channels
|
||||
project:
|
||||
title: Project
|
||||
title_plural: Projects
|
||||
|
||||
@@ -141,9 +141,13 @@ Router.map(function () {
|
||||
this.route(
|
||||
'session-recording',
|
||||
{ path: ':session_recording_id' },
|
||||
function () {}
|
||||
function () {
|
||||
this.route('channels-by-connection', function () {
|
||||
this.route('channel', { path: ':channel_id' }, function () {});
|
||||
});
|
||||
}
|
||||
);
|
||||
this.route('storage-buckets', function() {});
|
||||
this.route('storage-buckets', function () {});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,4 +3,9 @@ import Route from '@ember/routing/route';
|
||||
export default class ScopesScopeSessionRecordingsSessionRecordingRoute extends Route {
|
||||
// =services
|
||||
// =methods
|
||||
model() {
|
||||
return {
|
||||
scope_id: 'sr_1234567890',
|
||||
};
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConnectionRoute extends Route {}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConnectionChannelRoute extends Route {
|
||||
model() {
|
||||
return {
|
||||
scope_id: 'srcc_1234567890',
|
||||
};
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConnectionIndexRoute extends Route {}
|
||||
@@ -1,3 +1,4 @@
|
||||
{{page-title @model.displayName}}
|
||||
|
||||
<p>{{@model.scope_id}}</p>
|
||||
{{outlet}}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{{page-title (t 'resources.session-recordings.channel.title_plural')}}
|
||||
|
||||
{{outlet}}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{{page-title (t 'resources.session-recordings.channel.title')}}
|
||||
|
||||
<p>{{@model.scope_id}}</p>
|
||||
{{outlet}}
|
||||
Whitespace-only changes.
+16
@@ -0,0 +1,16 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupTest } from 'admin/tests/helpers';
|
||||
|
||||
module(
|
||||
'Unit | Route | scopes/scope/session-recordings/session-recording/channels-by-connection',
|
||||
function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it exists', function (assert) {
|
||||
let route = this.owner.lookup(
|
||||
'route:scopes/scope/session-recordings/session-recording/channels-by-connection'
|
||||
);
|
||||
assert.ok(route);
|
||||
});
|
||||
}
|
||||
);
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupTest } from 'admin/tests/helpers';
|
||||
|
||||
module(
|
||||
'Unit | Route | scopes/scope/session-recordings/session-recording/channels-by-connection/channel',
|
||||
function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it exists', function (assert) {
|
||||
let route = this.owner.lookup(
|
||||
'route:scopes/scope/session-recordings/session-recording/channels-by-connection/channel'
|
||||
);
|
||||
assert.ok(route);
|
||||
});
|
||||
}
|
||||
);
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupTest } from 'admin/tests/helpers';
|
||||
|
||||
module(
|
||||
'Unit | Route | scopes/scope/session-recordings/session-recording/channels-by-connection/index',
|
||||
function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it exists', function (assert) {
|
||||
let route = this.owner.lookup(
|
||||
'route:scopes/scope/session-recordings/session-recording/channels-by-connection/index'
|
||||
);
|
||||
assert.ok(route);
|
||||
});
|
||||
}
|
||||
);
|
||||
Reference in new issue
Block a user