This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log key activities in SQLite (#1067)
Trying not to over engineer anything here. - Create a new `activity` SQLite table - Log events we may be interested in responding to / surfacing: - Swipe choices in Deck view (step towards #1023) - Follow / unfollow user actions - Index complete + how many changes As mentioned above, this is a step towards offering more sophisticated behaviour in the Deck view over multiple sessions but it could also let us offer an "activity" view in the app where you can see updates like "`@gordon` published 4 notes". https://github.com/subconsciousnetwork/subconscious/assets/5009316/c05dbb91-d3fa-47b1-bdff-60081f8761a0
- Loading branch information
1 parent
4b93044
commit ad2681c
Showing
9 changed files
with
289 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// ActivityEvent.swift | ||
// Subconscious (iOS) | ||
// | ||
// Created by Ben Follington on 10/1/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ActivityEvent<Metadata: Codable>: Codable { | ||
let category: ActivityEventCategory | ||
let event: String | ||
let message: String | ||
let metadata: Metadata? | ||
} | ||
|
||
enum ActivityEventCategory: String, Codable { | ||
case system = "system" | ||
case deck = "deck" | ||
case note = "note" | ||
case addressBook = "addressBook" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.