Commit graph

76 commits

Author SHA1 Message Date
79563454c9
[#1223] lens/tui: Refactor UI
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
73b466db3b
[#1223] lens/tui: Change shortcuts
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
e3490cf0e1
[#1223] lens/tui: Fix color formatting
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
1515d8b7b4
[#1223] lens/tui: Add schema for writecache
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
78dd552739
[#1223] lens/tui: Fix container bucket schema display
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
d97b9a8439
[#1223] lens/tui: Fix buckets filters
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
bb62a88de0
[#1223] lens/tui: Use search history when start with predefined filter
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
fbc4e3169f
[#1223] lens/tui: Add missing parser for shard id
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
c76d901ca0
[#1223] lens/tui: Change help page for searching
Add information about empty prompt handling. In that case
all results are returned with no filter applied.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
2c8e4f963d
[#1223] lens/tui: Fix User Attribute bucket schema display method
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
8dd398914e
[#1223] lens/tui: Add cursor to search bar
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
a248b4233d
[#1223] lens/tui: Use colorization in schema desplay
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
b3f8b30842
[#1223] lens/tui: Add search history
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
c46c868628
[#1223] lens/tui: Add interface for string colorization
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
2157afb76d
[#1223] lens/tui: Change User Attribute bucket schema
Make User Attribute bucket display more verbose

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
f8ce4ea63a
[#1223] lens/tui: Add alternative text on open an empty bucket
Add an alternative text to display in the selected bucket's records
view in case that bucket is empty.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
4ed3b273f9
[#1223] lens/tui: Enchance help page
- Make help multipage: one page for each chapter.
- Improve help information.
- Add markup.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
ff28b7e592
[#1223] lens/tui: Add help for tui command in lens CLI
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
62f8e91d79
[#1223] lens/tui: Add app exit on q pressed while on help page
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
b00f184c78
[#1223] lens/tui: Add CLI flags to start search on application run
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
bcd48ff221
[#1223] lens/tui: Add help page
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1504a1ae19
[#1223] lens/tui: Add search by attribute key or key and value
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c54ae73841
[#1223] lens/tui: Fix exit on loading cancel
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
a3e0380e43
[#1223] lens/tui: Add error message on invalid search prompt
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
235cc15037
[#1223] lens/tui: Add search by OID, CID and full address
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
78a39f47b3
[#1223] lens/tui: Remove redundant UI components
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1a1aa9fc4b
[#1223] lens/tui: remove pprof
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
98215ff06b
[#1223] lens/tui: fix records view input handling
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
b05fb6b767
[#1223] lens/tui: add records view and detailed view
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
172492a9be
[#1223] lens/tui: add loadable components into application
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1da1824d15
[#1223] lens/tui: Make parsers for each bucket/record type
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
22170f05e9
[#1223] lens/tui: Fix subhandlers using same result to decode
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c72bc6596a
[#1223] lens/tui: Abandon parsers
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
08f9fc4738
[#1223] lens/tui: Add lazy/eager switch while loading buckets
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
ec66b4cee2
[#1223] lens/tui: Add search by CID and OID
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c65b3a9ba9
[#1223] lens/tui: Change buckets view loading
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
4115e4575b
[#1223] lens/tui: Add CID/OID-based filtering to handlers
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
8682762ef1
[#1223] lens/tui: Add rich text support for multipage view component
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
cd282edfd5
[#1223] lens/tui: Add detailed view for key-value records
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
249f621b56
[#1223] lens/tui: Change schema handlers
Make schema parsers generic

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1e07775161
[#1223] lens/tui: Add schema handlers for all bucket types
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
d4ce0adf11
[#1223] lens/tui: Add page navigation component
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
d31d52e8bb
[#1223] lens/tui: Make fixes to MultipageView component
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c727aed7cb
[#1223] lens/tui: Remove unused TUI components
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
ced78fd939
[#1223] lens/tui: Make database open in read-only mode
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
127928f314
[#1223] lens/tui: Add schema support for more bucket types
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
75b60bba1a
[#1223] lens/tui: Change schema-guided parsing package structure
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
dd6b6fc2e7
[#1223] lens/tui: Change schema-guided parsing
- Unite validation and formatting
- Return result that satisfies fmt.Stringer interface

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
dd4d54bbac
[#1223] lens/tui: Add validation and format handling for some buckets
Add validation and format handling for buckets with regular, lock and
tombstone objects as well as those buckets' underlaying records.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
49ef80499c
[#1223] lens/tui: Change application structure
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00