Skip to content

Commit

Permalink
fix(frontend): infinite scroll for analysis page (#200)
Browse files Browse the repository at this point in the history
fixes #185
  • Loading branch information
derrabauke authored May 23, 2024
1 parent 8226023 commit 40aa5a6
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 88 deletions.
23 changes: 10 additions & 13 deletions frontend/app/analysis/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -393,19 +393,16 @@
</tr>
{{/each}}
{{#if this._canLoadMore}}
<tr>
<td colspan="11" class="text-center">
<InViewport
@rootSelector="analysis-scrollable-container"
@on-enter-viewport={{perform this.loadNext}}
@on-exit-viewport={{fn
(mut this._shouldLoadMore)
false
}}
>
Loading<span class="loading-dots"><i>.</i><i>.</i><i
>.</i></span>
</InViewport>
<tr
{{in-viewport
onEnter=(perform this.loadNext)
onExit=(fn (mut this._shouldLoadMore) false)
viewportSpy=true
}}
>
<td colspan="12" class="text-center">
Loading<span class="loading-dots"><i>.</i><i>.</i><i
>.</i></span>
</td>
</tr>
{{/if}}
Expand Down
36 changes: 0 additions & 36 deletions frontend/app/components/in-viewport/component.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/app/components/in-viewport/template.hbs

This file was deleted.

7 changes: 3 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"ember-decorators": "6.1.1",
"ember-event-helpers": "^0.1.1",
"ember-fetch": "8.1.2",
"ember-in-viewport": "4.1.0",
"ember-load-initializers": "2.1.2",
"ember-math-helpers": "2.18.2",
"ember-moment": "9.0.1",
Expand Down Expand Up @@ -107,6 +108,7 @@
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-qunit": "7.3.4",
"faker": "4.1.0",
"fast-redact": "3.3.0",
"graphql": "16.8.1",
"loader.js": "4.7.0",
"miragejs": "^0.1.48",
Expand Down Expand Up @@ -142,8 +144,5 @@
"marked"
]
}
},
"dependencies": {
"fast-redact": "^3.3.0"
}
}
}
66 changes: 53 additions & 13 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

0 comments on commit 40aa5a6

Please sign in to comment.