-
Notifications
You must be signed in to change notification settings - Fork 41
Create dashboard page #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -60,6 +60,67 @@ export function useTanamDocuments(documentTypeId?: string): UseTanamDocumentsRes | |||
return {data, error}; | |||
} | |||
|
|||
type RecentField = "createdAt" | "updatedAt" | "publishedAt"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we need to create migration script to add a new field createdAt
and get value from legacy data created
field and still keeping the legacy data to avoid breaking in the app that still uses legacy data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No migration script needed.
Just delete old documents and create new ones. Some models are already implemented for being compliant with reading old documents
tanam/hosting/src/models/TanamDocument.ts
Lines 57 to 58 in d06cac4
json.createdAt || json.created, | |
json.updatedAt || json.updated, |
Visit the preview URL for this PR (updated for commit 7a7f610): https://tanam-testing--pr361-issue-341-create-das-wws1cvg7.web.app (expires Wed, 03 Jul 2024 08:57:29 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 5bbe8a1a68d9684d656bffba10008fe532204561 |
Description
Implements a simple overview dashboard page
Referenced issues
Closing #341
Screenshots / recordings
TBD