Skip to content

Other declaration pills should be clickable when there are changes data #832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

hqhhuang
Copy link
Contributor

Bug/issue #, if applicable: rdar://127125451

Summary

Other declaration pills should be clickable when there are changes data, and when the list of other declarations are expanded.

Testing

Steps:

  1. Test with pages with other declarations and with changes data to ensure that the pills are properly rendered and clickable

Currently working on writing tests.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran npm test, and it succeeded
  • Updated documentation if necessary

Refactor the DeclarationGroup/List logic
@hqhhuang hqhhuang requested review from mportiz08 and marinaaisa May 23, 2024 22:00
hqhhuang and others added 10 commits May 23, 2024 15:22
pill shouldn't be selected if the list is in expanded state
Fix background color of selected pill & clean up css
improve animation for long decl list:
1. bump to top of page first
2. decrease wait time
remove unnecessary checks in `Declaration` test
add test for `DeclarationGroup`
fix changes class for decl without other decls
fix modified declaration with no other decl
Add test for `DeclarationList`
Update test for `DeclarationDiff`
@hqhhuang hqhhuang marked this pull request as ready for review June 20, 2024 18:16
@hqhhuang
Copy link
Contributor Author

@swift-ci test

chore: remove extra empty line
@hqhhuang
Copy link
Contributor Author

@swift-ci test

1 similar comment
@hqhhuang
Copy link
Contributor Author

@swift-ci test

do not highlight diff in collapsed state
@hqhhuang
Copy link
Contributor Author

@swift-ci test

@@ -17,7 +17,6 @@
:key="i"
:declaration="declaration"
:should-caption="currentDeclarations.length > 1"
:changeType="changeType"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we remove changeType as a prop for this component? It doesn't seem like it's being used anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's still used when we use the DeclarationList component in Declaration.vue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ops you meant DeclarationDiff component, not DeclarationList lol

remove `isSwift` prop
@hqhhuang
Copy link
Contributor Author

@swift-ci test

@hqhhuang
Copy link
Contributor Author

@swift-ci test

hqhhuang added 2 commits June 26, 2024 16:16
fix test
…hhuang/swift-docc-render into decl-diff-other-decl-button-clickable
@hqhhuang
Copy link
Contributor Author

@swift-ci test

@hqhhuang hqhhuang merged commit 01b83de into swiftlang:main Jun 26, 2024
1 check passed
@hqhhuang hqhhuang deleted the decl-diff-other-decl-button-clickable branch June 26, 2024 23:22
hqhhuang added a commit to hqhhuang/swift-docc-render that referenced this pull request Jun 26, 2024
…ta (swiftlang#832)  rdar://127125451

Other declaration pills should be clickable when there are changes data (swiftlang#832)  rdar://127125451
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.

2 participants