Feature/fsg gamma team ui fix #3
@@ -143,6 +143,21 @@ def main() -> int:
|
|||||||
fails.append(f"picker khong hien ten {name!r}")
|
fails.append(f"picker khong hien ten {name!r}")
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# 9. the title row sits above the sub-tabs, so what is on it must follow
|
||||||
|
# the title — + Project mới turned up in the corner of every other one.
|
||||||
|
for idx, name in ((w._cowork_tab_idx, "Cowork"), (w._co4e_tab_idx, "Co4E"),
|
||||||
|
(w._folder_tab_idx, "Thu muc"),
|
||||||
|
(w._graphrag_tab_idx, "GraphRAG")):
|
||||||
|
if idx < 0:
|
||||||
|
continue
|
||||||
|
win._goto(win._ROW_WORKSPACE, idx)
|
||||||
|
app.processEvents()
|
||||||
|
if w._new_btn.isVisible():
|
||||||
|
fails.append(f"nut '+ Project moi' hien ca o man {name}")
|
||||||
|
win._goto(win._ROW_WORKSPACE, w._project_tab_idx)
|
||||||
|
app.processEvents()
|
||||||
|
print(f"nut tao chi hien o Project: {not any('Project moi' in f for f in fails)}")
|
||||||
|
|
||||||
print()
|
print()
|
||||||
for f in fails:
|
for f in fails:
|
||||||
print("FAIL " + f)
|
print("FAIL " + f)
|
||||||
|
|||||||
@@ -410,6 +410,10 @@ class WorkspaceTab(QWidget):
|
|||||||
# space taken from Co4E's canvas and Folder's tree on every laptop
|
# space taken from Co4E's canvas and Folder's tree on every laptop
|
||||||
# screen. Shown where they apply; the text itself is unchanged.
|
# screen. Shown where they apply; the text itself is unchanged.
|
||||||
self._header.setVisible(on_project)
|
self._header.setVisible(on_project)
|
||||||
|
# The title row sits above the sub-tabs, so everything on it has to
|
||||||
|
# follow the same rule the title does — moving + Project mới up here put
|
||||||
|
# it in the corner of Cowork, Co4E, Folder and GraphRAG as well.
|
||||||
|
self._new_btn.setVisible(on_project)
|
||||||
# ...and the explanation only while there is nothing to explain against:
|
# ...and the explanation only while there is nothing to explain against:
|
||||||
# the drawing heads a populated screen with the title alone.
|
# the drawing heads a populated screen with the title alone.
|
||||||
self._hint.setVisible(on_project and self.project_list.count() == 0)
|
self._hint.setVisible(on_project and self.project_list.count() == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user