Fix critical and high audit findings

Fixed findings from the audit reports (SECURITY, QUALITY, PERFORMANCE):
- P-001 · Dashboard re-downloads the entire dataset every 5 seconds

Re-synced the vendored shared/ snapshot from shared commit 199a5ef.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Haiku 5.5 committed 2026-10-19 07:48:07 +00:00
1 parent 7dd0d34383
commit a84a36349b
31 files changed
+653 -6055

No files matched your search

+4 -4
View File
@@ -79,7 +79,7 @@ func (d *DB) queryLists(ctx context.Context, includeDeleted bool, since *int64)
if len(conditions) > 0 {
query += " WHERE " + strings.Join(conditions, " AND ")
}
query += " ORDER BY updatedat DESC"
query += " ORDER BY updatedat DESC, id"
rows, err := d.pool.Query(ctx, query, args...)
if err != nil {
@@ -116,7 +116,7 @@ func (d *DB) queryFields(ctx context.Context, includeDeleted bool, since *int64,
if len(conditions) > 0 {
query += " WHERE " + strings.Join(conditions, " AND ")
}
query += ` ORDER BY "order" ASC`
query += ` ORDER BY "order" ASC, id`
rows, err := d.pool.Query(ctx, query, args...)
if err != nil {
@@ -152,7 +152,7 @@ func (d *DB) queryItems(ctx context.Context, includeDeleted bool, since *int64,
if len(conditions) > 0 {
query += " WHERE " + strings.Join(conditions, " AND ")
}
query += " ORDER BY updatedat DESC"
query += " ORDER BY updatedat DESC, id"
rows, err := d.pool.Query(ctx, query, args...)
if err != nil {
@@ -185,7 +185,7 @@ func (d *DB) queryValues(ctx context.Context, since *int64, itemID string) ([]It
if len(conditions) > 0 {
query += " WHERE " + strings.Join(conditions, " AND ")
}
query += " ORDER BY updatedat ASC"
query += " ORDER BY updatedat ASC, id"
rows, err := d.pool.Query(ctx, query, args...)
if err != nil {