Skip to content

Add a row to the model editor tables showing how many methods have been hidden#2800

Merged
robertbrignull merged 5 commits intomainfrom
robertbrignull/num-hidden-methods
Sep 12, 2023
Merged

Add a row to the model editor tables showing how many methods have been hidden#2800
robertbrignull merged 5 commits intomainfrom
robertbrignull/num-hidden-methods

Conversation

@robertbrignull
Copy link
Copy Markdown
Contributor

The aim of this is help users understand the effect of the "Hide modeled APIs" option. So if methods are hidden then we'll show how many there were. This PR also improves the experience when the table all methods are hidden by not showing the table header when there is no table content.

Screenshot showing a non-empty and empty table:
Screenshot 2023-09-11 at 11 47 29

Suggestions about styling very welcome.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@robertbrignull robertbrignull requested a review from a team as a code owner September 11, 2023 11:00
Copy link
Copy Markdown
Member

@koesie10 koesie10 left a comment

Choose a reason for hiding this comment

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

LGTM, just some minor suggestions

Comment thread extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx Outdated
Comment thread extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx Outdated
Comment thread extensions/ql-vscode/src/view/model-editor/MethodRow.tsx
@robertbrignull
Copy link
Copy Markdown
Contributor Author

Review suggestions applied and I've tested it manually and it still looks good.

@robertbrignull robertbrignull merged commit 64f6a77 into main Sep 12, 2023
@robertbrignull robertbrignull deleted the robertbrignull/num-hidden-methods branch September 12, 2023 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants