Skip to content

Commit

Permalink
Revert "Add an Invocations Panel for the Invocations activity"
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek authored May 20, 2024
1 parent 349f9e2 commit bd2e9bd
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 408 deletions.
8 changes: 1 addition & 7 deletions client/src/components/ActivityBar/ActivityBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { type Activity, useActivityStore } from "@/stores/activityStore";
import { useEventStore } from "@/stores/eventStore";
import { useUserStore } from "@/stores/userStore";
import InvocationsPanel from "../Panels/InvocationsPanel.vue";
import VisualizationPanel from "../Panels/VisualizationPanel.vue";
import ActivityItem from "./ActivityItem.vue";
import InteractiveItem from "./Items/InteractiveItem.vue";
Expand Down Expand Up @@ -179,11 +178,7 @@ watch(
:to="activity.to"
@click="onToggleSidebar()" />
<ActivityItem
v-else-if="
['admin', 'tools', 'visualizations', 'multiview', 'invocation'].includes(
activity.id
)
"
v-else-if="['admin', 'tools', 'visualizations', 'multiview'].includes(activity.id)"
:id="`activity-${activity.id}`"
:key="activity.id"
:icon="activity.icon"
Expand Down Expand Up @@ -234,7 +229,6 @@ watch(
</div>
<FlexPanel v-if="isSideBarOpen" side="left" :collapsible="false">
<ToolPanel v-if="isActiveSideBar('tools')" />
<InvocationsPanel v-else-if="isActiveSideBar('invocation')" />
<VisualizationPanel v-else-if="isActiveSideBar('visualizations')" />
<MultiviewPanel v-else-if="isActiveSideBar('multiview')" />
<NotificationsPanel v-else-if="isActiveSideBar('notifications')" />
Expand Down
1 change: 0 additions & 1 deletion client/src/components/Common/Heading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const element = computed(() => {
props.bold ? 'font-weight-bold' : '',
props.inline ? 'inline' : '',
collapsible ? 'collapsible' : '',
props.truncate ? 'truncate' : '',
]"
@click="$emit('click')">
<b-button v-if="collapsible" variant="link" size="sm">
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Grid/configs/invocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type SortKeyLiteral = "create_time" | "update_time" | "None" | null | undefined;
/**
* Request and return invocations from server
*/
export async function getData(
async function getData(
offset: number,
limit: number,
search: string,
Expand Down
18 changes: 0 additions & 18 deletions client/src/components/Panels/InvocationsPanel.vue

This file was deleted.

42 changes: 22 additions & 20 deletions client/src/components/ToolsList/ScrollToTopButton.vue
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
<script setup lang="ts">
import { library } from "@fortawesome/fontawesome-svg-core";
import { faChevronUp } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { BButton } from "bootstrap-vue";
library.add(faChevronUp);
interface Props {
offset: number;
}
const props = withDefaults(defineProps<Props>(), {
offset: 0,
});
</script>

<template>
<BButton
<b-button
v-b-tooltip.noninteractive.hover
class="back-to-top"
:class="{ show: props.offset > 100 }"
:title="props.offset > 100 ? 'Scroll To Top' : ''"
:class="{ show: offset > 100 }"
title="Scroll To Top"
variant="info"
@click="$emit('click')">
<FontAwesomeIcon icon="fa-chevron-up" />
</BButton>
</b-button>
</template>

<script>
import { library } from "@fortawesome/fontawesome-svg-core";
import { faChevronUp } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
library.add(faChevronUp);
export default {
components: { FontAwesomeIcon },
props: {
offset: {
type: Number,
default: 0,
},
},
};
</script>

<style lang="scss" scoped>
.back-to-top {
bottom: 0.25rem;
Expand Down
Loading

0 comments on commit bd2e9bd

Please sign in to comment.