Skip to content

The Clock Page's Pulse Card, a Pending Change and an Upload's Progress Fit Every Screen - #747

Merged
priyamrmore merged 11 commits into
mainfrom
feat/pulse-buttons-fit-v2
Oct 27, 2026
Merged

priyamrmore merged 11 commits into
mainfrom
feat/pulse-buttons-fit-v2

Conversation

@priyamrmore

@priyamrmore priyamrmore commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Reopens #710, which GitHub hid along with its author's suspended account. Same commits (branch -v2), same description with the stack renumbered; the earlier review threads did not carry over.

Summary

Three Pulse surfaces that didn't fit every screen now do:

  • The Clock page's Pulse card lays out by its own width (a container query), not the window's, so opening or closing the sidebar no longer breaks it. Its logo shows at every size, the pill holds only its words, and Clock in / out with Pulse is a plain primary button, like Post plan and clock in.
  • A pending change reads Pending approval with Pulse and Upload before it: labelled from sm up, two centred icon buttons on a phone, kept together on one line.
  • An upload's progress is the Upload button's own label ("Uploading 42%", "Processing…"). An error or note sits left of the buttons and drops under them on a phone.

PR 2 of 5, on #746: see Stack and merge order below.

Changes

  • ClockPage.tsx: the Pulse card uses @container; PulseLogo at every size; the Clock in/out Pulse action is a plain Button.
  • PulseButton.tsx: a compact icon-only mode below sm, with the icon dead centre in a 32px circle; in a Videos card (card), the in-flight state is the Upload button's label.
  • ComposerChipButton.tsx: the matching compact chip; ChangeRequestWalkthrough: Pulse and Upload before the badge, one wrapping group.
  • AttachmentsPanel.tsx: errors and notes left of the buttons.
  • WorkPage.tsx, TimesheetRow.tsx: the pending-change group.
  • Release note: the walkthrough and "Pulse fits every screen" sections in release-notes/1.0.7.md say what changed.

Screenshots

Clock page Pulse card: phone · tablet with sidebar · desktop

14-clock-card-phone 15-clock-card-tablet 16-clock-card-desktop

Work page on a phone (a pending change)

10-work-phone

Tests

  • On this branch: typecheck, lint, format clean; unit tests 607 / 607.
  • Checked at 1280 → 320px in half-breakpoint steps in the original branch (measured: no overflow, icons centred in their circles, Pending approval to the right of its buttons).
  • e2e not re-run on this split branch.

Stack and merge order

This work used to ship as one PR (#678). It is now five, so each can be reviewed on its own and the universal links can wait for Pulse's store release without holding the rest back.

Order PR Base What
1 #746 main Upload beside Pulse, every video converted; links in the text, Videos everywhere
2 #747 #746 The Clock page's Pulse card, a pending change and an upload's progress
2 #748 #746 Pulse opens through its universal links (waits on Pulse's App Store / Play Store release)
2 #749 #746 Pulse video cards
3 #750 #747 Timesheets as a list of sessions; the Work page in one layout

The three PRs in step 2 are independent of each other and can merge in any order once #746 is in. #750 follows #747. When a base PR merges, retarget the next one to main (GitHub does it when the merged branch is deleted).

Expected conflicts when the step-2 PRs merge after each other, all small:

Merged together, the five come out identical to the old #678 head plus the timesheet work and the video cards (checked file by file). The old heads are tagged backup/video-conform-2026-10-13 and backup/pulse-video-cards-2026-10-13.

… size

Squashed from:

* fix(clock): the Pulse card lays out by its own width, not the window's

  With the sidebar open, a ~780px window leaves the card ~500px: the
  window-based sm: row put the 288px pill and the logo beside the words and
  squeezed them into a ~80px column. The card is now an @container and goes
  side by side only from @2XL (~670px of its own); below that it stacks like
  the phone layout (words full width, pill under them). The plain Clock in /
  out pill keeps its window-based sizing (PULSE_ACTION_PILL vs MAIN_ACTION_PILL).

  Found by hand at ~780px; the responsive audit now sweeps 320-1460px in 60px
  steps (and the sidebar collapsed) and flags long text squeezed under 180px,
  which catches this card on the old code and passes on the new.

* fix(clock): the Pulse card shows its logo at every size, the pill only its words

  The red Pulse logo was hidden whenever the card stacked (phones, and tablets
  with the sidebar open), and a second white logo sat inside the pill. Now the
  card's logo is always beside the words, vertically centred on them, and the
  "Clock in with Pulse" / "Clock out with Pulse" pill is text only (kept "with
  Pulse": the plain Clock in button is further down the same page).
  PulseLogo's `inverse` variant had no other use and is removed.

* fix(clock): Clock in / out with Pulse is a plain primary button, like Post plan and clock in

  It was a large, fully rounded pill with a shadow and a hover scale (the
  page's Clock in style). It now matches the composer's "Post plan and clock
  in" / "Post wrap-up and clock out" button: default size, the library's
  corner radius, no shadow; full width while the card is stacked, its own
  width beside the words. The plain Clock in / out pill keeps its style.
…n any screen

Squashed from:

* fix(timesheet): a pending change reads "Pending approval · Pulse/Video" with icon buttons, on one line

  The walkthrough beside a pending change was labelled "Walkthrough" with
  "Pulse" and "Upload" chips, wrapping under the badge. Now the label is
  "Pulse/Video" and the chips are icon only (Pulse logo, upload arrow; their
  full names stay as aria-label and tooltip), and the label and icons join the
  badge's own row (display: contents), so badge, label and icons line up on one
  line: timesheet rows, the Work page, the admin's "Sent to another admin" list.
  The badge no longer shrinks to two lines, and a desktop timesheet cell doesn't
  wrap. On the narrowest phones the Work page's two icons drop under the badge
  and label.

  ComposerChipButton and PulseChip / PulseButton take an icon-only form
  (`iconOnly`; a chip without a label gets its aria-label as a tooltip).

* fix(videos): an upload's progress, processing and errors sit under Pulse and Upload

  In a ticket's (and Redmine issue's, and a session's) Videos section, the
  status line ("Uploading… 42%", "Processing your video…", "That file isn't a
  video.") sat beside the chips and pushed them around. It's now on its own
  line under them, right-aligned with them in the card, left in the Session
  videos window (PulseButton notesBelow: 'end' | 'start'). The header is
  top-aligned so the Videos heading stays level with the chips.

* fix(videos): an upload's progress is the Upload button's label; errors sit left of the buttons

  In a Videos section (ticket, Redmine issue, Session videos) the Upload
  button itself now reads "Uploading 42%" then "Processing…" (with its
  spinner) while a file goes up, and back to "Upload". Errors and notes
  ("That file isn't a video.", a kept Pulse video) come before the buttons, so
  they sit to their left; where there's no room beside them (a phone) they
  drop onto a line under the buttons (flex-wrap-reverse, min width 10rem), and
  the heading stays level with the buttons. Replaces notesBelow with
  PulseButton card: 'end' | 'start'. Checked at 360, 390, 768 and 1280px:
  idle, uploading, refused; no overflow.

* fix(timesheet): a pending change is "Pending approval" plus two centred icon buttons, kept together

  - The "Pulse/Video" label is gone: the badge is followed by the Pulse and
    Upload icon buttons (named by aria-label and tooltip).
  - Icon-only chips are true 32px circles with the icon dead centre: as a
    leftIcon it sat 3px left (the empty label slot kept its gap) and the
    upload arrow 1.3px low (inline, on the text baseline).
  - Work page: the badge and its buttons are one group that moves under the
    title as a whole, so at 1280px with a long note the badge no longer
    stays beside the title while its buttons wrap away from it.

* fix(timesheet): Pulse and Upload come first, labelled, with Pending approval to their right; icons only on a phone

  A pending change now reads [Pulse] [Upload] [Pending approval]: the chips
  show their labels again (icon and text centred, equal padding) and the badge
  moves after them, on timesheet rows (and their phone line) and the Work page.
  Below sm the two chips are 32px icon-only circles (ComposerChipButton
  compact: the label stays for screen readers, no gap so the icon is centred),
  which also keeps the Work page's row on screen at 320-390px. The earlier
  icon-only mode (iconOnly) is removed; ComposerChipButton's only change from
  main is the compact option.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 18:31
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🚀 Preview Deployment Ready

Service URL
App https://mieweb-timehuddle-feat-pulse-buttons-fit-v2.os.mieweb.org
API (Meteor) https://mieweb-timehuddle-feat-pulse-buttons-fit-v2-api.os.mieweb.org

Preview auto-deletes when this PR is closed.

Copilot AI 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.

🟡 Changes recommended

The Videos header can shrink the controls below their required width, causing overlap on narrow screens during uploads.

1 open issue
What changed in this PR

This PR builds on #746 to improve responsive Pulse controls across the Clock page, pending timesheet changes, and video attachments.

Changes:

  • Makes the Clock page’s Pulse card respond to its container width and use a plain primary action button.
  • Adds compact mobile controls before pending-approval badges.
  • Moves video upload progress into the Upload label and adjusts message placement.
File Description
src/​features/​timers/​WorkPage.tsx Groups walkthrough controls before the pending badge.
src/​features/​pulse-upload/​PulseLogo.tsx Removes the unused inverse logo variant.
src/​features/​pulse-upload/​PulseButton.tsx Adds compact controls and card-specific progress and message layouts.
src/​features/​huddle/​ComposerChipButton.tsx Adds icon-only chips below the small-screen breakpoint.
src/​features/​clock/​TimesheetRow.tsx Reorders pending controls and adjusts wrapping.
src/​features/​clock/​ClockPage.tsx Uses container queries for the Pulse card layout.
src/​features/​clock/​ChangeRequestWalkthrough.tsx Enables compact Pulse and Upload controls.
src/​features/​clock/​AttachmentsPanel.tsx Adopts the card layout and top-aligns the heading.
release-notes/​1.0.7.md Documents the responsive Pulse changes.

Review effort: Balanced

…t-v2

# Conflicts:
#	src/features/clock/ClockPage.tsx
Copilot AI balanced review requested due to automatic review settings October 26, 2026 18:51

Copilot AI 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.

🟡 Changes recommended

Long feedback messages can widen the Clock card’s action column and squeeze or overflow its explanatory content.

2 open issues

Review effort: Balanced

Comment thread src/features/clock/ClockPage.tsx Resolved
…t-v2

# Conflicts:
#	src/features/clock/ChangeRequestWalkthrough.tsx
Copilot AI balanced review requested due to automatic review settings October 26, 2026 20:44

Copilot AI 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.

🔵 Needs a closer look

Previously reported flex-sizing issues remain unresolved and can cause overlap or squeezed content on the responsive surfaces.

2 open issues

Review effort: Balanced

…e messages wrap under the button

Address Copilot review on PR 747:
- The Videos header's Pulse · Upload group is never narrower than its
  buttons, so on a narrow screen (and with "Uploading 100%") they drop
  under "Videos" instead of being drawn over it.
- Side by side, the Clock page's Pulse action column is capped at 18rem:
  a long error or follow-up note wraps under the button instead of
  widening the column into the card's words.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 21:08

Copilot AI 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.

🟢 Approval recommended

The presentation changes address both previously reported layout issues, with no unresolved blocking findings.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 26, 2026 21:32

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

…t-v2

Also links this PR's release note to #747, which replaced the hidden #710.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 22:18

Copilot AI 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.

🟢 Approval recommended

Static review identified no blocking issues, and the current code addresses both previously reported layout problems; tests were not rerun.

No open issues 🎉

Review effort: Balanced

Base automatically changed from feat/videos-upload-links-v2 to main October 27, 2026 15:54
…t-v2

#746 is merged. Main's Clock page redesign replaced the Pulse card with a
compact Pulse button beside each clock action, so this branch's change to
the card is dropped and its release note no longer mentions it.
Copilot AI balanced review requested due to automatic review settings October 27, 2026 16:00

Copilot AI 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.

🟡 Changes recommended

The Clock action loses its Pulse logo without the replacement logo-bearing layout promised by the PR.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 27, 2026 16:05
Main's Clock page no longer has a Pulse card to carry the logo; Pulse is a
compact button beside each clock action. So the button shows the white
Pulse mark again, as it does on main.

Copilot AI 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.

🟢 Approval recommended

The changes are localized to presentation, with no unresolved blocking findings remaining.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 27, 2026 16:08

@SarkarShubhdeep SarkarShubhdeep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Simple fix. Looks fine. Approving.

Copilot AI 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.

🟢 Approval recommended

The localized presentation changes preserve upload handling, and static review found no unresolved blocking issues; runtime and visual checks were not rerun.

No open issues 🎉

Review effort: Balanced

@priyamrmore
priyamrmore merged commit 4693b69 into main Oct 27, 2026
7 checks passed
priyamrmore pushed a commit that referenced this pull request Oct 29, 2026
Conflicts, all from #747 landing beside #748:
- release-notes/1.0.7.md: main's version; 1.0.7 is tagged, so #748's
  note moves to 1.2.0.md
- PulseButton.tsx: main's in-flight/card code, #748's comment wording
- usePulseUpload.ts: main's progress/activeFile reset, #748's
  AbortController launch
- usePulseUpload.test.ts: both sides' mocks and tests, as separate tests
@morepriyam
morepriyam deleted the feat/pulse-buttons-fit-v2 branch November 16, 2026 16:37
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.

4 participants