Repository navigation
Commit f90bb87
committed
feat: render interactive parent directory tile for rapid upward navigation
Automatically prepend a dedicated parent directory (`..`) navigation tile at the top of directory listings when navigating deep within a folder structure.
* **Template Integration (`src/pages/fileBrowser/listItem.hbs`):**
* Added template parsing support for the `data-one-dir-up` attribute to identify parent navigation controls.
* **Dynamic Item Prepending (`src/pages/fileBrowser/fileBrowser.js`):**
* Added conditional evaluation during directory rendering: when `navStack.length >= 2`, a non-selectable parent folder item (`..`) is automatically prepended to the top of the rendered list array.
* Flagged the parent directory tile with `data-not-selectable` so it is ignored during batch selection operations.
* **Navigation Action Dispatch:**
* Bound tap and click actions on items bearing `data-one-dir-up` to execute an upward navigation jump directly to `navStack.get(-2)`, streamlining folder hierarchy traversal.
(AI generated commit message)1 parent 5c68300 commit f90bb87
2 files changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
| 906 | + | |
906 | 907 | | |
907 | 908 | | |
908 | 909 | | |
| |||
920 | 921 | | |
921 | 922 | | |
922 | 923 | | |
923 | | - | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
924 | 932 | | |
925 | 933 | | |
926 | 934 | | |
| |||
936 | 944 | | |
937 | 945 | | |
938 | 946 | | |
| 947 | + | |
939 | 948 | | |
940 | 949 | | |
941 | 950 | | |
| |||
950 | 959 | | |
951 | 960 | | |
952 | 961 | | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
953 | 967 | | |
954 | 968 | | |
955 | 969 | | |
| |||
995 | 1009 | | |
996 | 1010 | | |
997 | 1011 | | |
998 | | - | |
| 1012 | + | |
999 | 1013 | | |
1000 | 1014 | | |
1001 | 1015 | | |
| |||
1539 | 1553 | | |
1540 | 1554 | | |
1541 | 1555 | | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
1542 | 1564 | | |
1543 | 1565 | | |
1544 | 1566 | | |
| |||
1555 | 1577 | | |
1556 | 1578 | | |
1557 | 1579 | | |
| 1580 | + | |
1558 | 1581 | | |
1559 | 1582 | | |
1560 | 1583 | | |
| |||
1569 | 1592 | | |
1570 | 1593 | | |
1571 | 1594 | | |
| 1595 | + | |
1572 | 1596 | | |
1573 | 1597 | | |
1574 | 1598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments