feat: turn template banner green when all chatflows are up to date#1073
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
6 tasks
ct3685
added a commit
that referenced
this pull request
May 15, 2026
…g, always-green badge (#1074) ## Summary Combines the green/amber theming (from #1073) with new collapsible + count pill enhancements, all in one PR targeting staging. ## What changed **Collapsible banner** - Clicking anywhere on the header row toggles the details section open/closed - Animated with `maxHeight` transition (same pattern as the filter panel) - Chevron icon rotates 180° when expanded - Smart default: expands automatically when there are outdated chatflows, collapses when all are current — no flash, no useEffect - User preference persisted in `localStorage` under `adminTemplateBannerExpanded`; once manually toggled the stored preference takes over **Count pill** - Always visible in the header (visible even when collapsed) - Shows `N outdated` in amber when any are behind, or `All current` in green when everything is synced **Green/amber theming** - Full `bc` color palette: amber when any chatflows outdated, green when all current — applied to border, background, text, muted labels, category chips, icon buttons, hover states - Action icon buttons use `e.stopPropagation()` so clicking View/Metrics/History doesn't accidentally toggle the banner **DEFAULT TEMPLATE badge always green** - Banner header badge: always green regardless of sync state - Table row chip: always green (was amber) ## Test Plan - [ ] With outdated chatflows: banner is amber, auto-expands on first load, shows "N outdated" pill - [ ] After pushing all current: banner turns green, auto-collapses on first load, shows "All current" pill - [ ] Click header to collapse/expand; reload and confirm preference is remembered - [ ] Click View/Metrics/Version History buttons — confirm banner does NOT toggle - [ ] DEFAULT TEMPLATE chip in table rows is green - [ ] Both light and dark mode
ct3685
added a commit
that referenced
this pull request
May 15, 2026
## 🚀 Release: Staging to Production **Release Date:** 2026-05-15 ### Changes in this release - fix: add missing KeyboardArrowDownIcon import (7d7216e) - feat: collapsible template banner with count pill, green/amber theming, always-green badge (#1074) (99e0c8b) - feat: turn template banner green when all chatflows are up to date (#1073) (7314af5) - fix: reload page after bulk chatflow update and show in-progress state (#1072) (5ca478d) - fix: preserve workspaceId in bulkUpdateChatflows + optional template name sync (#1071) (3e166d6) - chore: update dependencies for improved compatibility and functionality (#1070) (6451d83) - fix: restore Atlassian MCP OAuth by removing stale Passport dependency (#1068) (00bae11) --- *This PR is automatically created/updated when commits are pushed to staging.* *Merging this PR will trigger the release workflow to create a new GitHub release.* --------- Co-authored-by: Cameron Taylor <50385537+ct3685@users.noreply.github.com> Co-authored-by: Cameron Taylor <cameron@lastrev.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Organization Default Template banner now reflects the actual sync state of the org:
How it works
A
hasOutdatedboolean is derived inline fromchatflowsData(already in scope):A
bc(banner colors) palette object is keyed on that boolean, providing green vs amber values for every color token used in the banner: background, border, text, muted text, icon colors, hover states, chips, and the DEFAULT TEMPLATE badge.All hardcoded
isDarkMode ? 'rgba(255, 193, 7, ...)' : '#...'strings inside the banner block are replaced withbc.*references. Nothing outside the banner block is touched.Test Plan