Commit Graph

4191 Commits

Author SHA1 Message Date
Mike Dalessio b7abf33c29 Bump identity cache fragments 2025-10-10 11:08:39 -04:00
Mike Dalessio 04be825609 Fix identities for existing sessions 2025-10-10 10:58:30 -04:00
Mike Dalessio 3399e45130 Introduce an "Identity" model to ease login
- New untenanted Identity and Membership models
- New `identity_token` cookie with path "/" holds state across tenants

We're not sure whether the untenanted database will be sqlite or
MySQL, and so I've been careful to minimize

- database reads, placing them behind etags and caching
- database writes, only writing when a new Session is created (login)

Note that we track two things in the identity_token cookie: a signed
id, and the updated_at for the underlying Identity object. This allows
us to effectively cache on the Identity without having to hit the
database, by using an Identity::Mock object that is compatible with
etag and cache methods.

The new integration test shows the desired user-facing behavior, which
is to make it easy to login without a tenanted URL and to jump between
tenants.

- the untenanted "login_help" page shows all linked memberships
- the jump menu shows all linked memberships (except the current)

Also introduced a utility script to populate existing employee
Identities, grouping accounts by email address.
2025-10-10 10:12:25 -04:00
Andy Smith 9ead1d82ac Merge branch 'main' into public-description-lists
* main: (21 commits)
  Ruby 3.4.7 (#1274)
  bin/setup: enpurple step headings
  bin/setup: ensure PATH is prepared after a new Ruby is installed
  Drop defunct bin/bundle that interferes with Bundler's own version management
  bin/setup: use Bash so we can bootstrap Ruby (#1273)
  Don't try to wrap with a download link, every file already has one in the caption
  bundle lock --normalize-platforms
  Show column title on public collections
  Docker: explicit libssl dep
  Ruby 3.4.6 (#1272)
  Check the selected color
  Style
  Add column color to cache keys
  Make the edit form the same dimensions as the add form
  Don't let the column button effect apply to buttons in the picker
  Set and change column colors
  Prom metrics in dev (#1269)
  Cleanup prototyping
  Properly scroll and center content
  Sorta working x-scroll
  ...
2025-10-09 16:08:16 -05:00
Jason Zimdars 094c2c056b Don't try to wrap with a download link, every file already has one in the caption 2025-10-08 21:54:25 -05:00
Jason Zimdars 8c3f0c66b7 Show column title on public collections 2025-10-08 17:55:35 -05:00
Jason Zimdars 4bc304f762 Check the selected color 2025-10-08 17:37:10 -05:00
Jason Zimdars 3390cd95af Style 2025-10-08 17:11:42 -05:00
Jason Zimdars fcba8b6acb Add column color to cache keys
So cards change colors when you change the column color
2025-10-08 17:08:32 -05:00
Andy Smith 24eaf9ff1f Make lists in public description less weird 2025-10-08 16:52:22 -05:00
Jason Zimdars 7d8564996f Make the edit form the same dimensions as the add form 2025-10-08 16:49:16 -05:00
Jason Zimdars 7fd8cb2297 Don't let the column button effect apply to buttons in the picker 2025-10-08 16:48:44 -05:00
Jason Zimdars d7cf5c9348 Set and change column colors 2025-10-08 16:47:36 -05:00
Andy Smith 4638237889 Cleanup prototyping 2025-10-08 14:45:02 -05:00
Andy Smith 64175f040a Properly scroll and center content 2025-10-08 14:34:56 -05:00
Andy Smith 86b458bad0 Sorta working x-scroll 2025-10-08 13:54:24 -05:00
Andy Smith a701cf4324 WIP 2025-10-08 12:59:08 -05:00
Andy Smith c87dce0e7f Add gap 2025-10-08 10:57:07 -05:00
Jorge Manrubia 245823ad1c Don't cache the whole stream column
It can result in serving the wrong watch button, causing trouble like https://fizzy.37signals.com/5986089/cards/2157

The list of cards is already cached.
2025-10-08 12:18:31 +02:00
Jorge Manrubia 509464778f Format 2025-10-08 11:21:49 +02:00
Jason Zimdars 6f73c6a729 Fix squashed users lists
Regressed in 9b1cd84f96 cc: @andyra
2025-10-07 20:27:55 -05:00
Andy Smith 42aa213312 Remove aside and toolbar role from perma actions 2025-10-07 10:48:05 -05:00
Jorge Manrubia 5a329195fe Invalidate on collection (so that when we let you edit column colors it invalidates) 2025-10-07 11:25:14 +02:00
Jorge Manrubia 6035738bb4 No workflows anymore 2025-10-07 11:23:25 +02:00
Jorge Manrubia 1d1a3da9cf Cleanup workflow/stages
This was pending after moving to columns
2025-10-07 11:10:10 +02:00
Jorge Manrubia 7cb575b329 Exclude drafts from filtered cards 2025-10-07 10:32:10 +02:00
Jorge Manrubia 6af27c91d8 Fix: anchor links to comments not working
The problem was having the turbo frames as targets: their display: contents would make
auto-scrolling not working!

https://fizzy.37signals.com/5986089/cards/2190
2025-10-07 10:11:05 +02:00
Jorge Manrubia 00a9682bdf Prepare pagination link to be styled 2025-10-07 08:56:29 +02:00
Jorge Manrubia 543469965a Make all the pagination automatic 2025-10-07 08:50:33 +02:00
Jorge Manrubia 4e6866bd2e Add pagination to searches 2025-10-07 08:49:05 +02:00
Jorge Manrubia 85907e2a4e Paginate filtered cards 2025-10-07 08:44:56 +02:00
Jorge Manrubia 0aca2a24bc Keep params when paginating, so that filters are kept 2025-10-07 08:41:48 +02:00
Jorge Manrubia e7db336a84 Use new method to fetch collection watchers 2025-10-07 08:33:14 +02:00
Mike Dalessio 3df6683736 Fix filter title when there's only one Collection in the account 2025-10-07 00:04:38 -04:00
Andy Smith 9c536361a6 Inline a shared logo for 404 page and fizzy-menu 2025-10-06 15:28:57 -05:00
Andy Smith 7affff16fd Add proper radio functionality to column picker 2025-10-06 14:25:07 -05:00
Andy Smith a2b21b75ee Merge pull request #1246 from basecamp/a11y-column-header
Use button instead of header for expander
2025-10-06 14:10:47 -05:00
Jason Zimdars 96f00bf122 Merge branch 'JZ/10/6/2025' 2025-10-06 14:07:01 -05:00
Jason Zimdars 609f6cfe6a Ensure you can click through to results below the header 2025-10-06 14:01:36 -05:00
Andy Smith efb0fd5237 Use button instead of header for expander 2025-10-06 13:59:02 -05:00
Jason Zimdars e077edc17a We need this for mobile rendering 2025-10-06 13:55:22 -05:00
Jason Zimdars bfb60deb80 Fix display of button in varying conditions 2025-10-06 13:34:18 -05:00
Jason Zimdars 0ff0ed796f Fix that pins were still hoverable and clickable when hidden 2025-10-06 13:29:31 -05:00
Jason Zimdars ae3a3b99da A little more space for Windows 2025-10-06 13:26:26 -05:00
Jason Zimdars 37c20caf98 Tighten up, remove keyboard nav hint
You'll only rarely need to use this, no need to explain a feature most
people don't need
2025-10-06 13:24:52 -05:00
Jason Zimdars f2abbb5d59 Display email address for users
Helps identify invited people
2025-10-06 13:10:19 -05:00
Andy Smith 9b1cd84f96 Fade out overflow on watcher avatars 2025-10-06 11:37:16 -05:00
Jason Zimdars 31f2e941b2 Fix that background effect overlapped the pagination buttons 2025-10-06 09:27:56 -05:00
Jorge Manrubia 6073f79191 Invalidate cards when watching/unwatching
Follow up to https://fizzy.37signals.com/5986089/cards/2198
2025-10-06 16:13:33 +02:00
Jorge Manrubia c846221208 Invalidate cards when watchers change 2025-10-06 15:44:12 +02:00