Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
038af76
Turned off diagnostic logging - selg.log statements - across all file…
pcoldico Oct 30, 2026
c023078
Tidying up UI elements to make them more visible
pcoldico Oct 30, 2026
1073c19
Updates from PDR team call 10/30/26, ability tpo add a new community,…
pcoldico Oct 30, 2026
6ee6bba
Changes to order of additional functions on main screen
pcoldico Oct 30, 2026
61a2957
Updates to my_egeria to corrent some errors in the edit profile optio…
pcoldico Oct 31, 2026
ac1a263
Updates to fix a navigation issue in the Tech Types functionality
pcoldico Oct 31, 2026
f9adf21
Merge branch 'main' into main
pcoldico Oct 31, 2026
a778e80
Merge upstream odpi/egeria-python main (6.2.19)
pcoldico Nov 2, 2026
20f90f2
Merge upstream odpi/egeria-python main (6.2.21)
pcoldico Nov 4, 2026
8c6b6e6
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 4, 2026
27af2a4
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 9, 2026
5daa4ea
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 9, 2026
66b30e0
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 10, 2026
d02f162
Promote My Profile to production package and update docs
pcoldico Nov 10, 2026
a247e82
Add automated terminal recording and neural voiceover pipeline for My…
pcoldico Nov 10, 2026
6bf3cef
Include all recording media artifacts and output files
pcoldico Nov 10, 2026
1de1c7c
Merge odpi/egeria-python main into #584
dwolfson Nov 11, 2026
57af438
chore(my_egeria): keep generated recording media out of the repo
dwolfson Nov 11, 2026
0478c29
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 12, 2026
cb1c241
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 13, 2026
8f5201b
Updates to Community Processing and some files relating to video prod…
pcoldico Nov 17, 2026
a9b1de2
Merge remote-tracking branch 'upstream/main'
pcoldico Nov 17, 2026
71b8db7
Merge remote-tracking branch 'origin/main'
pcoldico Nov 17, 2026
2f9d368
docs(my_egeria): bring My Profile docs up to date with communities an…
pcoldico Nov 17, 2026
792f1c2
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 17, 2026
17280d4
Merge branch 'main' of https://github.com/odpi/egeria-python
pcoldico Nov 17, 2026
047983c
feat(my_profile): add Work with Projects and Find Project management …
pcoldico Nov 18, 2026
e24fbb2
Merge branch 'main' into main
dwolfson Nov 18, 2026
4fc465d
fix(my_profile): make mouse clicks land on the right row and footer keys
pcoldico Nov 19, 2026
e26e1ec
Merge remote-tracking branch 'upstream/main'
pcoldico Nov 19, 2026
17c6b73
Merge branch 'main' into main
pcoldico Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 25 additions & 14 deletions my_egeria/my_egeria/CommunitiesScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
This file provides the Work with Communities screen for My Profile.

"""
from textual import on
from textual import events, on
from textual.app import ComposeResult
from textual.containers import ScrollableContainer, Horizontal
from textual.containers import ScrollableContainer, Horizontal, Vertical
from textual.screen import ModalScreen
from textual.widgets import DataTable, Header, Static, Footer, Input, Button, Select, TextArea

Expand Down Expand Up @@ -49,15 +49,16 @@ def compose(self) -> ComposeResult:
yield Header(show_clock=True)
yield Static("Create Community", classes="span-3", id="create_community_title")
yield ScrollableContainer(
Static("Name *"),
Input(placeholder="Name of the community", id="community_name_input"),
Static("Description *"),
Input(placeholder="What the community is about", id="community_description_input"),
Horizontal(
Input(placeholder="Name of the community *", id="community_name_input"),
Input(placeholder="What the community is about *", id="community_description_input"),
),
Horizontal(
Select([(t, t) for t in CREATOR_ASSIGNMENT_TYPES] + [("Don't join", NOT_JOINING)],
value=CREATOR_ASSIGNMENT_TYPES[0], allow_blank=False, id="creator_assignment_type"),
),
Static("Mission"),
TextArea(id="community_mission_text"),
Static("Your part in it"),
Select([(t, t) for t in CREATOR_ASSIGNMENT_TYPES] + [("Don't join", NOT_JOINING)],
value=CREATOR_ASSIGNMENT_TYPES[0], allow_blank=False, id="creator_assignment_type"),
Horizontal(
Button("Create", id="submit_create_community_btn", variant="primary"),
Button("Cancel", id="cancel_create_community_btn", variant="warning"),
Expand Down Expand Up @@ -149,6 +150,7 @@ class CommunitiesScreen(ModalScreen):
("escape", "quit", "Back"),
("q", "quit", "Main Menu"),
("ctrl+o", "open_community", "Open Community"),
("enter", "open_community", "Open Community"),
("ctrl+n", "join_community", "Join Community"),
("ctrl+t", "create_community", "Create Community"),
("ctrl+d", "leave_community", "Leave Community"),
Expand All @@ -164,6 +166,7 @@ def __init__(self, my_communities, *args, focus_search: bool = False, **kwargs):
self.focus_search = focus_search
# The last search, repeated after joining or leaving so the found list stays current
self.search_string = "*"
self.last_active_table: str = "communities_found_table" if focus_search else "my_communities_table"

def compose(self) -> ComposeResult:
yield Header(show_clock=True)
Expand All @@ -185,11 +188,14 @@ def compose(self) -> ComposeResult:
Static("Find other communities: enter a search term ('*' for all) and press return"),
Input(value=self.search_string, placeholder="Search term, or * for all", id="community_search_input"),
DataTable(id="communities_found_table", zebra_stripes=True, cursor_type="row"),
Horizontal(
Vertical(
Select([(t, t) for t in JOIN_ASSIGNMENT_TYPES], value=JOIN_ASSIGNMENT_TYPES[0],
allow_blank=False, id="join_assignment_type"),
Button("Join Community", id="join_community_btn", variant="primary"),
Button("Open Community", id="open_found_community_btn", variant="primary"),
Horizontal(
Button("Join Community", id="join_community_btn", variant="primary"),
Button("Open Community", id="open_found_community_btn", variant="primary"),
id="found_communities_buttons_row",
),
id="found_communities_buttons",
),
id="find_communities_container",
Expand Down Expand Up @@ -268,10 +274,15 @@ def on_close(result) -> None:

self.app.push_screen(community_screen, callback=on_close)

def on_descendant_focus(self, event: events.DescendantFocus) -> None:
"""Track which DataTable was last focused."""
if isinstance(event.widget, DataTable):
self.last_active_table = event.widget.id or self.last_active_table

def action_open_community(self) -> None:
""" Open the highlighted community in whichever list has focus """
"""Open the highlighted community in whichever list was last active or focused."""
found_table = self.query_one("#communities_found_table", DataTable)
if self.focused is found_table:
if self.focused is found_table or (self.focused is None and self.last_active_table == "communities_found_table"):
self._open_found()
else:
self._open_mine()
Expand Down
27 changes: 18 additions & 9 deletions my_egeria/my_egeria/CommunityScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
a like, a star rating) on a blog post or resource.

"""
from textual import on
from textual import events, on
from textual.app import ComposeResult
from textual.containers import ScrollableContainer, Horizontal
from textual.containers import ScrollableContainer, Horizontal, Vertical
from textual.screen import ModalScreen
from textual.widgets import DataTable, Header, Static, Footer, Input, Button, Select, TextArea

Expand Down Expand Up @@ -383,6 +383,7 @@ class CommunityScreen(ModalScreen):
("q", "quit", "Main Menu"),
("ctrl+n", "add_item", "New Post / Comment"),
("ctrl+o", "feedback", "Feedback on Post / Resource"),
("enter", "feedback", "Feedback on Post / Resource"),
("ctrl+w", "join", "Join Community"),
]

Expand All @@ -397,6 +398,7 @@ def __init__(self, community_guid: str, community_name: str, *args, **kwargs):
# Whether the user is a member (directly or through a role); None until the members are read
self.is_member: bool | None = None
self.joined = False
self.last_active_table: str = "community_posts_table"

def compose(self) -> ComposeResult:
yield Header(show_clock=True)
Expand All @@ -416,7 +418,7 @@ def compose(self) -> ComposeResult:
Static("[b]Members[/b] [dim](people linked to the community, directly or through a role they hold)[/dim]"),
DataTable(id="community_members_table", zebra_stripes=True, cursor_type="row"),
Static("", id="community_membership_text"),
Horizontal(
Vertical(
Select([(t, t) for t in JOIN_ASSIGNMENT_TYPES], value=JOIN_ASSIGNMENT_TYPES[0],
allow_blank=False, id="community_join_assignment_type"),
Button("Join Community", id="community_join_btn", variant="primary"),
Expand Down Expand Up @@ -457,15 +459,15 @@ def _load_members(self) -> None:
members = self.app.get_community_members(self.community_guid)
if members is None:
# Membership is unknown, so neither offer joining nor claim the user is a member
self.query_one("#community_join_controls", Horizontal).display = False
self.query_one("#community_join_controls", Vertical).display = False
return
table = self.query_one("#community_members_table", DataTable)
table.clear()
for row in members:
table.add_row(*row)
user_guid = getattr(self.app, "user_GUID", "")
self.is_member = bool(user_guid) and any(row[4] == user_guid for row in members)
self.query_one("#community_join_controls", Horizontal).display = not self.is_member
self.query_one("#community_join_controls", Vertical).display = not self.is_member
self.query_one("#community_membership_text", Static).update(
"[dim]You are a member[/dim]" if self.is_member
else "[dim]You are not a member - join as a contributor or an observer[/dim]")
Expand Down Expand Up @@ -513,6 +515,11 @@ def _show_post_text(self) -> None:
text = f"[dim]{none_words('posts', complete=False)}[/dim]"
self.query_one("#community_post_text", Static).update(text)

def on_descendant_focus(self, event: events.DescendantFocus) -> None:
"""Track which DataTable was last focused."""
if isinstance(event.widget, DataTable):
self.last_active_table = event.widget.id or self.last_active_table

@on(DataTable.RowHighlighted, "#community_posts_table")
def handle_post_highlighted(self, event: DataTable.RowHighlighted) -> None:
self._show_post_text()
Expand All @@ -526,8 +533,9 @@ def action_quit(self) -> None:
self.dismiss(210)

def action_add_item(self) -> None:
""" Add a comment if the comments list has focus, otherwise a blog post """
if self.focused is self.query_one("#community_comments_table", DataTable):
""" Add a comment if the comments list was last active, otherwise a blog post """
comments_table = self.query_one("#community_comments_table", DataTable)
if self.focused is comments_table or (self.focused is None and self.last_active_table == "community_comments_table"):
self.action_add_comment()
else:
self.action_new_post()
Expand Down Expand Up @@ -575,8 +583,9 @@ def _open_resource_feedback(self) -> None:
self._open_feedback("#community_resources_table", 4, "Resource")

def action_feedback(self) -> None:
""" Feedback on the highlighted resource if the resources list has focus, otherwise on the post """
if self.focused is self.query_one("#community_resources_table", DataTable):
""" Feedback on the highlighted resource if resources list was last active, otherwise on the post """
resources_table = self.query_one("#community_resources_table", DataTable)
if self.focused is resources_table or (self.focused is None and self.last_active_table == "community_resources_table"):
self._open_resource_feedback()
else:
self._open_post_feedback()
Expand Down
43 changes: 29 additions & 14 deletions my_egeria/my_egeria/MainScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from typing import Any
from textual import events, on
from textual.app import ComposeResult
from textual.containers import ScrollableContainer
from textual.containers import Vertical, ScrollableContainer
from textual.coordinate import Coordinate
from textual.screen import Screen
from textual.widgets import DataTable, OptionList, Header, Static, Footer
from textual.widgets._option_list import Option
Expand All @@ -22,7 +23,7 @@ class MainScreen(Screen):

BINDINGS = [
("q", "app.quit", "Quit"),
("ctrl+t", "edit_table", "Edit Selected Table"),
("ctrl+t", "edit_table", "Edit Table"),
("ctrl+o", "show_comments", "Show Comments"),
("ctrl+n", "add_comment", "Add Comment"),
("ctrl+k", "bookmark_row", "Bookmark Row"),
Expand Down Expand Up @@ -52,17 +53,17 @@ def compose(self) -> ComposeResult:
# place widgets into grid on screen, note sequence determines position!
yield Header(show_clock=True, id="main_header")

yield ScrollableContainer(
yield Vertical(
Static("User Associations [dim](Enter on a community: open it)[/dim]"),
DataTable(id="associations_table"),
id="main_associations_container"
)
yield ScrollableContainer(
yield Vertical(
Static(f"My Collections"),
DataTable(id=("my_collections_table")),
id="my_collections_container"
)
yield ScrollableContainer(
)
yield Vertical(
Static(f"Other Functions"),
Static(f"[b]Select a function[/b]"),
OptionList(
Expand All @@ -84,17 +85,17 @@ def compose(self) -> ComposeResult:
),
id="other_function_container"
)
yield ScrollableContainer(
yield Vertical(
Static("Roles [dim](Enter on a TeamLeader/TeamMember role: show team)[/dim]"),
DataTable(id="roles_table"),
id="main_roles_container"
)
yield ScrollableContainer(
yield Vertical(
Static("Teams"),
DataTable(id="teams_table"),
id="main_teams_container"
)
yield ScrollableContainer(
yield Vertical(
Static("Blogs"),
DataTable(id="blogs_table"),
Static("Journal"),
Expand All @@ -104,12 +105,12 @@ def compose(self) -> ComposeResult:
id="main_activities_container"
)

yield ScrollableContainer(
yield Vertical(
Static("User Identity"),
DataTable(id="user_identity_table"),
id="main_identities_container"
)
yield ScrollableContainer(
yield Vertical(
Static("Projects [dim](Enter on a project: open it)[/dim]"),
DataTable(id="projects_table"),
id="main_projects_container"
Expand Down Expand Up @@ -181,11 +182,25 @@ def get_current_table_and_row(self) -> tuple[str | None, Any]:
row_key = None
if focused_table.row_count > 0 and 0 <= focused_table.cursor_row < focused_table.row_count:
try:
row_key = focused_table.coordinate_to_cell_key(focused_table.cursor_coordinate).row_key
row_key = focused_table.coordinate_to_cell_key(Coordinate(focused_table.cursor_row, 0)).row_key
except Exception:
row_key = None
try:
row_key = list(focused_table.rows.keys())[focused_table.cursor_row]
except Exception:
row_key = None
if row_key is None and self.selected_table == table_id:
row_key = self.selected_row
return table_id, row_key
return self.selected_table, self.selected_row
table_id = self.selected_table or "associations_table"
row_key = self.selected_row
if table_id and row_key is None:
try:
table = self.query_one(f"#{table_id}", DataTable)
if table.row_count > 0 and 0 <= table.cursor_row < table.row_count:
row_key = table.coordinate_to_cell_key(Coordinate(table.cursor_row, 0)).row_key
except Exception:
pass
return table_id, row_key

def action_edit_table(self):
""" Edit the selected table """
Expand Down
25 changes: 16 additions & 9 deletions my_egeria/my_egeria/ProjectScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
resources and comments) for My Profile.

"""
from textual import on
from textual import events, on
from textual.app import ComposeResult
from textual.containers import ScrollableContainer, Horizontal
from textual.containers import ScrollableContainer, Horizontal, Vertical
from textual.screen import ModalScreen
from textual.widgets import DataTable, Header, Static, Footer, Input, Button, Select, TextArea

Expand Down Expand Up @@ -155,6 +155,7 @@ class ProjectScreen(ModalScreen):
("q", "quit", "Main Menu"),
("ctrl+n", "add_item", "New Post / Comment"),
("ctrl+o", "feedback", "Feedback on Post / Resource"),
("enter", "feedback", "Feedback on Post / Resource"),
("ctrl+w", "join", "Join Project"),
]

Expand All @@ -169,6 +170,7 @@ def __init__(self, project_guid: str, project_name: str, *args, **kwargs):
# Whether the user is a member (directly or through a role); None until the members are read
self.is_member: bool | None = None
self.joined = False
self.last_active_table: str = "project_posts_table"

def compose(self) -> ComposeResult:
yield Header(show_clock=True)
Expand All @@ -188,7 +190,7 @@ def compose(self) -> ComposeResult:
Static("[b]Members / Team[/b] [dim](people linked to the project, directly or through a role they hold)[/dim]"),
DataTable(id="project_members_table", zebra_stripes=True, cursor_type="row"),
Static("", id="project_membership_text"),
Horizontal(
Vertical(
Select([(t, t) for t in JOIN_ASSIGNMENT_TYPES], value=JOIN_ASSIGNMENT_TYPES[0],
allow_blank=False, id="project_join_assignment_type"),
Button("Join Project", id="project_join_btn", variant="primary"),
Expand Down Expand Up @@ -228,7 +230,7 @@ def on_mount(self) -> None:
def _load_members(self) -> None:
members = self.app.get_project_members(self.project_guid)
if members is None:
self.query_one("#project_join_controls", Horizontal).display = False
self.query_one("#project_join_controls", Vertical).display = False
return
table = self.query_one("#project_members_table", DataTable)
table.clear()
Expand All @@ -240,7 +242,7 @@ def _load_members(self) -> None:
through = f" (through {row[2]})" if row[2] != "Direct" else ""
self.query_one("#project_membership_text", Static).update(
f"You are a member{through} with assignment type: {row[1]}")
self.query_one("#project_join_controls", Horizontal).display = not self.is_member
self.query_one("#project_join_controls", Vertical).display = not self.is_member
if not self.is_member:
self.query_one("#project_membership_text", Static).update("You are not a member of this project")

Expand Down Expand Up @@ -283,6 +285,11 @@ def _load_comments(self) -> None:

# --- selection and display ------------------------------------------------

def on_descendant_focus(self, event: events.DescendantFocus) -> None:
"""Track which DataTable was last focused."""
if isinstance(event.widget, DataTable):
self.last_active_table = event.widget.id or self.last_active_table

@on(DataTable.RowHighlighted, "#project_posts_table")
def handle_posts_table_highlighted(self, event: DataTable.RowHighlighted) -> None:
"""Display the highlighted blog post's text."""
Expand Down Expand Up @@ -375,17 +382,17 @@ def handle_add_comment_button(self, event: Button.Pressed) -> None:
# --- general actions (bindings) -------------------------------------------

def action_feedback(self) -> None:
"""ctrl+o gives feedback on whichever of a post or a resource currently has focus."""
"""ctrl+o or Enter gives feedback on whichever of a post or a resource was last active."""
resources_table = self.query_one("#project_resources_table", DataTable)
if self.focused is resources_table:
if self.focused is resources_table or self.last_active_table == "project_resources_table":
self.action_resource_feedback()
else:
self.action_post_feedback()

def action_add_item(self) -> None:
"""ctrl+n adds a comment when the comments list has focus, a blog post otherwise."""
"""ctrl+n adds a comment when the comments list was last active, a blog post otherwise."""
comments_table = self.query_one("#project_comments_table", DataTable)
if self.focused is comments_table:
if self.focused is comments_table or self.last_active_table == "project_comments_table":
self.action_add_comment()
else:
self.action_new_blog_post()
Expand Down
Loading