Skip to content

Add created at, last used, and total docs to app deployment view#7628

Merged
jdolle merged 1 commit into
mainfrom
app-deployment-details
Feb 6, 2026
Merged

Add created at, last used, and total docs to app deployment view#7628
jdolle merged 1 commit into
mainfrom
app-deployment-details

Conversation

@jdolle

@jdolle jdolle commented Feb 4, 2026

Copy link
Copy Markdown
Collaborator

Background

https://linear.app/the-guild/issue/CONSOLE-1787/add-ui-to-check-age-of-app-deployments-for-approvals

App deployments dont have enough info shown to determine whether they are safe to ignore in the case of schema approvals or not.

Description

This adds the vital info to the app deployment page. I used the schema check page as a reference for how this should look.

Screenshot 2026-02-04 at 12 04 09 PM

@jdolle jdolle self-assigned this Feb 4, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @jdolle, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves the App Deployments page by integrating crucial lifecycle and usage information directly into the UI. Users can now quickly ascertain when an application deployment was created, its last activity, the total number of documents it contains, and its current status. This additional context is vital for making informed decisions, particularly when evaluating deployments for schema approvals, by providing a comprehensive overview without needing to delve into backend systems.

Highlights

  • Enhanced App Deployment View: The App Deployment view now displays crucial information including createdAt, lastUsed, totalDocumentCount, and status for each deployment.
  • GraphQL Query Update: The GraphQL query for TargetAppsVersionQuery has been updated to fetch the newly added app deployment metadata fields.
  • Improved UI Presentation: A new UI block has been introduced to clearly present the app deployment details, including conditional styling for the deployment status.
  • Conditional 'Load More' Button: The 'Load more' button for documents is now conditionally hidden when there are no further pages to load.
  • GraphQL Schema Update: The users query in the federated seed schema has been updated to accept an optional limit argument with a default value.
Changelog
  • .changeset/dry-bats-pay.md
    • Added a new changeset entry for a patch release, detailing the addition of created at, last used, and total docs to the app deployment view.
  • packages/web/app/src/pages/target-app-version.tsx
    • Imported TimeAgo, AppDeploymentStatus, and cn utilities to support new UI elements and logic.
    • Modified the TargetAppsVersionQuery to retrieve createdAt, lastUsed, totalDocumentCount, and status fields for app deployments.
    • Refactored the access to data.data?.target?.appDeployment into a local constant for improved readability.
    • Introduced a new UI block above the documents table to display the app deployment's Status, Total Documents, Created date, and Last Used date, utilizing the TimeAgo component for date formatting.
    • Applied conditional styling to the Status display based on AppDeploymentStatus values (e.g., Retired in red, Pending in neutral).
    • Added a conditional hidden class to the 'Load more' button for documents, ensuring it only appears when hasNextPage is true.
  • scripts/seed-schemas/federated/users.graphql
    • Updated the users query definition to include an optional limit argument with a default value of 30, allowing for controlled fetching of user data.
Activity
  • No specific activity (comments, reviews, etc.) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
hive 9.3.1-alpha-20260204201136-ade903bf07cdfff25e82a19e89c4366541acf771 npm ↗︎ unpkg ↗︎

@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

📚 Storybook Deployment

The latest changes are available as preview in: https://pr-7628.hive-storybook.pages.dev

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

The pull request successfully adds createdAt, lastUsed, and totalDocumentCount to the app deployment view, providing valuable additional information. The changes involve updating the GraphQL query, refactoring the access to the appDeployment object for better readability, and integrating these new data points into the UI. The overall implementation is clear and functional. My feedback focuses on minor inconsistencies and redundant optional chaining in the newly added UI elements, which do not conflict with any existing rules.

<div className="min-w-0">
<div className="text-xs">Total Documents</div>
<div className={cn('text-neutral-12 truncate text-center text-sm font-semibold')}>
{appDeployment?.totalDocumentCount ?? '...'}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The totalDocumentCount field is defined as non-nullable (Int!) in the GraphQL schema. Therefore, the optional chaining (?) on appDeployment?.totalDocumentCount is redundant, as appDeployment is already confirmed to be present at this point in the code. Additionally, the fallback ?? '...' is unnecessary if the field is guaranteed to have a value.

Suggested change
{appDeployment?.totalDocumentCount ?? '...'}
{appDeployment.totalDocumentCount}

</div>
<div className="min-w-0 text-xs">
Created{' '}
{appDeployment?.createdAt ? <TimeAgo date={appDeployment.createdAt} /> : '...'}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The createdAt field is defined as non-nullable (DateTime!) in the GraphQL schema. Similar to totalDocumentCount, the optional chaining (?) on appDeployment?.createdAt is redundant. Since createdAt is guaranteed to be present, the fallback ?? '...' is also unnecessary. It's also inconsistent with the lastUsed field's fallback of 'No Usage Data'.

Suggested change
{appDeployment?.createdAt ? <TimeAgo date={appDeployment.createdAt} /> : '...'}
Created <TimeAgo date={appDeployment.createdAt} />

@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tag: ade903bf07cdfff25e82a19e89c4366541acf771

@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

💻 Website Preview

The latest changes are available as preview in: https://pr-7628.hive-landing-page.pages.dev

@n1ru4l n1ru4l requested a review from adambenhassen February 5, 2026 09:57
@jdolle jdolle merged commit c15775a into main Feb 6, 2026
27 checks passed
@jdolle jdolle deleted the app-deployment-details branch February 6, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants