News for hackers. Stuff that matters.
Re:Web Apps on macOS Sonoma 14 Beta by tolmasky on Thursday June 08, 2023 @08:55AM (#36241090)
Can Web Apps use tabs? As in, if I command click a link, will it open in a native tab in the Web App? If they can't, then a bunch of apps I want to use as web apps will have to stay within the main browser unfortunately.
Re:Web Apps on macOS Sonoma 14 Beta by brundolf on Thursday June 08, 2023 @09:25AM (#36241489)
Yeah I think this has held/will hold up adoption. Of course web apps can implement their own tab UIs like native apps do, but many don't because they figure you already have tabs in your browser

Chicken and egg

Re:Web Apps on macOS Sonoma 14 Beta by galleywest200 on Thursday June 08, 2023 @08:58AM (#36241118)
Having tabs would just make it a browser. Your description leads me to believe you want a browser anyways, not a single app experience whatsoever.
Re:Web Apps on macOS Sonoma 14 Beta by tolmasky on Thursday June 08, 2023 @09:27AM (#36241530)
It seems weird to have to point this out, but there are many apps that have tabs that are not web browsers.

Any sort of document-based app benefits tremendously from tabs, and thus it would be unfortunate to have to lose that feature when making it a Web App. I for example often need a couple Google Docs open at once. I would very much like to have Google Docs as a separate item in my Dock though. However, I don't want to be forced to have each individual Google Document in a separate window like it's Mac OS 9 just because it's a "Web App".

Or for example Airtable. I have a few Airtables that I basically always have open. I currently have them "pinned" just because if not they become impossible to find in the sea of other windows and tabs in my browser. I would love to command-tab to Airtable and bring these up, but not have them in an overlapping mess of windows.

Another great example is social media "Web Apps" (like Elk for Mastodon), which basically get "stacks" for free by leveraging tabs. Instead of the Elk team having to develop an "internal tabbing" feature, I can just have a tab for each hashtag I am following. But this does not mean that I want all these tabs mixed in with random other unrelated websites.

Literally any app (vs. "page") that uses multiple windows that you would personally prefer to group into tabs is a good candidate. Tabs are a window organizational tool, they have no inherent "webness" to them aside from that being the first place they originated. macOS's AppKit framework has built-in support for automatically making document-based apps support tabs with zero additional programming. I assure you this feature wasn't added in to allow anyone to write a web browser. In fact, I think the opposite of your assertion is true: the more like an "app" the thing you're turning into a Web App is, the more likely it is to use multiple windows, and thus the more it can benefit from tabs. I agree that if you are for some strange reason turning a blog into a Web App, then tabs don't make any sense, but it also doesn't make sense to turn it into a Web App.

Re:Web Apps on macOS Sonoma 14 Beta by Turing_Machine on Thursday June 08, 2023 @10:35AM (#36242552)
Sure. Even the most basic text editor is a lot nicer if it has tabs, or some tab-equivalent.
Re:Web Apps on macOS Sonoma 14 Beta by tshell on Thursday June 08, 2023 @11:04AM (#36243050)
Another useful example of this is the Notion desktop app in which they manually created their own tab interface: https://twitter.com/NotionHQ/status/1601291261469548545

I agree that it would be much nicer to have this at the system level.

Re:Web Apps on macOS Sonoma 14 Beta by thx-2718 on Thursday June 08, 2023 @09:22AM (#36241438)
Um am I not understanding what "Web App" means?

"A web application (or web app) is application software that is accessed using a web browser. Web applications are delivered on the World Wide Web to users with an active network connection."

https://en.wikipedia.org/wiki/Web_application

Re:Web Apps on macOS Sonoma 14 Beta by breckenedge on Thursday June 08, 2023 @10:51AM (#36242836)
Re:Web Apps on macOS Sonoma 14 Beta by thx-2718 on Thursday June 08, 2023 @11:02AM (#36243024)
Am I missing something there? Appears a browser is still required. i.e. at the moment these don't work with Firefox.
Re:Web Apps on macOS Sonoma 14 Beta by breckenedge on Thursday June 08, 2023 @11:24AM (#36243448)
Yea a browser is required and is provided by whatever browser was used to install the app. So if you “install” the PWA with Chrome, then Chrome is used to open it. On Mac/Safari 17+, it looks like it’s provided by Web App.app, which is probably just a wrapper for Safari. A separate browser install is not required.

It works in Firefox, not sure why Wikipedia has that wrong.

Re:Web Apps on macOS Sonoma 14 Beta by dbbk on Thursday June 08, 2023 @02:05PM (#36246085)
Not really. Plenty of Electron apps for web apps like Notion, Figma, Linear all support tabs.
Re:Web Apps on macOS Sonoma 14 Beta by latexr on Thursday June 08, 2023 @12:53PM (#36244973)
Tested it on the beta, and tabs are not available. The option isn’t there even if you right-click a link. But you can create new windows of the same app.

Under the Window menu there are options to Show Previous Tab, Show Next Tab, and Move Tab to New Window, but they’re all greyed out.

Re:Web Apps on macOS Sonoma 14 Beta by crazygringo on Thursday June 08, 2023 @01:51PM (#36245867)
Yeah this is a real UX conundrum, because the whole windows/tabs paradigm right now is kind of confused.

Like when I use Google Docs, I've usually got several open as separate tabs in my browser. If I wanted Docs as a webapp, it wouldn't have the tabs functionality anymore, which would make it immediately useless. In the way that every IDE or Photoshop now use tabs inside the app.

We're at this place now where I actually wish tabs weren't handled by applications but rather by the OS, together with windows. Let me create a window that has three Chrome tabs, a Safari tab, a Terminal tab, and a Preview tab. Another window with a Word (installed) doc tab, an image in Photoshop tab, and several Finder tabs.

The fact that web apps can't be tabbed is almost this weird step backwards.

Re:Web Apps on macOS Sonoma 14 Beta by judah on Thursday June 08, 2023 @02:36PM (#36246542)
You should be aware of the tabbed application model proposal, which would allow PWAs to have tabs: https://web.dev/tabbed-application-mode
Re:Web Apps on macOS Sonoma 14 Beta by xnx on Thursday June 08, 2023 @04:06PM (#36248028)
Having the choice is great. I sometimes open a Google Spreadsheet as an app so that any links I click in the spreadsheet will open in my browser and not steal focus from the spreadsheet.