Skip to content

Commit

Permalink
feat: add orientation to studio trigger page ui (supabase#28002)
Browse files Browse the repository at this point in the history
* feat: add orientation to studio trigger page ui

* increase colSpan for empty state

---------

Co-authored-by: Alaister Young <[email protected]>
  • Loading branch information
MartinSWDev and alaister authored Jul 16, 2024
1 parent 4d27aa7 commit 8cabaec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const TriggerList = ({
if (_triggers.length === 0 && filterString.length === 0) {
return (
<Table.tr key={schema}>
<Table.td colSpan={6}>
<Table.td colSpan={7}>
<p className="text-sm text-foreground">No triggers created yet</p>
<p className="text-sm text-foreground-light">
There are no triggers found in the schema "{schema}"
Expand All @@ -67,7 +67,7 @@ const TriggerList = ({
if (_triggers.length === 0 && filterString.length > 0) {
return (
<Table.tr key={schema}>
<Table.td colSpan={6}>
<Table.td colSpan={7}>
<p className="text-sm text-foreground">No results found</p>
<p className="text-sm text-foreground-light">
Your search for "{filterString}" did not return any results
Expand Down Expand Up @@ -107,6 +107,12 @@ const TriggerList = ({
</div>
</Table.td>

<Table.td className="hidden space-x-2 xl:table-cell">
<p title={x.orientation} className="truncate">
{x.orientation}
</p>
</Table.td>

<Table.td className="hidden xl:table-cell">
<div className="flex items-center justify-center">
{x.enabled_mode !== 'DISABLED' ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ const TriggersList = ({
<Table.th key="events" className="hidden xl:table-cell">
Events
</Table.th>
<Table.th key="orientation" className="hidden xl:table-cell">
Orientation
</Table.th>
<Table.th key="enabled" className="hidden w-20 xl:table-cell">
Enabled
</Table.th>
Expand Down

0 comments on commit 8cabaec

Please sign in to comment.