Skip to content

Conversation

@ericf-axosoft
Copy link
Contributor

@ericf-axosoft ericf-axosoft commented Jul 12, 2023

Summary of changes:

  • Removed graph header settings button from Gitlens as now the Graph component can display that button and we have exposed new input properties.

Notes

Tasks

230
Internal task: GK.3665

@ericf-axosoft ericf-axosoft self-assigned this Jul 12, 2023
@ericf-axosoft ericf-axosoft force-pushed the feature/GK-3665_Implement-the-columns-settings-button-directly-in-the-Graph-component branch 3 times, most recently from 758fc0d to 1177805 Compare July 12, 2023 18:13
@ericf-axosoft ericf-axosoft requested a review from eamodio July 12, 2023 18:18
@ericf-axosoft ericf-axosoft marked this pull request as ready for review July 12, 2023 18:18
@ericf-axosoft ericf-axosoft requested a review from d13 July 12, 2023 18:20
Copy link
Contributor

@axosoft-ramint axosoft-ramint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but since we are releasing GitLens tomorrow, let's hold off on merging this in. Since this proves it can work with the settings button in the graph component, I think you can merge the component-side PR and update the library version so you can use it in GKC @ericf-axosoft

Copy link
Contributor

@axosoft-ramint axosoft-ramint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include dependency bump before merge.

@ericf-axosoft ericf-axosoft force-pushed the feature/GK-3665_Implement-the-columns-settings-button-directly-in-the-Graph-component branch from 1177805 to 37dcaa9 Compare July 18, 2023 10:30
@ericf-axosoft ericf-axosoft merged commit c67b974 into main Jul 18, 2023
@ericf-axosoft ericf-axosoft deleted the feature/GK-3665_Implement-the-columns-settings-button-directly-in-the-Graph-component branch July 18, 2023 10:33
Comment on lines -1419 to -1427
<button
className="column-button"
type="button"
role="button"
data-vscode-context={context?.settings || JSON.stringify({ webviewItem: 'gitlens:graph:settings' })}
onClick={handleToggleColumnSettings}
>
<span className="codicon codicon-settings-gear" aria-label="Column Settings"></span>
</button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed, but how can GitLens provide the data-vscode-context now? @ericf-axosoft @axosoft-ramint

Copy link
Contributor Author

@ericf-axosoft ericf-axosoft Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The graph sets the data-vscode-context for the button by using the actual contexts.settings input property provided by Gitlens.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, we pass context to the graph as a prop contexts and context.settings makes it to the button via the prop as contexts.settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants