Commit Graph

73 Commits

Author SHA1 Message Date
Dong Bin
0f1a00f388 Enhance TitleBar and CaptionButtons to respect latest Window.CanMaximize and Window.CanMinimize (#815)
* fix: enhance window resizing logic to include maximization check

* fix: update CaptionButtons to control button visibility based on window properties

* fix: update obsolescence messages for minimize and restore button properties

* chore: update comment.
2025-11-14 13:32:27 +08:00
Dong Bin
26f195871b fix: update conditional compilation symbols for .NET version handling (#820) 2025-11-12 15:43:27 +08:00
Copilot
0ab084b198 Fix NavMenu selection on right-click (#819)
* Initial plan

* Fix NavMenu right-click behavior - prevent selection on right-click

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>
2025-11-12 15:33:18 +08:00
Copilot
441f123de2 Add keyboard navigation and focus styles to TreeComboBox and MultiComboBox (#808)
* Initial plan

* Add keyboard navigation and focus styles to TreeComboBox

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

* Fix keyboard handler - add parentheses for clarity and handle Tab key properly

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

* Add keyboard navigation to MultiComboBox

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>
2025-11-11 23:07:26 +08:00
Dong Bin
3c29764af4 test: enhance accessibility tests for form controls 2025-11-07 23:18:19 +08:00
Dong Bin
e46a6edbeb chore: update Avalonia version to 11.3.7 across project files 2025-11-05 01:33:20 +08:00
Dong Bin
dcaef1c8ed [New Control] Descriptions (#791)
* feat: add ColumnWrapPanel.

* feat: add Descriptions and DescriptionsItem controls

* WIP: extract a LabeledContentControl for this particular need.

* wip.

* feat: setup demo. fix various initial status issue.

* fix: fix a layout issue.

* feat: improve demo.

* feat: update demo.

* fix: remove a redundant calculation.

* feat: update per copilot feedback.

* feat: add tests, fix a calculation issue.

* feat: refactor to change the default label and value binding assignment logic.

* feat: introduce orientation.

* misc: format codes.

* feat: clarify LabelPosition property.

* feat: extract Font resources.

* revert AvatarDemo.

* feat: assign specific value to Font resources for testing.

* misc: resolve copilot comment.

---------

Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
2025-10-22 20:49:02 +08:00
Juster Zhu
c6ac019a4e fix: PathPicker's File Filtering Function malfunctions (#786)
* fix: PathPicker's File Filtering Function malfunctions

Regular expression validation for adding parameters; the sample reference content is as follows:

[Name,Pattern] → True
[123,.exe,.pdb] → True
[All] → True
[ImageAll] → True
[11,*.txt] → True
*.123 → False
*.txt → False
.png → False
[*.txt] → False
[.txt] → False
[a] → True
[a,b] → True
[a,b,c] → True
[a,*] → True
[a,.] → True
[*] → False
[.] → False
[a,] → False
[,a] → False
[] → False
[a,b,] → False
[a,,b] → False
[a*b] → False
[a.b] → False

* Add PathPicker regex validation and headless tests

Introduces regex-based validation for the PathPicker FileFilter property, supporting both NETSTANDARD2_0 and NET8_0 with conditional compilation. Adds headless UI tests and supporting test views to verify correct and incorrect filter patterns.

* Refactor PathPicker tests and update accessibility

Moved PathPicker unit tests from HeadlessTest.Ursa to Test.Ursa, removing UI-dependent test files and replacing them with direct unit tests for ParseFileTypes. Updated PathPicker.cs to make ParseFileTypes internal for improved testability and adjusted regex method accessibility. Updated project file to remove references to deleted test files.

* Update HeadlessTest.Ursa.csproj

* Update src/Ursa/Controls/PathPicker/PathPicker.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-21 23:03:11 +08:00
copilot-swe-agent[bot]
4d5ff8f8c4 Update coverlet.collector to 6.0.4
Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>
2025-10-12 14:24:21 +00:00
Dong Bin
89c749c624 Merge pull request #775 from irihitech/clean
clean up controls XAML files
2025-09-19 16:45:50 +08:00
Zhang Dian
83e3334c71 misc: simplify Shared namespace reference. 2025-09-16 20:23:41 +08:00
rabbitism
13008225c0 test: add basic unit test, fix a search text issue. 2025-09-15 15:59:25 +08:00
Dong Bin
8147a05b5c feat: add TrailingWrapWidth. 2025-09-03 21:18:56 +08:00
Dong Bin
9ee89b7ce5 test: fix measure test. 2025-09-03 21:12:20 +08:00
Dong Bin
a778882c33 feat: update namespace for WrapPanelWithTrailingItem and its tests 2025-09-03 21:08:37 +08:00
Dong Bin
bce6e08561 feat: add tests. 2025-09-03 18:17:56 +08:00
Copilot
2e812357d7 Add comprehensive headless tests for 10 controls with enhanced ItemsSource and method testing (#18)
* Initial plan

* Add comprehensive tests for 5 controls: Avatar, Clock, ClockTicks, AspectRatioLayout, AspectRatioLayoutItem

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

* Complete comprehensive headless tests for all 10 controls - added 72 more tests

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

* Add requested test cases for MultiComboBox and TreeComboBox - ItemsSource, Remove, Clear, hierarchical data

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

* test: open dropdown to trigger materialization.

* test: set CurrentCulture to en-US for calendar view tests

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>
Co-authored-by: rabbitism <dongbin@irihi.tech>
2025-08-02 17:12:06 +08:00
Dong Bin
2a0ee06bf1 Add comprehensive test coverage for many controls (#737)
Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-07-30 16:25:13 +08:00
Dong Bin
b7d6e70684 feat: add test for LineCount. 2025-07-17 18:48:07 +08:00
Zhang Dian
1184796604 Merge pull request #701 from irihitech/navmenu
NavMenu: SelectionChanging Event
2025-07-11 14:48:33 +08:00
rabbitism
cbf88a1aea test: add headless test for canselect handling. 2025-07-11 11:26:05 +08:00
Dong Bin
d470488c76 test: mvvm tests. 2025-07-10 11:39:45 +08:00
Dong Bin
d360ca9ef0 feat: rename AnchorId to Id and add TopOffset property. Add headless tests. 2025-07-10 11:21:47 +08:00
Dong Bin
fd27a7d429 feat: ensure initial state is respected in EnumSelector 2025-05-14 23:02:30 +08:00
Dong Bin
3dd15f57e3 fix: fix testing. 2025-02-27 18:47:59 +08:00
Dong Bin
2b344188eb fix: fix nullable annotations in headless test project. 2025-02-27 17:15:40 +08:00
Dong Bin
50ac16ff23 fix: fix various nullable warning issues in test project. 2025-02-27 16:40:15 +08:00
Dong Bin
55031c58c7 Merge pull request #566 from irihitech/page
Fix pagination initialization issue.
2025-02-27 14:10:50 +08:00
Dong Bin
021225dc1c test: add tests for command and event. 2025-02-21 02:11:42 +08:00
Dong Bin
6808f6d61d test: add pagination tests. 2025-02-21 01:41:50 +08:00
Dong Bin
fa86d34e2b fix: fix a ut after behavior change. 2025-02-19 22:28:26 +08:00
Dong Bin
27375f722e fix: completely fix timepicker racing issue. 2025-02-18 18:02:37 +08:00
Dong Bin
e062efead0 test: add datepicker test, make DatePicker focusable, change many behaviors. 2025-02-18 01:33:04 +08:00
Dong Bin
8cd3d1e031 test: WIP datepicker test. 2025-02-17 22:52:10 +08:00
Dong Bin
cadccfd268 feat: timepickerpresenter selection tests. 2025-02-17 19:35:14 +08:00
Dong Bin
c97476e1e8 test: WIP fix testing in ubuntu. 2025-02-17 14:55:05 +08:00
Dong Bin
afd5449f5b test: WIP, fix an issue when passing year event. 2025-02-17 03:03:27 +08:00
Dong Bin
051482de57 test:WIP add tests. Change decade context end date. 2025-02-17 01:39:39 +08:00
Dong Bin
4893e6efb4 fix: fix drawer measure 2025-02-08 02:11:21 +08:00
Dong Bin
8dbdc95a9a test: add fail test. 2025-02-08 02:08:02 +08:00
Dong Bin
2a516e4e17 fix: fix test scope. 2025-01-17 18:09:08 +08:00
Dong Bin
58f51e15f3 feat: add unit test. fix various issues discovered in test. 2025-01-17 18:05:01 +08:00
Dong Bin
2ab46bd77e Merge pull request #544 from irihitech/avatar
Enhance Avatar & Badge
2025-01-17 16:10:12 +08:00
Zhang Dian
33bfd67833 feat: remove Template when Dot=True, add Badge Tests, format Badge class. 2025-01-16 18:31:03 +08:00
望尘空忧
87060da654 Add:OverlayFeedbackElement.ClosedEvent fixed HeadlessTest. 2025-01-16 01:28:36 +08:00
望尘空忧
93fe82c100 Fixed: The propagation issue of OverlayFeedbackElement.ClosedEvent. 2025-01-16 01:10:33 +08:00
Dong Bin
4f5573830c Merge pull request #535 from irihitech/534-form
Fix Form A11y for dynamic generated FormItems.
2025-01-13 21:30:54 +08:00
Dong Bin
2132fd5762 Merge branch 'main' into tests 2025-01-10 22:10:28 +08:00
Dong Bin
796fe4983f test: fix test case 2 2025-01-10 21:58:19 +08:00
Dong Bin
b707a2ebda fix: fix accessibility for dynamic generated form. 2025-01-10 21:49:56 +08:00