Commit Graph

3625 Commits

Author SHA1 Message Date
Will McGugan
b265b855cd insert pause 2022-12-19 13:39:03 +00:00
Will McGugan
bb7fd40d73 force console on terminal summary 2022-12-19 13:26:47 +00:00
Will McGugan
43ed1d5927 fix snapshot 2022-12-19 13:00:42 +00:00
Will McGugan
f8fad57de2 changelog 2022-12-19 12:55:26 +00:00
Will McGugan
32b7308ac8 fox for nested heights 2022-12-19 12:54:06 +00:00
Will McGugan
c20bf664e8 Update bug_report.md 2022-12-18 10:22:36 +00:00
Will McGugan
97d64c3371 Merge pull request #1389 from Textualize/add-faqtory
Add faqtory
2022-12-18 10:02:35 +00:00
Will McGugan
6785bf4145 restore 2022-12-18 09:59:22 +00:00
Will McGugan
4102a61bfc Readme 2022-12-18 09:52:26 +00:00
Will McGugan
3cfebb0423 Added faqtory 2022-12-18 09:50:44 +00:00
Will McGugan
15417d47a6 Merge pull request #1379 from Textualize/scroll-to-top
fix scroll to top
v0.7.0
2022-12-17 09:33:44 +00:00
Will McGugan
d264ebb4c8 version bump 2022-12-17 09:25:38 +00:00
Will McGugan
df1bcd5331 Fix bindings action 2022-12-17 09:20:30 +00:00
Will McGugan
124df59361 handle exit from load 2022-12-16 20:53:11 +00:00
Will McGugan
cf82a120a8 Merge branch 'main' into scroll-to-top 2022-12-16 20:19:19 +00:00
Will McGugan
70d4ebc316 Added message to exit method 2022-12-16 20:19:01 +00:00
Will McGugan
d11e3f2e15 Merge pull request #1346 from davep/bug/1342/inherited-movement-keys
Add support for a `PRIORITY_BINDINGS` classvar to work alongside `BINDINGS`
2022-12-16 20:13:31 +00:00
Will McGugan
62d5810c04 Merge pull request #1359 from Textualize/validator-first-set
Call validator on first set
2022-12-16 20:11:36 +00:00
Rodrigo Girão Serrão
21ab411c23 Merge pull request #1382 from Textualize/rodrigogiraoserrao-patch-1
Fix link typo
2022-12-16 17:03:22 +00:00
Will McGugan
70cc547221 tree auto width 2022-12-16 15:50:47 +00:00
Rodrigo Girão Serrão
b4262201ae Update mkdocs.yml 2022-12-16 13:13:08 +00:00
Rodrigo Girão Serrão
92391339ae Fix link typo 2022-12-16 11:49:07 +00:00
Will McGugan
6bc7e98889 fix scroll to top 2022-12-16 09:09:29 +00:00
Dave Pearson
4512d33c90 Merge pull request #1373 from davep/list-item-checks-fix
Correct the check list for the `ListItem`
2022-12-15 16:27:05 +00:00
Dave Pearson
c90e4adaf8 Correct the check list for the ListItem
The checks in the list, which were unckecked, needed spaces in them to
render correctly in the docs.
2022-12-15 16:23:49 +00:00
Dave Pearson
4ee1aba436 Add a note about priority and defaults to the binding documentation 2022-12-15 15:02:55 +00:00
darrenburns
14a4ad48cd Merge branch 'main' into validator-first-set 2022-12-15 14:50:46 +00:00
Dave Pearson
b0de5aed3d Remove vestigial cast from earlier tests 2022-12-15 14:46:37 +00:00
Dave Pearson
f25f6cbbb5 Fix a typo 2022-12-15 14:45:34 +00:00
Dave Pearson
6dfa8802ec Update the CHANGELOG 2022-12-15 14:37:54 +00:00
Dave Pearson
50dd8d095c Remove universal=True from bindings in 5x5
Not only has universal not changed to priority, these bindings are on the
screen and so have priority anyway. This means we can safely go back to how
5x5 was prior to 0.6.0.
2022-12-15 14:30:48 +00:00
Dave Pearson
431053182c Merge branch 'main' into bug/1342/inherited-movement-keys 2022-12-15 14:28:03 +00:00
Dave Pearson
75c9fba393 Use is to test tri-state, rather than equality
See https://github.com/Textualize/textual/pull/1346#discussion_r1049675405
2022-12-15 14:26:10 +00:00
Dave Pearson
b9f2382f96 Merge pull request #1360 from davep/5x5-cursor-keys
Make the cursor keys work in 5x5 again
2022-12-15 14:18:56 +00:00
Dave Pearson
d389c9185a s/mk_/make_/g
mk_bgr
2022-12-15 14:14:25 +00:00
Dave Pearson
f08b4eda6d Swap final test to a screen type rather than instance
See https://github.com/Textualize/textual/pull/1346#discussion_r1049678092
2022-12-15 14:12:52 +00:00
Dave Pearson
7397cff52a Revert previous attempt at an experiment 2022-12-15 14:12:00 +00:00
Will McGugan
4dcdea8940 Merge pull request #1361 from Textualize/key-display-fixes
Ensure only printable keys added to footer
2022-12-15 14:07:28 +00:00
Dave Pearson
549fd6b47e Experiment with recording at all levels
More attempts to figure out why I'm getting the async issue with messages
and the pilot.
2022-12-15 14:04:03 +00:00
Dave Pearson
f2db3f345c Revert deliberate test fail
Wasn't that.
2022-12-15 13:53:20 +00:00
Dave Pearson
32d3fc054a Revert to a deliberate priority binding lookup fail
Just for the moment; just to see if I can get this to fail normally in CI.
2022-12-15 13:47:17 +00:00
Dave Pearson
251e756231 Merge pull request #1362 from davep/export-typing-types
Export the types that _typing.py imports and makes available
2022-12-15 13:46:42 +00:00
Dave Pearson
0e89e88943 Hail Mary change to how I reverse the binding chain
This seems highly unlikely, but as an experiment...
2022-12-15 13:31:24 +00:00
Dave Pearson
b196d8cd2e Revert experimental backing out of recent changes
Didn't make a difference. CI on GitHub is still acting differently.
2022-12-15 13:29:27 +00:00
Dave Pearson
76a22d81d4 Eliminating changes
This is the one biggish change between the last working test run in GitHub,
and now. Tests are still running locally fine, an on GitHub, in the last
run, I had one job pass and another fail, both on the same OS, just 3.10
passed and 3.9 failed. The problem still to do with (as far as I can tell)
messages inside Textual and some sort of async issue.

So let's try this.
2022-12-15 13:25:05 +00:00
Dave Pearson
938cd3bd1d Namespace the recording actions
Wondering if this is the issue with why the tests have stopped working in
GitHub; but also not *really* confused as to why they were working in the
first place.
2022-12-15 13:17:16 +00:00
Dave Pearson
2f77bab409 Extra long pause test
This code is running just finally locally in tests, but is failing with:

RuntimeError: Task <Task pending name='Task-279' coro=<MessagePump._process_messages() running at /home/runner/work/textual/textual/src/textual/message_pump.py:314>> got Future <Future pending> attached to a different loop

in GitHub Actions. Pretty sure I saw this before, which made me add the
pause in the first place. Given this seems to just be affecting the last
test, from what I can tell, let's make the pause longer to see if that
helps.

I hate chasing action issues...
2022-12-15 12:57:14 +00:00
Dave Pearson
ad7c2e6c4d Round off the priority clash test and un-xfail it
Also add in a test for when there is no priority anywhere. This is still a
priority level that needs testing, it just isn't a priority.
2022-12-15 12:47:46 +00:00
Dave Pearson
90ecf4e37b If checking for a priority binding, go App down
If not, go lowest level up.
2022-12-15 12:46:48 +00:00
Dave Pearson
618db503b9 Add tests for competing bindings an priority permutations
This is set to xfail at the moment because the tested result is what I think
should be the result, but what happens now isn't that. Need to check with
Will to see what he thinks the correct resolution is here.
2022-12-15 12:16:27 +00:00