Skip to content
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

Closed
wants to merge 23 commits into from

Conversation

kunal-511
Copy link
Contributor

@kunal-511 kunal-511 commented Jul 30, 2024

…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
image

Issue being fixed

Fixes #20608

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@kunal-511 kunal-511 requested a review from a team as a code owner July 30, 2024 12:12
@wy65701436 wy65701436 assigned AllForNothing and unassigned stonezdj Jul 31, 2024
@kunal-511
Copy link
Contributor Author

Please review this PR @zyyw

@AllForNothing
Copy link
Contributor

@ 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

  1. has banner: top = 95px
  2. no banner: top = 60px

@kunal-511
Copy link
Contributor Author

Okay I will look into this

@kunal-511
Copy link
Contributor Author

@AllForNothing I have added a new commit which now dynamically update the top value depending on wether the banner message is there or not

@AllForNothing AllForNothing enabled auto-merge (squash) August 2, 2024 12:44
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.27%. Comparing base (c8c11b4) to head (90b48ab).
Report is 262 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
unittests 66.27% <ø> (+20.90%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1286 files with indirect coverage changes

@AllForNothing
Copy link
Contributor

AllForNothing commented Aug 2, 2024

@kunal-511 Can you refer to this main...AllForNothing:harbor:top-value-search, then update your PR?
the hasValidBannerMessage function is inaccurate as Harbor may have a banner in other cases

auto-merge was automatically disabled August 3, 2024 04:21

Head branch was pushed to by a user without write access

@kunal-511
Copy link
Contributor Author

@AllForNothing I have updated the logic of top value by referring to your feedback. Please check it.

@kunal-511 Can you refer to this main...AllForNothing:harbor:top-value-search, then update your PR? the hasValidBannerMessage function is inaccurate as Harbor may have a banner in other cases

return headerHeight + bannerHeight;
}

private adjustOverlayTop(): void {
Copy link
Contributor

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)

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this function

@kunal-511
Copy link
Contributor Author

@AllForNothing I have added a new commit please check

@AllForNothing
Copy link
Contributor

@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
and run 'npm run lint_fix' to format your code

@kunal-511
Copy link
Contributor Author

@AllForNothing I have added a new commit. Have a look at it .

private adjustOverlayTop(): void {
const topValue = this.getTopValue();
}
@HostListener('window:resize', ['$event'])
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove these services

dependabot bot and others added 5 commits August 22, 2024 22:28
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>
kunal-511 and others added 17 commits August 22, 2024 22:28
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>
@kunal-511 kunal-511 closed this Aug 22, 2024
@kunal-511 kunal-511 deleted the bug-#20608 branch August 22, 2024 17:17
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.

[Bug Report] The banner message is causing the search bar to be obscured.
10 participants