Skip to content

Use favorites from graph api#2171

Open
pascalwengerter wants to merge 3 commits intoopencloud-eu:mainfrom
pascalwengerter:favorites-graph-api
Open

Use favorites from graph api#2171
pascalwengerter wants to merge 3 commits intoopencloud-eu:mainfrom
pascalwengerter:favorites-graph-api

Conversation

@pascalwengerter
Copy link
Contributor

@pascalwengerter pascalwengerter commented Mar 18, 2026

Related Issue

Types of changes

  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality), if you consider removing the legacy favorite option "supported" (@kulmann)
  • Technical debt (addressing code that needs refactoring or improvements)

@pascalwengerter pascalwengerter force-pushed the favorites-graph-api branch 3 times, most recently from c90aca7 to 82e3529 Compare March 18, 2026 16:51
@AlexAndBear
Copy link
Member

@pascalwengerter started the ci. Type check and linter are complaining

@pascalwengerter
Copy link
Contributor Author

@pascalwengerter started the ci. Type check and linter are complaining

Thx, will rebase & address

@AlexAndBear
Copy link
Member

AlexAndBear commented Mar 20, 2026

@pascalwengerter works very good at first glance!

But there is something off with the search, every item is marked as favorite even if they ain't marked as such.

image

can you also check if its possible to add project spaces as favorites ? I am not sure if there is a backend limitation, but would be great.

@AlexAndBear
Copy link
Member

I had a chat with the team. Can you please set the fill type to line in the status indicators, so it machtes the other ones and looks a little more subtle ? 🙏

@pascalwengerter
Copy link
Contributor Author

Thx for the feedback, will investigate (& adapt the icon). I'm kinda surprised there's no test changes needed/expected failures to update?

@AlexAndBear
Copy link
Member

Thx for the feedback, will investigate (& adapt the icon). I'm kinda surprised there's no test changes needed/expected failures to update?

Same, I was expecting there were some disabled e2e tests, but couldn't find any

return false
}
if (resources.length !== 1) {
if (resources.length === 0) {
Copy link
Member

Choose a reason for hiding this comment

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

To me, it looks like you are trying to make these batch actions compatible, but I can't spot any Batch Action button in the UI

Copy link
Member

Choose a reason for hiding this comment

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

I also don't know if we want this, spotting @kulmann

icon: 'star',
category: 'system',
type: 'resource-favorite',
fillType: 'fill'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
fillType: 'fill'
fillType: 'line'

},
"engines": {
"node": ">=18"
"node": ">=22"
Copy link
Member

Choose a reason for hiding this comment

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

is this necessary?

@AlexAndBear
Copy link
Member

AlexAndBear commented Mar 20, 2026

The reason why the search is showing false positive starred items is in packages/web-client/src/helpers/resource/functions.ts

the check

starred: resource.props[DavProperty.IsFavorite] !== 0

should be changed to

starred:resource.props[DavProperty.IsFavorite] === 1

Unfortunately, the search is not yet compatible with favorites yet :sigh:

@AlexAndBear
Copy link
Member

@pascalwengerter I am baffled. I checked if we can add spaces to favorites and it's supported by the backend. You can add it to space actions if you want to, or I'll do it in a follow-up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toggle favorites Tiles view: Favorites Favorites status indicator

2 participants