Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Navie welcome message UI #2157

Merged
merged 7 commits into from
Dec 18, 2024
Merged

Conversation

kgilpin
Copy link
Contributor

@kgilpin kgilpin commented Dec 12, 2024

Introduces a new version of the welcome message UI that provides a more structured and context-aware experience. The key changes include:

  • Splitting the welcome message into static and dynamic parts to improve initial load time
  • Adding support for displaying the current activity name and related suggestions
  • Introducing new RPC methods for metadata (v2) and welcome message content
  • Preserving backward compatibility with v1 welcome message format

The new UI shows a standard greeting header followed by either:

  • A custom welcome message in markdown format, or
  • The current activity name with relevant suggestions presented as a bulleted list

Resolves #2155
Resolves #2148

@kgilpin kgilpin requested a review from dustinbyrne December 12, 2024 14:53
@kgilpin kgilpin self-assigned this Dec 12, 2024
@kgilpin kgilpin added the enhancement New feature or request label Dec 12, 2024
@dustinbyrne dustinbyrne force-pushed the feat/navie-welcome-message-ui branch 3 times, most recently from 67b4ef7 to dd4a939 Compare December 17, 2024 17:43
kgilpin and others added 4 commits December 17, 2024 13:15
Defines new v2 RPC endpoints for metadata and welcome messages. v2.navie.metadata responds immediately
so that the UI is not delayed.

v2.navie.welcome detects the activity and builds suggested questions. It returns this data in a
structured way so that the suggestions can be displayed as links or buttons in th eUI.
Adds a new version of the welcome message component that displays contextual activity information and structured suggestions.
Separates static metadata from dynamic welcome content to improve load time.
@dustinbyrne dustinbyrne force-pushed the feat/navie-welcome-message-ui branch from dd4a939 to ef08288 Compare December 17, 2024 18:16
@dustinbyrne dustinbyrne marked this pull request as ready for review December 17, 2024 18:51
@@ -14,18 +14,23 @@
</ul>
</div>
</div>
<div class="welcome-message-dynamic-placeholder" v-else>Analyzing workspace...</div>
<v-skeleton-loader class="welcome-message__loading" v-else />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed you dropped the cue "Analyzing workspace..."

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically this style of loading element does not include any text. Generally it only takes a few seconds to complete and reveal it's purpose.


Questions should try not to reference "changes", instead reference the specific concepts or symbols from the diff.
Suggestions should try not to reference "changes", instead reference the specific concepts or symbols from the diff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a next step, it would be interesting to see if Navie is able to determine when the user might want to create or run test cases to reproduce the issue.

Copy link
Contributor Author

@kgilpin kgilpin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI I can't Approve this because I'm an author. LGTM, I left a few comments you may want to fixup.

@dustinbyrne dustinbyrne force-pushed the feat/navie-welcome-message-ui branch from ef08288 to 4a71c22 Compare December 18, 2024 18:28
@dustinbyrne dustinbyrne merged commit 5d25ea3 into main Dec 18, 2024
23 checks passed
@dustinbyrne dustinbyrne deleted the feat/navie-welcome-message-ui branch December 18, 2024 18:57
@appland-release
Copy link
Contributor

🎉 This PR is included in version @appland/navie-v1.38.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
3 participants