-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement document detail page #10
Conversation
Thanks for your contribution. It's still in draft, but I'll leave a brief comment. The detail page can be accessed from the list, but the user can also directly access the URL. We need to handle the case when the user directly opens the project details page as well. |
Before, the snapshot data only passed when users clicked the link. Implement to fetch data when the DocumentDetail component is mounted to show the document data when entering the URL directly. This commit also adds some codes by pasting the grpc protocol. (to keep a single source of truth) - Add project list command - Remove collection from document - Rename agent to server - Rename `db` package to `database` Co-authored-by: Youngteac Hong <youngteac.hong@navercorp.com>
@chacha912 |
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.
Thanks for your contribution.
unknown, | ||
Action<string> | ||
>; | ||
export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>; |
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.
As you said, It would be good to introduce prettier.
https://create-react-app.dev/docs/setting-up-your-editor/#formatting-code-automatically
Fetch document data when the DocumentDetail component is mounted. Before, the snapshot data only passed when users clicked the link. Implement to fetch data when the DocumentDetail component is mounted to show the document data when entering the URL directly. This commit also adds some codes by pasting the grpc protocol. (to keep a single source of truth) - Add project list command - Remove collection from document - Rename agent to server - Rename `db` package to `database` Co-authored-by: Youngteac Hong <youngteac.hong@navercorp.com>
What this PR does / why we need it?
The document detail page is shown when the user selects a document from the document list page.
Users can see snapshots of the document on the document detail page.
The user can access the document again using the URL of a specific document.
/documents
/documents/{documentId}
TODO
/projects/{proiectID}/documents/{documentKey}
Isolate clients and documents for each project yorkie#319Any background context you want to provide?
What are the relevant tickets?
Fixes #9
Checklist