Removing old code. Updated dev/test doc.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
### Required Checks
|
||||
1. **Svelte Integrity:** `npx svelte-check`
|
||||
- **Zero Tolerance Policy:** If a task introduces even a single svelte-check warning or error, it must not be merged. All warnings must be resolved before code review or merge. This prevents the "circle-running" and technical debt that results from ignoring warnings.
|
||||
2. **Type Safety:** Ensure interfaces in `src/lib/types/ae_types.ts` match backend schemas.
|
||||
3. **Reactivity Check:** Verify Svelte 5 runes (`$state`, `$derived`) are not creating race conditions with Dexie `liveQuery`.
|
||||
4. **Build Check:** For major changes, run `npm run build:staging` to ensure no SSR or build-time failures.
|
||||
|
||||
@@ -28,9 +28,7 @@
|
||||
|
||||
import Comp_badge_search from './ae_comp__badge_search.svelte';
|
||||
import Comp_badge_obj_li from './ae_comp__badge_obj_li.svelte';
|
||||
// import { Modal } from 'flowbite-svelte';
|
||||
// import Comp_badge_create_form from './ae_comp__badge_create_form.svelte';
|
||||
// import Comp_badge_upload_form from './ae_comp__badge_upload_form.svelte';
|
||||
|
||||
import { LoaderCircle } from '@lucide/svelte';
|
||||
// *** Initialization & Store Guard ***
|
||||
// Ensure all search fields are initialized to prevent circular undefined triggers
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
import { Pencil, Plus, Trash2 } from '@lucide/svelte';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
import { ae_api } from '$lib/stores/ae_stores';
|
||||
import { events_slct } from '$lib/stores/ae_events_stores';
|
||||
import { Modal } from 'flowbite-svelte';
|
||||
import Comp_badge_template_form from './ae_comp__badge_template_form.svelte';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
// *** Import other supporting libraries
|
||||
import { liveQuery } from 'dexie';
|
||||
import { Drawer, Footer, Modal } from 'flowbite-svelte';
|
||||
import { Drawer, Modal } from 'flowbite-svelte';
|
||||
import { listen, idle, onIdle, restartCountdown } from 'svelte-idle';
|
||||
|
||||
import {
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
// Imports (external and then internal)
|
||||
import { browser } from '$app/environment';
|
||||
// import { liveQuery } from "dexie";
|
||||
// import { Clipboard } from "flowbite-svelte";
|
||||
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
// *** Import other supporting libraries
|
||||
// import { Spinner } from 'flowbite-svelte';
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
@@ -14,14 +14,11 @@
|
||||
// import { goto, invalidate, pushState, replaceState } from '$app/navigation';
|
||||
|
||||
// *** Import other supporting libraries
|
||||
// import { Modal } from 'flowbite-svelte';
|
||||
import { liveQuery } from 'dexie';
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
// import type { key_val } from '$lib/ae_stores';
|
||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
import { db_posts } from '$lib/ae_posts/db_posts';
|
||||
import {
|
||||
ae_snip,
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
// *** Import Svelte core
|
||||
import { onMount } from 'svelte';
|
||||
import { Spinner } from 'flowbite-svelte';
|
||||
|
||||
// *** Import Aether core variables and functions
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
import { onMount, onDestroy, untrack } from 'svelte';
|
||||
|
||||
// *** Import other supporting libraries
|
||||
// import { Modal } from 'flowbite-svelte';
|
||||
import { liveQuery } from 'dexie';
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
}: Props = $props();
|
||||
|
||||
// *** Import Svelte specific
|
||||
// import { onMount } from 'svelte';
|
||||
// import { Spinner } from 'flowbite-svelte';
|
||||
// browser import removed — $effect is used instead (runs only in browser)
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
import { browser } from '$app/environment';
|
||||
|
||||
// *** Import other supporting libraries
|
||||
// import { Modal } from 'flowbite-svelte';
|
||||
import { liveQuery } from 'dexie';
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
@@ -16,13 +15,10 @@
|
||||
// import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
import { db_journals } from '$lib/ae_journals/db_journals';
|
||||
import {
|
||||
ae_snip,
|
||||
ae_loc,
|
||||
ae_sess,
|
||||
ae_api,
|
||||
ae_trig,
|
||||
slct,
|
||||
slct_trigger
|
||||
} from '$lib/stores/ae_stores';
|
||||
import {
|
||||
journals_loc,
|
||||
|
||||
Reference in New Issue
Block a user