Add edit button for article detail page
Jump to turn (20)
- 1Add edit button for article detail page
- 2Commit fine-grained
- 3See ../hackerspub
- 4Okay activate only from feature flag because not deployed yet.
- 5Resolve conflicts
- 6How can I edit my article???
- 7Yes
- 8Wait, We can't setup the original content. See ../hackerspub's approach
- 9I still see cannot fetch rawContent ...
- 10Yes. See ../hackerspub
- 11For draft management, provide preview which displays rendered result
- 12We already have preview api. Did you know it?
- 13Okay, go with a
- 14Is it gated?
- 15I mean for article edit
- 16For move top button placement, How can we do? We have too many button for topbar
- 17How about option 2?
- 18How about placing top-right? And I want to the button to be more big
- 19too big
- 20More polish suggestion. Make it round.
- User
Add edit button for article detail page
Assistant
I've explored the code. Here's what I found:
- Article detail uses
PostDetailScreen(it's aPostwithtypename == "Article").canDeletealready detects ownership viaviewerHandlevsactor.handleinPostDetailViewModel.kt:82-85. - The existing topBar action is a
MoreVertdropdown menu (PostDetailScreen.kt:309-323,405-446) with only a Delete item. - There is no edit-article screen or repository mutation yet.
ComposeArticleScreenloadsdraftIdbut not a published article.
- Article detail uses