Fixed thinking we are on login screen when really loading dashboard
This commit is contained in:
@ -42,10 +42,15 @@ export async function pullData(amount = 100) {
|
|||||||
state.push('Navigating to United FCU');
|
state.push('Navigating to United FCU');
|
||||||
await page.goto('https://online.unitedfcu.com/unitedfederalcredituniononline/uux.aspx#/login');
|
await page.goto('https://online.unitedfcu.com/unitedfederalcredituniononline/uux.aspx#/login');
|
||||||
state.push(`Current URL: ${page.url()}`);
|
state.push(`Current URL: ${page.url()}`);
|
||||||
|
await new Promise((resolve) => setTimeout(resolve, 5000));
|
||||||
|
|
||||||
if (page.url().includes('interstitial')) {
|
if (page.url().includes('interstitial')) {
|
||||||
await page.waitForLoadState();
|
await page.waitForLoadState();
|
||||||
}
|
}
|
||||||
|
while (page.url().includes('interstitial')) {
|
||||||
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||||
|
await page.waitForLoadState();
|
||||||
|
}
|
||||||
|
|
||||||
if (!page.url().includes('dashboard')) {
|
if (!page.url().includes('dashboard')) {
|
||||||
state.push('Logging in to United FCU');
|
state.push('Logging in to United FCU');
|
||||||
|
|||||||
@ -1,6 +1,12 @@
|
|||||||
<script>
|
<script>
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
import { setContext } from 'svelte';
|
import { setContext } from 'svelte';
|
||||||
|
import { pwaInfo } from 'virtual:pwa-info';
|
||||||
|
|
||||||
|
console.log('PWA Info:', pwaInfo);
|
||||||
|
const webManifestLink = $state(pwaInfo ? pwaInfo.webManifest.linkTag : '');
|
||||||
|
$inspect(webManifestLink);
|
||||||
|
|
||||||
let { children, data } = $props();
|
let { children, data } = $props();
|
||||||
let budgets = $derived(data.budgets);
|
let budgets = $derived(data.budgets);
|
||||||
let total = $derived(data.total);
|
let total = $derived(data.total);
|
||||||
@ -15,7 +21,9 @@
|
|||||||
|
|
||||||
setContext('addToast', addToast);
|
setContext('addToast', addToast);
|
||||||
</script>
|
</script>
|
||||||
|
<svelte:head>
|
||||||
|
{@html webManifestLink}
|
||||||
|
</svelte:head>
|
||||||
<div class="drawer lg:drawer-open">
|
<div class="drawer lg:drawer-open">
|
||||||
<input id="my-drawer-2" type="checkbox" class="drawer-toggle" />
|
<input id="my-drawer-2" type="checkbox" class="drawer-toggle" />
|
||||||
<div class="drawer-content flex flex-col m-5">
|
<div class="drawer-content flex flex-col m-5">
|
||||||
|
|||||||
@ -10,8 +10,6 @@
|
|||||||
let budgetTransactions = $derived(data.budgetTransactions);
|
let budgetTransactions = $derived(data.budgetTransactions);
|
||||||
let last30days = $derived(data.last30DaysTransactionsSums.reverse());
|
let last30days = $derived(data.last30DaysTransactionsSums.reverse());
|
||||||
|
|
||||||
$inspect(last30days);
|
|
||||||
|
|
||||||
let chartData = $derived(
|
let chartData = $derived(
|
||||||
last30days.reduce(
|
last30days.reduce(
|
||||||
(acc, curr) => [...acc, acc[acc.length - 1] + Number(curr.sum)],
|
(acc, curr) => [...acc, acc[acc.length - 1] + Number(curr.sum)],
|
||||||
@ -19,7 +17,6 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$inspect(chartData);
|
|
||||||
let chartDates = $derived([
|
let chartDates = $derived([
|
||||||
'now',
|
'now',
|
||||||
...last30days.map((day) => `${day.date.getMonth() + 1}/${day.date.getDate()}`)
|
...last30days.map((day) => `${day.date.getMonth() + 1}/${day.date.getDate()}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user