You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A Pulse Walkthrough on a Pending Timesheet Change - #676
Stage 4 of landing #615 in pieces, stacked on #659: a Pulse walkthrough on a timesheet change waiting for approval. Wherever a pending change shows, Pulse sits beside Pending approval. Record on your phone, and the server sets the video as the request's walkthrough the moment it uploads; the approver sees it in Timesheet Approvals, and the request then says Walkthrough added.
Same direct-delivery model as #654, #658 and #659: the link carries the destination, the server delivers from onUploadComplete, the page only watches. The walkthrough is added after the change is sent, not in the form, because the request is the destination and doesn't exist until it's submitted.
Screenshots
Taken on this branch against a local test backend. The upload went through the reserved timesheet-request link as the Pulse app sends it; the pending changes were created over the API.
A pending change: Pulse beside Pending approval
Press Pulse on a computer: the QR code, and where the video goes
Landed: the request says Walkthrough added
The approver opens it and sees the walkthrough next to the explanation
Admin timesheet: an admin's edit to a member's shift is listed under Sent to another admin for approval, with Pulse, and stays there after a reload.
Work page: a pending ticket-timer change, Pulse beside the menu (the row above already has its walkthrough)
Work page: both landed, Walkthrough added
Changes
timesheet-request destination (pulse-destinations.js, on the check / delivered / deliver table):
check: the request exists, is the uploader's own, is still pending, and has no walkthrough yet. Refusals are forbidden (someone else's) or not-found (gone, decided, or already has one), so a video that lands too late is kept in storage with the reason, not replayed forever.
delivered: the request already carries this video's URL.
deliver: one guarded update (status: 'pending', videoUrl empty), so a walkthrough never replaces another and never lands on a decided change. If the request moved on in between, it throws; the replay's check then keeps the video.
artifactIsEvidenceUnderReview already protects the video from deletion while the request is under review.
Personal timesheet: beside Pending approval in the session row (TimesheetRow's new pendingAction slot, on the session's first row only, so a session split by breaks or midnight gets one button), and in Awaiting approval next to Withdraw, in a ButtonGroup.
Admin timesheet: "Sent to another admin for approval" lists the admin's own pending changes for the sessions on screen, loaded from the server (listMine), so the walkthrough can still be added after a reload.
Timesheet Approvals: delivery flags the approvers' prompts for the request, so an open approvals view reloads the queue and the open request when the walkthrough lands.
Types and copy:PulseDestination gains timesheet-request (src/lib/api.ts, e2e helper); landed label "Walkthrough added — your approver will see it" and its upload hint in pulseStatus.ts. Backend notes stay hidden for this kind (only the clock kinds show follow-up notes).
Release note: a short section in 1.0.6.md.
Tests
New tests/e2e/timesheet/walkthrough.spec.ts:
member1 sends an edit on the shared team for approval, sees Pulse beside Pending approval, uploads through a reserved timesheet-request link, the request's videoUrl becomes the video, and after a reload the row says Walkthrough added.
A pending ticket-timer change shows Pulse on the Work page.
No link is handed out for someone else's request (forbidden) or for one no longer pending (not-found).
Unit: pulseStatus.test.ts covers that this kind's backend note is never shown.
Run: typecheck, lint, format and the pulse-upload, clock and teams unit tests pass; against a local test stack (Mongo rs0 on :27017, Meteor on :3101), timesheet/walkthrough (3) and timesheet/timesheet: all passed.
Not in this PR
Making the form's video optional for new entries, and removing its file picker: that's the raw-upload removal PR.
Refresh pending requests after approval or rejection notifications
src/features/teams/AdminTimesheetPanel.tsx:158
This loads the requester's pending list only on mount/team changes and local actions. If another admin approves or rejects the request while this panel stays mounted, myPending remains stale and continues showing “Walkthrough added” or an unusable Pulse button even though ChangeRequestWalkthrough should render nothing for decided requests. Subscribe to the same timesheet-change-approved / timesheet-change-rejected notifications used by PersonalTimesheetPanel and reload this list.
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Previously missed item from the 0276a8f review, fixed in 8ebc655: the admin panel subscribes to the same timesheet-change-approved / timesheet-change-rejected notifications as PersonalTimesheetPanel and reloads its pending list, so a change another admin decides drops off instead of showing a stale Pulse button or badge. Typecheck, lint, format, unit tests and timesheet/walkthrough e2e (2 passed) on the local stack.
The new control is not actually shown everywhere a pending timesheet change appears. WorkPage.tsx:883-949 renders the same TimesheetChangeRequest workflow for timer-entry edits and shows a “Pending approval” badge, but it never renders ChangeRequestWalkthrough; those requests therefore have no Pulse entry point after submission. Wire the pending request (not just the boolean) into that row and refresh loadMyRequests from onAdded, consistent with the clock-timesheet row.
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The core live refresh of an already-open approver view lacks end-to-end regression coverage.
0 open findings
Previously missed (1)
In code that hasn't changed since last review
Add end-to-end coverage for approver live refresh on walkthrough changes
tests/e2e/timesheet/walkthrough.spec.ts:131
This test covers delivery only from the requester's side; it never opens Timesheet Approvals as an approver or verifies that an already-open request refreshes when hasWalkthrough changes. That live-refresh path is new, spans the notification update and TimesheetApprovalsPanel, and has already required race/replay fixes, so an end-to-end assertion should keep it from silently regressing.
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
…fork
vendor/ui now follows mieweb/ui's timehuddle/next integration branch:
main, the SuperChat host extension points, and the mobile-first media
work in mieweb/ui#675 and #676. The tarball is rebuilt from it (020e2193).
Each change goes to main as its own PR; as they merge, the branch shrinks
back toward main.
Picks up the Copilot round on mieweb/ui#675 and #676: autoplay and picture in picture handoffs, the speed button following the video, the focus trap's reachable ends, and the phone media view following the keyboard.
- A Pulse video plays in its card, on the library's MediaPlayer, whose
controls now fit a card in a chat; an expand button opens the media view.
The card has the bubble's corners everywhere, and never folds into a
gallery.
- A post sending with files shows where it will land, dimmed, with how far
its files have uploaded; Day grouping opens that day's thread. A failed send
puts the text and the files back.
- A refused file says why: over 25 MB (post a longer video with Pulse), a type
the box doesn't take, a HEIC photo. Word, Excel, text and CSV files can be
attached, and documents show their size.
- Edit and Copy sit beside the message; the conversation list previews plain
text, and a post with no text by what it carries.
Library from timehuddle/next ea28ebe5 (mieweb/ui #675, #676 and
feat/superchat-attachment-groups).
…ut of view
Closing a menu on any scroll that moved its trigger also closed one scrolled
a little to reach a lower item, which is what the org member-blocking and
realtime team-members e2e tests do. Library from timehuddle/next f94338f2
(mieweb/ui #676).
… edit
The vendored library takes the review round: readable file details, '+N'
in RTL, captions that show their state, Previous/Next clear of the actions
on a phone held sideways, and attachments that don't open while their
message is edited. SuperChat now hands a host card no open then, so a
Pulse card's ▶ is off until the edit is saved or cancelled.
Sends tracked per conversation, an edit that clears the text saves it
cleared, Escape back from the media view leaves a containing dialog open,
captions that follow the player's size, and a Play in picture in picture
that counts.
Tiles follow their picture's current shape, previews strip links whose
address holds parentheses, Remove keeps focus in the editor, and upload
progress stays out of the thread's live announcements.
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
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
Stage 4 of landing #615 in pieces, stacked on #659: a Pulse walkthrough on a timesheet change waiting for approval. Wherever a pending change shows, Pulse sits beside Pending approval. Record on your phone, and the server sets the video as the request's walkthrough the moment it uploads; the approver sees it in Timesheet Approvals, and the request then says Walkthrough added.
Same direct-delivery model as #654, #658 and #659: the link carries the destination, the server delivers from
onUploadComplete, the page only watches. The walkthrough is added after the change is sent, not in the form, because the request is the destination and doesn't exist until it's submitted.Screenshots
Taken on this branch against a local test backend. The upload went through the reserved
timesheet-requestlink as the Pulse app sends it; the pending changes were created over the API.Admin timesheet: an admin's edit to a member's shift is listed under Sent to another admin for approval, with Pulse, and stays there after a reload.
Changes
timesheet-requestdestination (pulse-destinations.js, on thecheck/delivered/delivertable):check: the request exists, is the uploader's own, is stillpending, and has no walkthrough yet. Refusals areforbidden(someone else's) ornot-found(gone, decided, or already has one), so a video that lands too late is kept in storage with the reason, not replayed forever.delivered: the request already carries this video's URL.deliver: one guarded update (status: 'pending',videoUrlempty), so a walkthrough never replaces another and never lands on a decided change. If the request moved on in between, it throws; the replay'scheckthen keeps the video.artifactIsEvidenceUnderReviewalready protects the video from deletion while the request is under review.ChangeRequestWalkthrough(new,src/features/clock/):PulseButtonfor{ kind: 'timesheet-request', id }on a pending request with no video; a successBadge"Walkthrough added" once it has one; nothing for a decided request. The UI follows feat(pulse): make Pulse the only way to add video, delivered where it was started #615.TimesheetRow's newpendingActionslot, on the session's first row only, so a session split by breaks or midnight gets one button), and in Awaiting approval next to Withdraw, in aButtonGroup.listMine), so the walkthrough can still be added after a reload.ButtonGroup); the actions column now sizes to its content so the chip and badge aren't cut off.PulseDestinationgainstimesheet-request(src/lib/api.ts, e2e helper); landed label "Walkthrough added — your approver will see it" and its upload hint inpulseStatus.ts. Backend notes stay hidden for this kind (only the clock kinds show follow-up notes).1.0.6.md.Tests
tests/e2e/timesheet/walkthrough.spec.ts:timesheet-requestlink, the request'svideoUrlbecomes the video, and after a reload the row says Walkthrough added.forbidden) or for one no longer pending (not-found).timesheet.spec.ts:Clock in/Clock outlocators are exact, since the Clock page from Pulse in Huddle and on the Clock Page: the Video Posts Itself, and Clocks You In or Out #659 also has Clock in with Pulse / Clock out with Pulse.pulseStatus.test.tscovers that this kind's backend note is never shown.timesheet/walkthrough(3) andtimesheet/timesheet: all passed.Not in this PR
timesheet-approvals.test.tsfixture with a non-UUID artifact id (fails onmaintoo; separate fix, per feat(pulse): make Pulse the only way to add video, delivered where it was started #615).