From 8ee610c1bcb65434e680e656931af50db7a013f7 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 29 Aug 2023 20:47:22 -0600 Subject: [PATCH] start the assignment of boundaries for a local search --- project.task.yaml | 1 + src/db/tables/settings.ts | 8 +++++ src/views/DiscoverView.vue | 74 ++++++++++++++++++++++++++++++++------ 3 files changed, 73 insertions(+), 10 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index e2d52d7ce..e793ecdbe 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -6,6 +6,7 @@ tasks: - push, where we trigger a ServiceWorker(?) in the app to reach out and check for new data assignee:matthew - 01 add my bounding box(es) of interest for searches on Nearby part of Discovery page +- .5 fix the look-and-feel of the map on the Discovery page assignee-group:ui - .5 search by a bounding box(s) of interest for local projects (see API by clicking on "Nearby") - 01 Replace Gifted/Give in ContactsView with GiftedDialog assignee:matthew diff --git a/src/db/tables/settings.ts b/src/db/tables/settings.ts index 02f7ba7fe..e0eee3e61 100644 --- a/src/db/tables/settings.ts +++ b/src/db/tables/settings.ts @@ -1,3 +1,10 @@ +export type BoundingBox = { + maxLat: number; + maxLong: number; + minLat: number; + minLong: number; +}; + // a singleton export type Settings = { id: number; // there's only one entry: MASTER_SETTINGS_KEY @@ -7,6 +14,7 @@ export type Settings = { firstName?: string; lastName?: string; lastViewedClaimId?: string; + searchBoxes?: Array; showContactGivesInline?: boolean; }; diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index dba8066f0..cdaf2f19a 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -9,7 +9,7 @@ -
+