File tree Expand file tree Collapse file tree 4 files changed +688
-636
lines changed
Expand file tree Collapse file tree 4 files changed +688
-636
lines changed Original file line number Diff line number Diff line change @@ -3842,3 +3842,39 @@ input::placeholder {
38423842.health-dropdown__option:last-child {
38433843 border-radius: 0 0 6px 6px;
38443844}
3845+
3846+ /* Single-column search results */
3847+ .section__columns--single {
3848+ display: block;
3849+ }
3850+
3851+ .section__columns--single .section__column {
3852+ max-width: 100%;
3853+ }
3854+
3855+ .section__item--selectable {
3856+ cursor: pointer;
3857+ }
3858+
3859+ .section__link--btn {
3860+ display: flex;
3861+ align-items: center;
3862+ gap: 8px;
3863+ width: 100%;
3864+ background: none;
3865+ border: none;
3866+ padding: 0;
3867+ color: inherit;
3868+ font: inherit;
3869+ cursor: pointer;
3870+ text-align: left;
3871+ }
3872+
3873+ .section__link--btn:hover {
3874+ color: var(--accent);
3875+ }
3876+
3877+ .section__link--btn:disabled {
3878+ opacity: 0.6;
3879+ cursor: wait;
3880+ }
Original file line number Diff line number Diff line change @@ -275,6 +275,11 @@ def populate_dashboard_data(initiative)
275275 @stale_projects_14 = dashboard.stale_projects(days: 14)
276276 @stale_projects_7 = dashboard.stale_projects_between(min_days: 7, max_days: 14)
277277
278+ # Global search data
279+ @teams = team_repository.all_active_roots
280+ @initiatives = initiative_repository.all_active_roots
281+ @all_projects = project_repository.all_active_roots
282+
278283 # Trend data
279284 trend_service = InitiativeTrendService.new(
280285 initiative: initiative,
@@ -299,6 +304,9 @@ def set_empty_dashboard_data
299304 @never_updated_projects = []
300305 @stale_projects_14 = []
301306 @stale_projects_7 = []
307+ @teams = []
308+ @initiatives = []
309+ @all_projects = []
302310 @trend_data = []
303311 @trend_direction = :stable
304312 @trend_delta = 0.0
@@ -308,4 +316,16 @@ def set_empty_dashboard_data
308316 @confidence_factors = { biggest_drag: :insufficient_data, details: {} }
309317 end
310318
319+ def team_repository
320+ Rails.application.config.x.team_repository
321+ end
322+
323+ def initiative_repository
324+ Rails.application.config.x.initiative_repository
325+ end
326+
327+ def project_repository
328+ Rails.application.config.x.project_repository
329+ end
330+
311331end
You can’t perform that action at this time.
0 commit comments