diff --git a/.github/workflows/install-test.yaml b/.github/workflows/install-test.yaml index caa6d1bd68..30cc9f9abd 100644 --- a/.github/workflows/install-test.yaml +++ b/.github/workflows/install-test.yaml @@ -4,9 +4,9 @@ on: - cron: '45 23 * * *' workflow_dispatch: - jobs: install: + name: Install and test runs-on: ubuntu-latest steps: - uses: actions/setup-node@v4 @@ -32,3 +32,48 @@ jobs: - name: test access run: | curl -L -v http://localhost:3000 + + notify-slack: + name: Notify about test failure + needs: [install] + if: failure() + runs-on: ubuntu-latest + + steps: + - name: Post to a Slack channel + id: slack + uses: slackapi/slack-github-action@v1.26.0 + with: + channel-id: 'C067BD0377F' + payload: | + { + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": ":x: ${{ github.workflow }} workflow failed", + "emoji": true + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "<${{ github.server_url }}/${{ github.repository }}/actions/workflows/install-test.yaml|${{ github.workflow }}> workflow failed to complete successfully." + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Workflow run:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View>" + } + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_GHBOT_TOKEN }} diff --git a/frontend/src/pages/application/Overview.vue b/frontend/src/pages/application/Overview.vue index 20f1fc7451..d693647ef2 100644 --- a/frontend/src/pages/application/Overview.vue +++ b/frontend/src/pages/application/Overview.vue @@ -28,6 +28,7 @@ :columns="cloudColumns" :rows="filteredRows" :show-search="true" + :search="searchTerm" search-placeholder="Search Instances" :rows-selectable="true" @update:search="updateSearch" @@ -174,6 +175,11 @@ export default { return this.teamMembership.role === Roles.Admin } }, + mounted () { + if (this.$route?.query?.searchQuery) { + this.searchTerm = this.$route.query.searchQuery + } + }, methods: { selectedCloudRow (cloudInstance) { this.$router.push({ diff --git a/frontend/src/pages/team/Applications/components/Application.vue b/frontend/src/pages/team/Applications/components/Application.vue index 16a63be1f8..1a71109cb9 100644 --- a/frontend/src/pages/team/Applications/components/Application.vue +++ b/frontend/src/pages/team/Applications/components/Application.vue @@ -1,9 +1,9 @@ @@ -29,10 +29,10 @@ export default { type: Object, required: true }, - isSearching: { - type: Boolean, + searchQuery: { + type: String, required: false, - default: false + default: '' } }, emits: ['instance-deleted', 'device-deleted'], diff --git a/frontend/src/pages/team/Applications/components/compact/DevicesWrapper.vue b/frontend/src/pages/team/Applications/components/compact/DevicesWrapper.vue index 742d2f7e7a..faade7332b 100644 --- a/frontend/src/pages/team/Applications/components/compact/DevicesWrapper.vue +++ b/frontend/src/pages/team/Applications/components/compact/DevicesWrapper.vue @@ -27,15 +27,13 @@ > -
- - - {{ remainingDevices }} - More... - - - -
+ + + diff --git a/frontend/src/pages/team/Applications/components/compact/InstancesWrapper.vue b/frontend/src/pages/team/Applications/components/compact/InstancesWrapper.vue index 430b75b68c..4a3046ae6e 100644 --- a/frontend/src/pages/team/Applications/components/compact/InstancesWrapper.vue +++ b/frontend/src/pages/team/Applications/components/compact/InstancesWrapper.vue @@ -27,39 +27,37 @@ > -
- - - {{ remainingInstances }} - More... - - - -
+