feat: api token login

This commit is contained in:
Dr-Blank 2024-09-06 15:10:00 -04:00
parent 880960c745
commit 682631fb8e
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
17 changed files with 993 additions and 254 deletions

View file

@ -39,6 +39,23 @@ class HomePage extends HookConsumerWidget {
body: Container(
child: views.when(
data: (data) {
if (data.isEmpty) {
return Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text('No shelves to display'),
// try again button
ElevatedButton(
onPressed: () {
ref.invalidate(personalizedViewProvider);
},
child: const Text('Try again'),
),
],
),
);
}
final shelvesToDisplay = data
// .where((element) => !element.id.contains('discover'))
.map((shelf) {