Limited access mode - creation & editing UI
Created by: unclejustin
Data series updates
Search insights
- Change copy to "Add up to 10 data series": Design
- Add contextual badge: 'Limited access | Unlock Code Insights for unlimited data series' above 'add data series' button
- Disable add series button when series total >= 10
Capture group insights
- Update data series note copy to reflect 10 series limit
- Add contextual bage above the note
Create button updates (all types of insights, note: please add also to language insight)
- Add contextual label: 'Limited access | Unlock Code Insights to create unlimited insights' above "Create code insight" button
- Disable "Create code insight button" if insight total >= 2
Edit insights:
- disable the 'save changes' button if user tries to modify the locked insight. Add the contextual badge
- insights with >10 data series: disable remaining data series and implement logic of keeping up to 10 active data series. Use case: if user has 12 data series, 10 should be active, 2 should be disabled. If user deletes one active data series, we should update the list and show 10 enabled + 1 disabled data series).
Related to https://github.com/sourcegraph/sourcegraph/issues/30165