Code Insights: Add insight export data UI#46694
Conversation
Bundle size report 📦
Look at the Statoscope report for a full comparison between the commits 877cc99 and 02c985e or learn more. Open explanation
|
leonore
left a comment
There was a problem hiding this comment.
I'll give an approval once I've tested this with the backend landed but thank you for working on this so quickly!!
…onents/actions/CodeInsightIndependentPageActions.tsx Co-authored-by: leo <leo.p@sourcegraph.com>
leonore
left a comment
There was a problem hiding this comment.
landed the BE part so tested it a little. see commit suggestions for functional fixes
1- do you know why from the webapp the url routes to the repository page rather than the internal API endpoint?
i.e. https://sourcegraph.test:3443/.api/insights/export/aW5zaWdodF92aWV3OiIyR2Q0Y1RwbzdLb2d5aGkzMUNuQTQ3amRFZG4i -> repo:^\.api/insights/export/aW5zaWdodF92aWV3OiIyR2Q0Y1RwbzdLb2d5aGkzMUNuQTQ3amRFZG4i$ search
2- is there a reason we don't allow the "Export data as CSV" option from the 3-dot menu?
3- I couldn't see the information pop up from the single insight page, it just linked straight to the API link.
…ightDataModal.tsx Co-authored-by: leo <leo.p@sourcegraph.com>
|
Thanks for checking @leonore
|
…onents/actions/CodeInsightIndependentPageActions.tsx Co-authored-by: Chris Warwick <christopher.warwick@sourcegraph.com>

Closes https://github.com/sourcegraph/sourcegraph/issues/46493
This PR adds export data UI, (link in the three dot context menu and button on the standalone insight page) This PR should be merged after the BE link implementation is merged.
Test plan
App preview:
Check out the client app preview documentation to learn more.