is it finally time to have a 'view' collection, for routines? #121

Closed
opened 2025-11-21 09:05:15 +11:00 by Ghost · 0 comments
Ghost commented 2025-11-21 09:05:15 +11:00 (Migrated from codeberg.org)

for the routineslist summary page, it shoud have title, desc, summary of exercises.

need something similar for a session, summary of exercises (to be more readable than the fat list)

if not the view collection, tack summary on in custom route.

begin thinking about doing 'computed' fields this way, with a custom route, and make a plugin for it, that talks to auto-gen types. makethem readonly in typescript (sending these to backend will silently fail as of now with pocketbase). would be nicer than view collection i think.

maybe the computed field can be defined in sql? when registering in the plugin?

for the routineslist summary page, it shoud have title, desc, summary of exercises. need something similar for a session, summary of exercises (to be more readable than the fat list) if not the view collection, tack summary on in custom route. begin thinking about doing 'computed' fields this way, with a custom route, and make a plugin for it, that talks to auto-gen types. makethem readonly in typescript (sending these to backend will silently fail as of now with pocketbase). would be nicer than view collection i think. maybe the computed field can be defined in sql? when registering in the plugin?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
davenh99/progressa#121
No description provided.