Commit graph

18 commits

Author SHA1 Message Date
Maxim Slipenko
d7e9b679be chore: fix lint-frontend errors 2026-03-21 11:55:19 +03:00
Maxim Slipenko
0e6c8902ca feat: add pull request suggestions via !
see https://codeberg.org/forgejo/forgejo/pulls/8088/files#issuecomment-10652669
2026-03-21 11:28:00 +03:00
Maxim Slipenko
0b60761a6c fix: migrate to querying by keyword 2026-01-18 11:32:38 +03:00
Maxim Slipenko
77987efcb6 Merge branch 'forgejo' into port-32327 2025-09-26 10:20:51 +03:00
Gusted
fe5f16205f
feat: make text expander aware of custom emojis
The old MDE editor is aware of custom emojis and shows them as
suggestions, but the new text expander is not aware of them and seems to
re-implement some logic.

Simplify it by using what `emoji.js` already provides.

Custom emojis require a bit more work to get shown correctly (HTML and
adding a `gap` to fake a space).
2025-08-10 23:11:41 +02:00
Maxim Slipenko
ca52403241 fix matchIssue 2025-06-20 10:58:12 +03:00
Maxim Slipenko
01de4fcf83 refactor 2025-06-20 10:09:31 +03:00
Maxim Slipenko
aa9eb9480a refactor: remove sort if query is empty 2025-06-15 21:13:29 +03:00
Maxim Slipenko
e8145e3297 refactor 2025-06-15 21:00:57 +03:00
Maxim Slipenko
922cd52f1b fix lint errors 2025-06-07 19:21:15 +03:00
Maxim Slipenko
8d30b52fc1 exclude current issue from suggestion 2025-06-07 19:17:00 +03:00
Maxim Slipenko
3b0b5d0513 add unit tests for js 2025-06-07 19:02:13 +03:00
Maxim Slipenko
6e2c72cd70 fix: use another method for suggestions 2025-06-07 18:21:41 +03:00
Maxim Slipenko
3d4372c8bf feat: add issue suggestions 2025-06-06 01:25:07 +03:00
wxiaoguang
74930b1ccd
Avoiding accessing undefined mentionValues (#26461)
The `window.config.mentionValues` might be undefined: 

```
{{if or .Participants .Assignees .MentionableTeams}}
    mentionValues: ...
{{end}}
```
2023-08-12 08:36:23 +00:00
silverwind
ef6f5f0124
rename tributeValues to mentionValues (#25375)
Very simple change, just rename this variable so it does not feature the
name of the module.
2023-06-20 03:32:49 +00:00
silverwind
4aacc3ac78
Add two eslint plugins (#24776)
Add these two plugins and autofix issues:

-
[eslint-plugin-no-use-extend-native](https://github.com/dustinspecker/eslint-plugin-no-use-extend-native)
-
[eslint-plugin-array-func](https://github.com/freaktechnik/eslint-plugin-array-func)
2023-05-18 09:14:31 +08:00
Yarden Shoham
3cc87370c3
Improve emoji and mention matching (#24255)
Prioritize matches that start with the given text, then matches that
contain the given text.

I wanted to add a heart emoji on a pull request comment so I started
writing `:`, `h`, `e`, `a`, `r` (at this point I still couldn't find the
heart), `t`... The heart was not on the list, that's weird - it feels
like I made a typo or a mistake. This fixes that.

This also feels more like GitHub's emoji auto-complete.

# Before

![image](https://user-images.githubusercontent.com/20454870/233630750-bd0a1b76-33d0-41d4-9218-a37b670c42b0.png)

# After

![image](https://user-images.githubusercontent.com/20454870/233775128-05e67fc1-e092-4025-b6f7-1fd8e5f71e87.png)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
2023-04-22 11:32:34 -04:00