-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Resolved the bug The banner message is causing the search bar to be o… #20794
Conversation
Please review this PR @zyyw |
@ kunal-511 Can you use a dynamic top value to fit the different cases? Using the document.query function to know if there is a banner
|
Okay I will look into this |
@AllForNothing I have added a new commit which now dynamically update the top value depending on wether the banner message is there or not |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20794 +/- ##
===========================================
+ Coverage 45.36% 66.27% +20.90%
===========================================
Files 244 1046 +802
Lines 13333 114173 +100840
Branches 2719 2847 +128
===========================================
+ Hits 6049 75665 +69616
- Misses 6983 34384 +27401
- Partials 301 4124 +3823
Flags with carried forward coverage won't be shown. Click here to find out more. |
@kunal-511 Can you refer to this main...AllForNothing:harbor:top-value-search, then update your PR? |
Head branch was pushed to by a user without write access
@AllForNothing I have updated the logic of top value by referring to your feedback. Please check it.
|
return headerHeight + bannerHeight; | ||
} | ||
|
||
private adjustOverlayTop(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you use this function to re-render the dom, then you can remove the style binding in [search-result.component.html](https://github.com/goharbor/harbor/pull/20794/files#diff-ec327ae356d30c4098c563bfce30fa1e746dfc33c449e9dcdd0a273c11297c7c)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this function
src/portal/src/app/shared/components/global-search/search-result.component.ts
Outdated
Show resolved
Hide resolved
@AllForNothing I have added a new commit please check |
@kunal-511 What about just cherrying-pick the changes from main...AllForNothing:harbor:top-value-search. BTW, you need to sign your commits with 'git commit -s' to pass the DCO check |
@AllForNothing I have added a new commit. Have a look at it . |
private adjustOverlayTop(): void { | ||
const topValue = this.getTopValue(); | ||
} | ||
@HostListener('window:resize', ['$event']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this listener
private searchTrigger: SearchTriggerService, | ||
private renderer: Renderer2, | ||
private el: ElementRef, | ||
private appConfigService: AppConfigService |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these services
goharbor#20721) Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.64.0 to 1.64.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.64.0...v1.64.1) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Shengwen YU <yshengwen@vmware.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shengwen YU <yshengwen@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
…bscured goharbor#20608 Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
… top value depending on banner message Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
…component Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: Shengwen Yu <yshengwen@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
1. Mock remote interface for distribution manifest by mockery package feature. 2. Refactor hand-generated mock files to automated management generation. 3. Clean useless mocks. Signed-off-by: chlins <chlins.zhang@gmail.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
* add list project arifacts API This API supports listing all artifacts belonging to a specified project. It also allows fetching the latest artifact in each repositry, with the option to filter by either media_type or artifact_type. Signed-off-by: wang yan <wangyan@vmware.com> * resolve the comments Signed-off-by: wang yan <wangyan@vmware.com> --------- Signed-off-by: wang yan <wangyan@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: xuelichao <xuel@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
* Extend regex for c2s support Signed-off-by: Ethan Howell <ethan.c.howell@hotmail.com> * Add more test cases Signed-off-by: Ethan Howell <ethan.c.howell@hotmail.com> * Update region Signed-off-by: Ethan Howell <ethan.c.howell@hotmail.com> * Fix region parsing Signed-off-by: Ethan Howell <ethan.c.howell@hotmail.com> * Add length check Signed-off-by: Ethan Howell <ethan.c.howell@hotmail.com> * Update check Signed-off-by: Ethan Howell <ethan.c.howell@hotmail.com> --------- Signed-off-by: Ethan Howell <ethan.c.howell@hotmail.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: Shengwen Yu <yshengwen@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Parallel attach LDAP group Add configure LDAP group attach parallel UI Change the /c/login timeout from 60 (nginx default) to 900 seconds in nginx.conf Signed-off-by: stonezdj <stone.zhang@broadcom.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
PR goharbor#18668 (commit bf7c82b) removed notary, but the source code of migrate-patch and some process in the Makefile for it remained, so remove them. Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com> Co-authored-by: Shengwen YU <yshengwen@vmware.com> Co-authored-by: Wang Yan <wangyan@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
fixes goharbor#20828 Signed-off-by: stonezdj <stone.zhang@broadcom.com> Co-authored-by: Shengwen YU <yshengwen@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
…rbor#20659) fix `version` is obsolete warning Signed-off-by: 蝦米 <me@jhdxr.com> Co-authored-by: Wang Yan <wangyan@vmware.com> Co-authored-by: MinerYang <yminer@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: chlins <chlins.zhang@gmail.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: Johan Kok <post@johankok.nl> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Signed-off-by: Shengwen Yu <yshengwen@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
1, add creation audit log for robot account 2, add deletion audit log for robot account Signed-off-by: wang yan <wangyan@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
* add creator for robot add the creator for robot creation Signed-off-by: wang yan <wangyan@vmware.com> * resolve comments Signed-off-by: wang yan <wangyan@vmware.com> * fix ut Signed-off-by: wang yan <wangyan@vmware.com> --------- Signed-off-by: wang yan <wangyan@vmware.com> Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
…bscured #20608
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Bug Report: The banner message was obscuring the search bar. #20608
Resolution: The issue has been resolved by adjusting some styles to ensure the below content does not overlap the search bar.
Details: After applying the style changes, the search bar is now fully visible even with the banner message displayed at the top of the page.
For the proof attaching the screenshot
Issue being fixed
Fixes #20608
Please indicate you've done the following: