Skip to content

Commit

Permalink
feat: Only show items of type Movie or Show in the incomplete items … (
Browse files Browse the repository at this point in the history
…#29)

* feat: Only show items of type Movie or Show in the  incomplete items list

* fix: format file

* fix: format file

* fix: run lint on vscode launch file

* fix: no explicit any
  • Loading branch information
davidemarcoli authored Jul 22, 2024
1 parent 9a28ed9 commit 7a20c28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: "Release Please"
name: 'Release Please'

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
pull-requests: write
Expand All @@ -17,4 +17,4 @@ jobs:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.FRONTEND_RELEASE_PLEASE_TOKEN}}
release-type: simple
release-type: simple
20 changes: 10 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "bun dev",
"name": "Run Riven Frontend",
"request": "launch",
"type": "node-terminal"
}
]
}
"version": "0.2.0",
"configurations": [
{
"command": "bun dev",
"name": "Run Riven Frontend",
"request": "launch",
"type": "node-terminal"
}
]
}
7 changes: 5 additions & 2 deletions src/routes/summary/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,15 @@
}
];
const totalIncompleteItems = data.incompleteItems.incomplete_items.length;
let curPage = 1;
const perPage = 20;
$: start = (curPage - 1) * perPage;
$: end = start + perPage;
$: incompleteItems = data.incompleteItems.incomplete_items.slice(start, end);
$: incompleteItems = data.incompleteItems.incomplete_items
.slice(start, end)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.filter((item: any) => ['Movie', 'Show'].includes(item.type));
$: totalIncompleteItems = incompleteItems.length;
</script>

<Header />
Expand Down

0 comments on commit 7a20c28

Please sign in to comment.