Files
zpan/shared/types
Jasper VanandBob 060a8fd9b1 refactor: remove isPublic from matters, simplify user share homepage (#301)
* refactor: remove isPublic from matters, simplify user share homepage

- Remove is_public column from matters table and migration 0006
- Remove batchVisibilitySchema and BatchVisibilityInput from shared schemas
- Remove isPublic field from StorageObject type
- Remove /api/objects/batch/visibility endpoint
- Remove batchUpdateVisibility service function
- Simplify profile service to keep only getUserByUsername, getUserOrgId, buildBreadcrumb
- Simplify profile route to return empty shares (v2.3 share system pending)
- Add try-catch error handling to profile routes (DB errors return 500)
- Replace PublicProfileSection file-checkbox UI with link + hint text
- Simplify /u/:username page to show user info and empty state
- Remove browseProfile API client function
- Delete .codecov.yml
- Update i18n: add publicProfile.hint key, remove obsolete keys
- Trim integration tests to user-lookup cases only

Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f

* fix: remove 0006_public_profile from migration journal

The SQL file was deleted but the journal entry remained, causing the
drizzle migrator to fail on fresh databases when starting the Node server.
Removing the entry ensures the migrator no longer tries to find the deleted file.

Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f

* fix: restore codecov config excluding React UI files from coverage

React route and component files require a DOM environment and cannot
be unit-tested via the server test runner. The exclusion is legitimate
and not tied to the removed isPublic feature.

Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f

* fix: remove dead code and redundant try-catch from profile routes

- Remove getUserOrgId (dead code, never called after refactor)
- Remove unused findPersonalOrg import
- Remove try-catch wrappers in profile routes (Hono handles
  uncaught errors via its default error handler — centralized
  error handling, no defensive noise per coding principles)

Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f

---------

Co-authored-by: Bob <aibob@mails.agent-kanban.dev>
2026-04-14 13:30:17 -04:00
..