1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
Matthew Holt
f072765866
Import sidecar profile pictures from contact list, vcard data sources
Also fix a bug related to import planning which would divide by zero.
2025-11-04 16:20:31 -07:00
Michael Cordell
9984737ef5
vcard: fix opening directory of vCard files (#164)
When attempting an import of a zip containing a directory of vCard files
or simply a directory of vCard files, errors like the following occur:

```
error read /workspaces/timelinize/iCloud Contacts/iCloud Contacts/Groups: is a directory
```

Modifying the walk function to use the passed path and dirEntry File
System resolves this issue.
2025-10-25 21:34:58 -06:00
Matthew Holt
85a0381320
vcard: Set local time zone for birthdays
No one records their birth date as UTC midnight, sheesh
2025-10-15 21:54:01 -06:00
Matthew Holt
59161e5e96 vcard: Add YYYY-MM-DD format (issue #153) 2025-10-15 21:24:14 -06:00
Matthew Holt
fa9ad482b3
Place entities from GPX sources; several other improvements/fixes
Location processing is still being revised (WIP).
2025-06-09 17:18:44 -06:00
JP Hastings-Edrei
27a2f462cf
lint: bump golangci-lint version (#92)
* lint: bump golangci-lint version

- Bumps the version of golangci-lint that's used in the Github Action to be the most recent version (as installed with eg. `brew install golangci-lint` — v2.1.6)
- Migrates the `.golangci.toml` file, and manually moves the comments over
- `errchkjson` appears to work now, so added that back into the linter (the `forbidigo` and `goheader` linters I've left commented out)

* lint: remove checkers we don't like

Removes two static checkers that cause code changes we don't like.

* lint: remove old lint declaration

apparently `gosimple` isn't available any more, so I've removed its `nolint` declaration here.

* lint: swap location of `nolint:goconst`

This _seems_ to be an unstable declaration, because of he parallel & undeterministic nature of the linter. If this keeps causing trouble we can either remove the goconst linter, or change _both_ of these lines to hold `//nolint:goconst,nolintlint`.
2025-06-02 15:03:19 -06:00
Matthew Holt
02d9434131
vcard: Initialize metadata map to avoid panic 2025-05-14 08:31:34 -06:00
Matthew Holt
360e131fff
Recover panics during jobs/imports, and support base64 pics from vCard 2025-05-14 08:29:37 -06:00
Matthew Holt
73196f51ae
Refactor DirEntry, fix some bugs
Remove TopDir* functions, they aren't really relevant with our new import planner.
2025-04-02 21:52:49 -06:00
Matthew Holt
d4d7991f7b
vcard: Use sidecar picture if available 2025-01-24 10:14:53 -07:00
Matthew Holt
5844c5755b
Fix most (all?) lint warnings 2024-12-11 18:59:24 -07:00
Matthew Holt
37461545be
Fix fs.SkipDir usage; and minor bug in NMEA
fs.SkipDir documentation is a bit unclear: does it skip the remainder of files in the directory when returned from walking a file, or does it no-op on files and only skip going INTO dirs when on a dir?

I thought it was the latter, and thus, we didn't need to check whether the current DirEntry was a directory before returning (most commonly, when we are trying to skip hidden files/folders). But nope, it's the former -- SkipDir will skip the rest of the entries in the directory, which is NOT what we want. We just want to avoid going INTO a hidden directory in our case.

So unfortunately we now have to check IsDir() before returning.

Also fixed a slight bug with NMEA processing.
2024-12-07 21:16:36 -07:00
Matt Holt
746e5d6b5c
Refactored import flow, new import UI, thumbnails stored in timeline, etc. (close #3) (#43)
* Schema revisions for new import flow and thumbnails

* WIP settings

* WIP quick schema fix

* gallery: Image search using ML embeddings

Still very rough around the edges, but basically works.

'uv' gets auto-installed, but currently requires restarting Timelinize before it can be used.

Lots of tunings and optimizations are needed. There is much room for improvement.

Still migrating from imports -> jobs, so that part of the code and schema is still a mess.

* Implement search for similar items

* Finish import/planning rewrite; it compiles and tests pass

* Fix some bugs, probably introduce other bugs

* WIP new import planning page

* Fix Google Photos and Twitter recognition

* Finish most of import page UI; start button still WIP

* WIP: Start Import button

* Fixes to jobs, thumbnail job, import job, etc.

* Implement proper checkpointing support; jobs fixes
2024-12-06 11:03:29 -07:00
Matthew Holt
95fcafb96c
vcard: Fix name and address formatting 2024-09-02 06:46:37 -06:00
Matthew Holt
3066ddbeb9
Major linting overhaul
I've addressed most of the "fast" linters errors locally in my editor.

Some linters are broken or buggy.
2024-08-29 16:43:52 -06:00
Matthew Holt
21d5a2ed8e
chore: Fix some lint errors (add package comments) 2024-08-28 16:05:43 -06:00
Matthew Holt
1daf6f4157
Initial open source commit 2024-08-11 08:02:27 -06:00