Commit Graph

1338 Commits

Author SHA1 Message Date
Jason Zimdars e0c0c90ba4 Tighten-up no-activity blocks, adjust layout between day blocks 2025-01-27 15:54:26 -06:00
Kevin McConnell 0816c60255 Re-enable event CSS section 2025-01-27 15:41:01 +00:00
Kevin McConnell bfaac4bd44 Render activity directly into requested timezone 2025-01-27 15:41:01 +00:00
Jason Zimdars 85daf2aecf Merge branch 'main' into latest-activity
* main:
  Ensure notification panels have a visible border in dark mode
  Polish divider
2025-01-24 22:05:23 -06:00
Jason Zimdars c833f42aca Ensure notification panels have a visible border in dark mode 2025-01-24 22:05:13 -06:00
Jason Zimdars 9b2d25e564 Oops, should be this 2025-01-24 20:24:07 -06:00
Jason Zimdars d01e62a2ed Stub CSS for displaying events in a cluster
@kevinmcconnell in order for the clusters to work, we'll need to update `timeline_conteroller.js` to set `grid-column-start` and `grid-row-start` on `.cluster` so it displays in the correct hour/action cell. Then we'll enable these styles to display them together without overlapping.
2025-01-24 20:06:58 -06:00
Jason Zimdars 3f794f9d73 Polish divider 2025-01-24 19:50:29 -06:00
Jason Zimdars 93af7a0e75 Dark mode variant 2025-01-24 16:31:14 -06:00
Jason Zimdars 6e086cc0bb Style filter drop-down 2025-01-24 16:23:39 -06:00
Jason Zimdars 881e1d07fc Merge branch 'main' into latest-activity
* main: (27 commits)
  Leave some space for the tray
  Let's not assume it's a due date
  Avoid overlap
  Let's try without the big drag button, extend beyond the column a touch
  Tighten labels
  Match notification dot
  Spacing
  Add more context
  Avoid leaving the tray open
  This shouldn't be here
  Paginate the read notifications
  Add a test case
  Split up a big view
  Allow filtering by stage
  Send beacon request on disconnect as well
  Wire up notifications "Mark all as read" button
  Add unread dot
  Set state for when there are no new notifications
  Move to right side, smooth transition
  Open tray on click, stub mark-as-read button
  ...
2025-01-24 15:07:17 -06:00
Jason Zimdars 43ee37a422 Leave some space for the tray 2025-01-24 15:06:02 -06:00
Jason Zimdars ec65f8a529 Avoid overlap 2025-01-24 14:55:24 -06:00
Jason Zimdars 7e97f1b672 Let's try without the big drag button, extend beyond the column a touch 2025-01-24 14:54:10 -06:00
Jason Zimdars 62ef5d90a6 Match notification dot 2025-01-24 14:18:38 -06:00
Jason Zimdars 3c66f1ade7 Spacing 2025-01-24 14:15:54 -06:00
Kevin McConnell 7f96475344 Each cluster of events should have a parent 2025-01-23 17:08:55 +00:00
Jason Zimdars c0a2b36000 Color all cells 2025-01-23 09:53:12 -06:00
Kevin McConnell 570d4ff66c Control the "no activity" label client-side
This allows us to take into account the local timezone -- any days where
all the events were outside the local 24-hour period are the ones that
are empty.
2025-01-23 13:13:26 +00:00
Jason Zimdars 1c20872b83 Highlight the current hour
FIXME: only do this on the current day
2025-01-22 21:57:38 -06:00
Jason Zimdars 46b46aeb79 Show this always, too 2025-01-22 16:00:33 -06:00
Jason Zimdars 0857f449a2 Let's display the whole day after all 2025-01-22 15:59:24 -06:00
Kevin McConnell 86cb627120 Include neighbouring events in paginated query
Since we're rendering according to the local timezone, we'll need to
include events that fall before or after the specific date on the
server, as they might get be inside the current day in the client's
timezone. So let's just grab a window of events either side of today,
and then hide anything that falls outside the client's day.
2025-01-22 16:44:30 +00:00
Kevin McConnell b2f72ff668 Use Stimulus to position events by timezone 2025-01-22 14:38:38 +00:00
Jason Zimdars e11b5095d5 Add grid cell styles and time markers 2025-01-21 18:29:56 -06:00
Jason Zimdars 49866a121d Merge branch 'main' into latest-activity
* main:
  Don't round up in time distance expression
  Tidy Gemfile
  Banner for draft state
  Drafts should always use the dashed outline wherever they're displayed
  Unnecessary parens
  Use distance to nearest edge
  Simplify overlap logic
  Fix divider drag jankiness
  Use cache-friendly "time ago"
  positionedClass -> installedClass
  Pull out moveDividerTo
  Before comes before After
  DividerElement -> Divider
  Clean up divider-controller
  Drag bubble divider
2025-01-21 13:50:28 -06:00
Jason Zimdars 404c420a58 Add unread dot 2025-01-20 18:20:58 -06:00
Jason Zimdars 02573b6dc8 Set state for when there are no new notifications 2025-01-20 17:58:56 -06:00
Jason Zimdars 69e235b082 Move to right side, smooth transition 2025-01-20 15:32:34 -06:00
Jason Zimdars 56c4bfc04c Merge branch 'main' into notification-index
* main:
  Don't round up in time distance expression
  Tidy Gemfile
  Banner for draft state
  Drafts should always use the dashed outline wherever they're displayed
  Unnecessary parens
  Use distance to nearest edge
  Simplify overlap logic
  Fix divider drag jankiness
2025-01-20 13:01:41 -06:00
Jason Zimdars 536dfa65d7 Open tray on click, stub mark-as-read button 2025-01-20 13:00:56 -06:00
Jason Zimdars cd22046efe Refactor 2025-01-19 22:27:02 -06:00
Jason Zimdars 00e905dd28 New for you empty state 2025-01-17 15:37:43 -06:00
Jason Zimdars 6b832876a2 Add a notifications button to the tray for reaching the index when you have no unreads 2025-01-17 15:30:33 -06:00
Jason Zimdars cb6651e2a7 Style notifications index; add truncation for long notifications 2025-01-17 12:42:46 -06:00
Kevin McConnell 11454a1952 Lazy-load activity pages 2025-01-17 17:28:07 +00:00
Jason Zimdars 29b221f65c Banner for draft state 2025-01-16 19:21:27 -06:00
Jason Zimdars 340ff19a8c Drafts should always use the dashed outline wherever they're displayed 2025-01-16 19:14:58 -06:00
Jose Farias af0783d8ff Fix divider drag jankiness 2025-01-16 13:54:42 -06:00
Kevin McConnell 6706802b89 Add an index view for all notifications 2025-01-16 17:48:38 +00:00
Jose Farias 622e340e83 positionedClass -> installedClass 2025-01-15 20:31:09 -06:00
Jose Farias dac9aa9d26 Drag bubble divider 2025-01-15 17:22:25 -06:00
Jason Zimdars 410cc95396 Stub out basic design 2025-01-15 17:16:59 -06:00
Kevin McConnell cd1e6378d0 Add drafted and published states 2025-01-15 10:58:00 +00:00
Jason Zimdars 5f88cd3900 Design for notifications 2025-01-13 20:46:51 -06:00
Kevin McConnell 07fcb7ee6b More style shuffling 2025-01-13 14:21:47 +00:00
Kevin McConnell a7d9ec908c Adjust styles 2025-01-13 14:21:47 +00:00
Kevin McConnell 0c152b5439 Style the tray a little bit 2025-01-13 14:21:47 +00:00
Kevin McConnell 952895ae67 WIP: show notifications in a tray 2025-01-13 14:21:47 +00:00
Jason Zimdars a531e627c6 Polish comments 2024-12-20 17:12:28 -06:00