Open metalMajor opened 4 months ago
Hello! I'm currently developing an AI tool that investigates issues, and I used this issue as a test to see if it could help. Below are the findings, which I hope might assist in resolving this issue faster.
Boosterbot.ai Findings:
The investigation reveals that the existing linking mechanism and state management for issue links can be extended to support linking from issue comments to pages documents. The issue_link.d.ts
and link.store.ts
files provide a solid foundation for managing links, while the issue_comment.service.ts
, comment.store.ts
, comment-card.tsx
, and comment-create.tsx
files handle issue comments and can be extended to include linking functionality. Backend adjustments will be necessary in the comment.py
and link.py
files to support the new linking feature.
issue_link.d.ts
file defines the structure of issue links, including editable fields and mappings. The link.store.ts
file manages the state and CRUD operations for issue links. These files provide a comprehensive framework for managing links, which can be extended to support linking from issue comments to pages documents.issue_comment.service.ts
file handles CRUD operations for issue comments. The comment.store.ts
file manages the state of comments, including fetching, creating, updating, and deleting comments. The comment-card.tsx
and comment-create.tsx
components render and manage the display of comments. These components and state management logic can be extended to support linking to pages documents.comment.py
file handles CRUD operations for issue comments, while the link.py
file manages CRUD operations for issue links. These files will need to be updated to support the new linking functionality from issue comments to pages documents. Specifically, new endpoints or modifications to existing ones may be required to handle the creation and management of these links.These suggestions are automatically generated based on the context of the issue description and repository code. If you have any feedback or want to try it on your own project, my email is on my profile. Thanks!
Thanks for the feedback, @metalMajor. I agree that having an easier way to link between pages and issues would solve this problem. Currently, pages support issue embeds, but adding shortcuts within issues to link pages would definitely help. We’ll pick this up.
Is there an existing issue for this?
Summary
Link to a pages document from an issue.
Why should this be worked on?
It often happens that, instead of writing an elaborate comment on an issue, that you want to explain something properly, and a pages document is nicer to edit and more readable. I want to create a link, but it seems not to be possible, only from a pages document to an issue, but not the other way around. I have not found anything in the documentation on how to do it.