Skip to content

Feat recently viewed#1986

Merged
Mbeaulne merged 2 commits intomasterfrom
03-23-feat_recently_viewed
Apr 10, 2026
Merged

Feat recently viewed#1986
Mbeaulne merged 2 commits intomasterfrom
03-23-feat_recently_viewed

Conversation

@Mbeaulne
Copy link
Copy Markdown
Collaborator

@Mbeaulne Mbeaulne commented Mar 23, 2026

Description

Added a "Recently Viewed" section to the home dashboard that tracks and displays the last 5 pipelines and runs a user has accessed. The section shows clickable chips with appropriate icons (GitBranch for pipelines, Play for runs) and color coding. Items are stored in localStorage and automatically tracked when users visit the Editor or PipelineRun pages.

Related Issue and Pull requests

Type of Change

  • Bug fix
  • New feature
  • Improvement
  • Cleanup/Refactor
  • Breaking change
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  1. Navigate to the home dashboard and verify the "Recently Viewed" section appears with empty state message
  2. Open a pipeline in the editor and return to home - verify it appears in the recently viewed section
  3. Open a pipeline run and return to home - verify it appears in the recently viewed section
  4. Click on recently viewed items to ensure navigation works correctly
  5. Test that items are limited to 5 maximum and newer items replace older ones
  6. Verify tooltips show appropriate information for each item type

Additional Comments

The recently viewed functionality uses localStorage for persistence and useSyncExternalStore for reactive updates. Component support is planned for future implementation but currently defaults to home page navigation.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 23, 2026

🎩 To tophat this PR:

You can add the following URL parameter to your browser to tophat this PR:

`?tophat_location=03-23-feat_recently_viewed/97bd22a`

@Mbeaulne
Copy link
Copy Markdown
Collaborator Author

Reviewer note: Two things to be aware of:

  1. RecentlyViewedSection.tsx (chip layout) is deleted in feat dashboard layout #1996 along with the rest of the chip-based UI. The final recently viewed view is DashboardRecentlyViewedView.tsx built in Adds recently viewed #1999/Updates revently viewed #2000.
  2. useRecentlyViewed.ts is stable and survives the stack — however MAX_ITEMS is bumped from 510 in Updates revently viewed #2000 and again to 100 in Add dashboard home view with favorites, recently viewed, and my runs sections #2011 as usage expanded.
  3. The recording calls in Editor.tsx and PipelineRun.tsx are stable and unchanged for the rest of the stack.

@Mbeaulne Mbeaulne marked this pull request as ready for review March 30, 2026 18:23
@Mbeaulne Mbeaulne requested a review from a team as a code owner March 30, 2026 18:23
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_favorites_filter branch from dabe28b to f043754 Compare April 1, 2026 17:49
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_favorites_filter branch from 35d0674 to 90c8d7b Compare April 1, 2026 18:42
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_recently_viewed branch from 2b26653 to 3d5acb4 Compare April 1, 2026 18:42
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_favorites_filter branch from 90c8d7b to f9e6d43 Compare April 2, 2026 16:35
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_recently_viewed branch 4 times, most recently from ae75a89 to 88c53ed Compare April 6, 2026 13:12
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_favorites_filter branch from 1bad5de to 8025d09 Compare April 8, 2026 17:25
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_recently_viewed branch from 88c53ed to 6f4a6bb Compare April 8, 2026 17:25
This was referenced Apr 8, 2026
Comment thread src/hooks/useRecentlyViewed.ts
Comment thread src/hooks/useRecentlyViewed.ts Outdated
Comment thread src/routes/PipelineRun/PipelineRun.tsx Outdated
Comment thread src/routes/PipelineRun/PipelineRun.tsx Outdated
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_favorites_filter branch from 8025d09 to 989b473 Compare April 9, 2026 15:54
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_recently_viewed branch 2 times, most recently from f40c7e1 to ef90c02 Compare April 9, 2026 16:28
@Mbeaulne Mbeaulne requested a review from camielvs April 9, 2026 16:28
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_recently_viewed branch from ef90c02 to 5b155bd Compare April 10, 2026 19:09
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_favorites_filter branch from 989b473 to 42b8056 Compare April 10, 2026 19:09
Copy link
Copy Markdown
Collaborator Author

Mbeaulne commented Apr 10, 2026

Merge activity

  • Apr 10, 8:38 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 10, 8:56 PM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 10, 8:58 PM UTC: @Mbeaulne merged this pull request with Graphite.

@Mbeaulne Mbeaulne changed the base branch from 03-23-feat_favorites_filter to graphite-base/1986 April 10, 2026 20:53
@Mbeaulne Mbeaulne changed the base branch from graphite-base/1986 to master April 10, 2026 20:55
Mbeaulne and others added 2 commits April 10, 2026 20:56
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Mbeaulne Mbeaulne force-pushed the 03-23-feat_recently_viewed branch from 5b155bd to 97bd22a Compare April 10, 2026 20:56
@Mbeaulne Mbeaulne merged commit 18534a7 into master Apr 10, 2026
17 checks passed
@Mbeaulne Mbeaulne deleted the 03-23-feat_recently_viewed branch April 10, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants