Commit Graph

1016 Commits

Author SHA1 Message Date
Janne Valkealahti
1dbb35a8a7 StringInput better unicode handling
- Add unicode handling in flow components in
  AbstractTextComponent which allows StringInput
  to process unicode given from jline.
- This add basic non-english character support
  for input.
- Backport #1115
- Fixes #1116
2024-08-13 14:38:37 +01:00
Janne Valkealahti
7799a5e40e Upgrade jline 3.26.3
- Backport #1105
- Fixes #1106
2024-07-24 07:15:24 +01:00
Janne Valkealahti
e145c23a88 Upgrade spring-boot 3.2.8
- Fixes #1102
2024-07-20 06:34:32 +01:00
github-actions[bot]
1e92a9cae3 Next development version 2024-06-25 11:57:11 +00:00
Janne Valkealahti
ee41d1329b Upgrade jline 3.26.2
- Backport #1091
- Fixes #1092
2024-06-20 17:11:46 +01:00
Janne Valkealahti
1ac9ab0ba6 Upgrade spring-boot 3.2.7
- Fixes #1089
2024-06-20 17:06:53 +01:00
github-actions[bot]
937e7d4d09 Next development version 2024-05-28 12:15:11 +00:00
Janne Valkealahti
ee1b4f2092 Revisit posix short handling in Lexer
- Posix short style is expected to have only single
  dash and letters so use this style to come up better
  separation between options and arguments.
- Backport #1077
- Fixes #1078
2024-05-28 10:40:37 +01:00
Janne Valkealahti
b67b3010f2 Upgrade jline 3.26.1
- Backport #1074
- Fixes #1076
2024-05-26 16:13:30 +01:00
Janne Valkealahti
298f0a1dea Upgrade spring-boot 3.2.6
- Fixes #1069
2024-05-24 06:29:18 +01:00
Janne Valkealahti
0db1bbc051 Document command availability
- Docs for annotation and registration
- Remove dynamic from header
- Move samples to snippets
- Backport #1053
- Fixes #1073
2024-05-23 09:10:57 +01:00
Janne Valkealahti
05ad858284 Add state to e2e availability tests 2024-05-23 08:48:40 +01:00
Janne Valkealahti
6ab5f60966 Force compatibility machine target
- We're mostly getting issues with macos runners
  where -march=compatibility looks to work better
  but is not automatically set depending which
  cpu arch is in use.
- Backport #1064
2024-05-07 13:27:08 +01:00
Janne Valkealahti
477b24bbd4 Fix fg and bg styling
- In ListView and MenuView fix how styling for
  background and foreground are used.
- In Catalog app fix same issue in ScenarioListCell
- Backport #1063
- Fixes #1066
2024-05-07 08:07:24 +01:00
github-actions[bot]
f6fae64fa7 Next development version 2024-04-23 07:48:52 +00:00
Janne Valkealahti
facd4c123d Upgrade jline 3.26.0
- Backport #1046
- Fixes #1058
2024-04-22 16:38:44 +01:00
Janne Valkealahti
6017fb15d0 Upgrade spring-boot 3.2.5
- Fixes #1049
2024-04-19 08:23:22 +01:00
Janne Valkealahti
318b0a4842 GridView fixed size position to top left
- Port changes for tview to not position fixed
  size items into bottom right if item in
  question is last one.
- Backport #1010
- Fixes #1043
2024-04-15 09:00:29 +01:00
Janne Valkealahti
d19bf6759c Synchronize display call
- In TerminalUI a display call may be called from
  multiple threads, while only seen to happen on
  windows, should be synchronized.
- Backport #1039
- Fixes #1040
2024-04-12 17:11:37 +01:00
github-actions[bot]
a49e6fdffc Next development version 2024-03-21 16:48:12 +00:00
Janne Valkealahti
6b39c3528b Enable signing release
- Relates #1035
2024-03-21 16:38:12 +00:00
Janne Valkealahti
1e0cf80ad9 Update nexus sync steps
- Backport #1033
- Relates #1035
2024-03-21 13:04:03 +00:00
Janne Valkealahti
68af1fb800 Upgrade spring-boot 3.2.4
- Fixes #1022
2024-03-21 12:54:13 +00:00
Janne Valkealahti
503756b5c1 Enable signing snapshots
- Backport #1033
- Relates #1035
2024-03-21 11:27:55 +00:00
Janne Valkealahti
0f054cec48 Add signing plugin
- Gradle build can now sign artifacts conditionally
- Backport #1033
- Relates #1035
2024-03-21 11:21:40 +00:00
Janne Valkealahti
d252482bf4 Fix docs sample
- Backport #1012
- Fixes #1032
2024-03-10 15:46:02 +00:00
Janne Valkealahti
b7218007ed Upgrade gradle 8.6
- Backport #1028
- Fixes #1029
2024-03-10 15:22:20 +00:00
Janne Valkealahti
ee53836d4f Remove explicit copyright from docs index page
- Backport #1024
- Fixes #1026
2024-03-10 14:32:46 +00:00
Janne Valkealahti
ab8fb679e2 Fork 3.2.x maintenance branch 2024-03-10 12:30:28 +00:00
Maksim Sasnouski
66dda017f9 Upgrade com.gradle.enterprise plugin to 3.16.2 2024-03-09 16:33:33 +00:00
github-actions[bot]
e5b50cf882 Next development version 2024-02-26 14:24:56 +00:00
Janne Valkealahti
19f2570f8e Upgrade EnricoMi/publish-unit-test-result-action/composite 2024-02-23 07:48:36 +00:00
Janne Valkealahti
daebf98918 Upgrade spring-boot 3.2.3
- Fixes #1007
2024-02-22 20:42:53 +00:00
Janne Valkealahti
28459388b6 Polish 2024-02-18 16:51:25 +00:00
Janne Valkealahti
8705822ad3 Add initial ProgressView docs
- Relates #995
2024-02-17 15:52:00 +00:00
Janne Valkealahti
cdb2eb8ca1 Rename Context to ProgressContext
- Relates #995
2024-02-17 14:28:51 +00:00
Janne Valkealahti
192eb5e506 Add ProgressView initial scenario
- Relates #995
2024-02-16 17:53:21 +00:00
Janne Valkealahti
7c91dbff8a Scenario lifecycle methods
- Add ScenarioContext which knows about View and start/stop
  runnable methods.
- Change Catalog to rely on ScenarioContext and call
  start/stop on an appropriate moment.
- Still keep Scenario.build() around so that we have time
  to refactor in favour of ScenarioContext.buildContext()
  or whatever build() method in it should be.
- Fixes #1004
2024-02-16 17:53:03 +00:00
Janne Valkealahti
d38d0d46e0 Fix wrong ProgressView ctor use
- Fixes a bug so that given items are actually used
- Relates #995
2024-02-16 09:27:00 +00:00
Janne Valkealahti
77a694848c ScriptShellRunner should have correct run detection
- Fix run detection so that @ has to be first character in a first
  argument and it also has additional content, like @path-to-file.
- This fixes issue where `--arg @` would blow up as an normal
  option argument.
- Fixes #996
2024-02-15 10:17:04 +00:00
Janne Valkealahti
afb8bc7104 Revisit ProgressView
- Polish a lot of things
- Do updates/redraw internally with eventloop as it'd be super
  inconvenient asking user to handle this externally
- Rewrite sample to be more unified for various cases
- Set eventloop from ViewComponent
- Relates #995
2024-02-15 09:26:23 +00:00
Janne Valkealahti
27c2717d3b Can attempt message send without subscribers
- Change state assert not to throw if we're in state
  where message would never get consumed. Now
  just returning false.
- Fixes #1002
2024-02-15 09:26:03 +00:00
Janne Valkealahti
a13109dd38 Remove 3.0.x from e2e test scheduling 2024-02-11 14:27:46 +00:00
Janne Valkealahti
547e7167b6 Change e2e native tests to use latest graal
- jdk21 and latest graalvm
- Fixes #999
2024-02-11 13:48:56 +00:00
Janne Valkealahti
7fa953f131 ViewComponent async execution
- Modifies ViewComponent with changed api's so that
  it can be executed with a thread allowing caller
  not to block.
- Add ViewComponentBuilder concept and create is as
  a bean similar to TerminalUIBuilder.
- Relates #997
2024-02-10 15:08:34 +00:00
Janne Valkealahti
abc4ffaaa3 ProgressView spinner theming
- New SpinnerSettings which integrates with ThemeSettings
- Support infra around spinner theming
- Relates #995
2024-02-04 14:57:23 +00:00
Janne Valkealahti
95aaa865c5 ProgressView spinner calculation in item function
- Move spinner frame calculation to item itself so that
- Remove spinnerFrame from state and add
  start/update times
- view don't have hard dependency to it, as we'd
  need its interval
- Change spinner to run only when view is running
- Relates #995
2024-02-04 09:43:56 +00:00
Janne Valkealahti
9446afecb7 Make ViewComponent api better for expected use
- Exposing eventloop if user need to interact with it
- Add api/feature to set used view rect expand to
  full terminal width
- Add plain ProgressView samples
- Relates #995
- Fixes #997
2024-02-02 09:32:07 +00:00
Janne Valkealahti
10d9940299 Initial ProgressView implementation
- Provides a basic feature set for ProgressView.
- Progress can have a set of items which are driven
  by function style factory interface.
- New class TextCell which is a base of progress items.
- Not yet fully working and further changes, samples, docs
  will come in other commits.
- Relates #995
2024-02-02 08:44:28 +00:00
Janne Valkealahti
3d52f174af Don't fail writing text outside screen
- Adding np check not to try using item outside of a screen
- This fix essentially discards text write beyond screen bounds
- Fixes #993
2024-01-29 09:42:57 +00:00