You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/fixtures
Brecht Van Lommel 6221a6fd54
Scoped labels (#22585)
Add a new "exclusive" option per label. This makes it so that when the
label is named `scope/name`, no other label with the same `scope/`
prefix can be set on an issue.

The scope is determined by the last occurence of `/`, so for example
`scope/alpha/name` and `scope/beta/name` are considered to be in
different scopes and can coexist.

Exclusive scopes are not enforced by any database rules, however they
are enforced when editing labels at the models level, automatically
removing any existing labels in the same scope when either attaching a
new label or replacing all labels.

In menus use a circle instead of checkbox to indicate they function as
radio buttons per scope. Issue filtering by label ensures that only a
single scoped label is selected at a time. Clicking with alt key can be
used to remove a scoped label, both when editing individual issues and
batch editing.

Label rendering refactor for consistency and code simplification:

* Labels now consistently have the same shape, emojis and tooltips
everywhere. This includes the label list and label assignment menus.
* In label list, show description below label same as label menus.
* Don't use exactly black/white text colors to look a bit nicer.
* Simplify text color computation. There is no point computing luminance
in linear color space, as this is a perceptual problem and sRGB is
closer to perceptually linear.
* Increase height of label assignment menus to show more labels. Showing
only 3-4 labels at a time leads to a lot of scrolling.
* Render all labels with a new RenderLabel template helper function.

Label creation and editing in multiline modal menu:

* Change label creation to open a modal menu like label editing.
* Change menu layout to place name, description and colors on separate
lines.
* Don't color cancel button red in label editing modal menu.
* Align text to the left in model menu for better readability and
consistent with settings layout elsewhere.

Custom exclusive scoped label rendering:

* Display scoped label prefix and suffix with slightly darker and
lighter background color respectively, and a slanted edge between them
similar to the `/` symbol.
* In menus exclusive labels are grouped with a divider line.

---------

Co-authored-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2 years ago
..
access.yml Fix user visible check (#21210) 3 years ago
access_token.yml Hash App token (#6724) 6 years ago
action.yml GetFeeds must always discard actions with dangling repo_id (#19598) 3 years ago
attachment.yml Add some api integration tests (#18872) 2 years ago
collaboration.yml Fix "access" fixtures and tests (#10247) 5 years ago
comment.yml [API] Add "before" query to ListIssueComments and ListRepoIssue… (#9685) 5 years ago
commit_status.yml
commit_status_index.yml Fix commit status index problem (#17061) 4 years ago
deleted_branch.yml
deploy_key.yml
email_address.yml Always store primary email address into email_address table and also the state (#15956) 4 years ago
external_login_user.yml add test coverage for original author conversion during migrations (#18506) 3 years ago
follow.yml Fix user visible check (#21210) 3 years ago
gpg_key.yml
gpg_key_import.yml add .gpg url (match github behaviour) (#6610) 6 years ago
hook_task.yml Decouple HookTask from Repository (#17940) 2 years ago
issue.yml Scoped labels (#22585) 2 years ago
issue_assignees.yml Fix issue overview for teams (#19652) 3 years ago
issue_index.yml Fix issue overview for teams (#19652) 3 years ago
issue_label.yml Add Organization Wide Labels (#10814) 5 years ago
issue_user.yml [API] ListIssues add more filters (#16174) 4 years ago
issue_watch.yml Refactor Issues Subscription (#8738) 5 years ago
label.yml Scoped labels (#22585) 2 years ago
lfs_meta_object.yml Test views of LFS files (#22196) 2 years ago
login_source.yml Add LDAP integration tests (#3897) 7 years ago
milestone.yml Add some api integration tests (#18872) 2 years ago
notice.yml
notification.yml [API] Add notification endpoint (#9488) 5 years ago
oauth2_application.yml Record OAuth client type at registration (#21316) 2 years ago
oauth2_authorization_code.yml Record OAuth client type at registration (#21316) 2 years ago
oauth2_grant.yml Record OAuth client type at registration (#21316) 2 years ago
org_user.yml Fix user visible check (#21210) 3 years ago
project.yml Support org/user level projects (#22235) 2 years ago
project_board.yml Support org/user level projects (#22235) 2 years ago
project_issue.yml Kanban board (#8346) 5 years ago
protected_branch.yml
public_key.yml test: command keys (#9357) 5 years ago
pull_request.yml Add API endpoint to get changed files of a PR (#21177) 2 years ago
reaction.yml [API] Add Reactions (#9220) 5 years ago
release.yml [API] ListReleases add filter for draft and pre-releases (#16175) 4 years ago
renamed_branch.yml Add a simple way to rename branch like gh (#15870) 3 years ago
repo_archiver.yml Rework repository archive (#14723) 4 years ago
repo_indexer_status.yml
repo_redirect.yml
repo_topic.yml Add API endpoint for accessing repo topics (#7963) 6 years ago
repo_transfer.yml Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 4 years ago
repo_unit.yml Test views of LFS files (#22196) 2 years ago
repository.yml Scoped labels (#22585) 2 years ago
review.yml Add dismiss review feature (#12674) 4 years ago
star.yml
stopwatch.yml [API] extend StopWatch (#9196) 5 years ago
system_setting.yml Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
team.yml Don't return duplicated users who can create org repo (#22560) 2 years ago
team_repo.yml Restrict permission check on repositories and fix some problems (#5314) 6 years ago
team_unit.yml Fix issue overview for teams (#19652) 3 years ago
team_user.yml Don't return duplicated users who can create org repo (#22560) 2 years ago
topic.yml Add some api integration tests (#18872) 2 years ago
tracked_time.yml [API] Extend times API (#9200) 5 years ago
two_factor.yml org/members: display 2FA members states + optimize sql requests (#7621) 6 years ago
user.yml Scoped labels (#22585) 2 years ago
user_open_id.yml
user_redirect.yml Redirect on changed user and org name (#11649) 4 years ago
watch.yml Auto-subscribe user to repository when they commit/tag to it (#7657) 5 years ago
webauthn_credential.yml Add some api integration tests (#18872) 2 years ago
webhook.yml Implement webhook branch filter (#7791) 6 years ago