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

Improve profile for Organizations #27982

Merged
merged 8 commits into from
Nov 13, 2023
Merged

Conversation

yp05327
Copy link
Contributor

@yp05327 yp05327 commented Nov 10, 2023

Fixes some problems in #27955:

  • autofocus of the search box
    before:
    if access the home page will jump to the search box
    image
    after:
    will not jump to the search box
    image

  • incorrect display of overview tab
    before:
    image
    after:
    image

  • improve the permission check to the private profile repo
    In Do not show Profile README when repository is private #26295, we simply added access control to the private profile.
    But if user have access to the private profile repo , we should also display the profile.

  • add a button which can jump to the repo list?
    I agree @wxiaoguang 's opinion here: Add Profile Readme for Organisations #27955 (comment)
    But it seems that this feature is sponsored.
    So can we add a button which can quickly jump to the repo list or just move profile to the overview page?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 10, 2023
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 10, 2023
@github-actions github-actions bot added the modifies/templates This PR modifies the template files label Nov 10, 2023
@github-actions github-actions bot removed the modifies/templates This PR modifies the template files label Nov 10, 2023
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

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

lgtm for backend

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Nov 10, 2023
@6543 6543 added this to the 1.22.0 milestone Nov 10, 2023
@silverwind
Copy link
Member

Semi-related: Regarding autofocus on search boxes, I would prefer to get rid of all of them eventually. There are certain unintended behaviours like IOS Safari zooming the page when a input element with font size less than 16px is focused.

templates/org/home.tmpl Outdated Show resolved Hide resolved
templates/explore/repos.tmpl Outdated Show resolved Hide resolved
@yp05327
Copy link
Contributor Author

yp05327 commented Nov 13, 2023

Semi-related: Regarding autofocus on search boxes, I would prefer to get rid of all of them eventually. There are certain unintended behaviours like IOS Safari zooming the page when a input element with font size less than 16px is focused.

I also think it is better to get rid of all of them eventually. Some places have no autofocus and some places have.
For example, in projects list page we don't have autofocus on search box.

@yp05327 yp05327 force-pushed the improve-profile-in-org branch from fc841f2 to 8ffefc9 Compare November 13, 2023 06:23
@silverwind
Copy link
Member

Semi-related: Regarding autofocus on search boxes, I would prefer to get rid of all of them eventually. There are certain unintended behaviours like IOS Safari zooming the page when a input element with font size less than 16px is focused.

I also think it is better to get rid of all of them eventually. Some places have no autofocus and some places have. For example, in projects list page we don't have autofocus on search box.

Yeah, let's do in another PR.

Co-authored-by: silverwind <me@silverwind.io>
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 13, 2023
@6543 6543 merged commit 089ac06 into go-gitea:main Nov 13, 2023
24 checks passed
@yp05327 yp05327 deleted the improve-profile-in-org branch November 13, 2023 23:56
zjjhot added a commit to zjjhot/gitea that referenced this pull request Nov 14, 2023
* upstream/main:
  fixed duplicate attachments on dump on windows (go-gitea#28019)
  [skip ci] Updated translations via Crowdin
  packages: Calculate package size quota using package creator ID instead of owner ID (go-gitea#28007)
  Dont leak private users via extensions (go-gitea#28023)
  Improve profile for Organizations (go-gitea#27982)
  Enable system users search via the API (go-gitea#28013)
  Enable system users for comment.LoadPoster (go-gitea#28014)
  Change default size of issue/pr attachments and repo file (go-gitea#27946)
  Fix missing mail reply address (go-gitea#27997)
lunny pushed a commit that referenced this pull request Nov 20, 2023
silverwind pushed a commit to silverwind/gitea that referenced this pull request Nov 21, 2023
fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this pull request Jan 17, 2024
Fixes some problems in go-gitea#27955:
- autofocus of the search box
before:
if access the home page will jump to the search box

![image](https://github.com/go-gitea/gitea/assets/18380374/7f100e8d-2bd6-4563-85ba-d6008ffc71d7)
after:
will not jump to the search box

![image](https://github.com/go-gitea/gitea/assets/18380374/9aab382c-8ebe-4d18-b990-4adbb6c341ad)

- incorrect display of overview tab
before:

![image](https://github.com/go-gitea/gitea/assets/18380374/b24c79e8-9b79-4576-9276-43bd19172043)
after:

![image](https://github.com/go-gitea/gitea/assets/18380374/7aab5827-f086-4874-bd84-39bd81b872f3)

- improve the permission check to the private profile repo
In go-gitea#26295, we simply added access control to the private profile.
But if user have access to the private profile repo , we should also
display the profile.

- add a button which can jump to the repo list?
I agree @wxiaoguang 's opinion here:
go-gitea#27955 (comment)
But it seems that this feature is sponsored. 
So can we add a button which can quickly jump to the repo list or just
move profile to the `overview` page?

---------

Co-authored-by: silverwind <me@silverwind.io>
fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this pull request Jan 17, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants