* feat: [OCISDEV-115] colour tag chips by tag name Tag chips were all the same grey, so a file's tags were hard to tell apart at a glance and the same tag looked like nothing in particular across the app. Fill each chip with a colour derived from the tag name: `hash(tag) % length` picks a slot in the theme's new `designTokens.tagColorsList`, emitted as `--oc-color-tag-N`. The colour is derived, never stored, so a tag looks the same for every user on every device with no API, storage or migration change. The label colour is computed per fill rather than pinned to a token: the fills come from the theme, so one token cannot stay legible against all of them, and `--oc-color-text-inverse` gets it backwards in the light theme. The calculation lives in `useTagColor` rather than in `OcTag` because the theme store is a reactive dependency and `getComputedStyle` is not — resolving it in the component would leave the label stale after a theme switch. The fill is read straight out of `tagColorsList` rather than from the emitted css var, since `getHexFromCssVar` reports an unresolvable var as `#000000` and would hand a pale fill an illegible white label. A filled chip carries `oc-tag-filled`, which forces the colours of everything nested inside it down as `inherit`/`currentColor`. Those nested elements otherwise repaint themselves — a `router-link` takes the global anchor colour, a raw `OcButton` its own swatch, `.oc-tag .oc-icon > svg` a muted fill — which left navy labels and a washed-out close icon on the deep light-theme fills, and labels that were too light on the pale dark-theme ones. Nothing hardcodes a colour, so both themes are covered by construction. `OcTag` keeps its default appearance: it is the generic badge (the app-store "most recent" pill, instance badges, the disabled-space indicator, the `+N` counter), so both `fillColor` and `labelColor` are opt-in. `initializeThemes` now merges with replace semantics for arrays. deepmerge concatenates by default, which would turn a `tagColorsList` present in both `defaults` and a theme into 60 entries and shift every hue. Also make the tag overflow indicator on the files list a real, keyboard reachable button that shows the hidden tags in a popover instead of opening the sidebar. That popover is sized to its tags: `OcDrop` is a fixed 300px wide, which left it nearly empty when it held a single chip capped at 80px by `.resource-table-tag`, with the right alignment the tags column passes down pushing that chip to the far edge. 300px is kept only as a cap so a long tag still truncates. Both `theme.json` copies gain 30 placeholder fills per theme, per theme rather than in `defaults`, so the feature can be exercised end to end while design's real values are outstanding. They were generated by binary-searching HSL lightness for a target relative luminance per hue, since equal-lightness hues differ a lot in perceived brightness: deep fills with white labels in the light themes, pale fills with black labels in the dark ones. Worst-case label contrast is 6.31:1 (light) and 8.52:1 (dark), higher in both high-contrast themes. Both copies are needed — web-runtime's file is what `pnpm build` publishes to `web/dist/themes`, while an ocis binary serves the go:embed-ed `services/web/assets/themes` copy instead (services/web/pkg/server/http/server.go layers it over the embedded core assets). Every theme in a file has the same list length, so a tag keeps its colour slot across a theme switch.
ownCloud Web
ownCloud Web is the next-generation frontend for ownCloud Infinite Scale, built as a single-page application with Vue.js and TypeScript. It provides a modern, accessible and themeable user interface for managing files, sharing, real-time collaboration and administration -- designed to be extensible through a plugin-based architecture that allows third-party developers to build custom apps and extensions.
Getting Started
Set up a local development environment for ownCloud Web:
Prerequisites
- Node.js (LTS recommended)
- pnpm
- Docker Compose (for backend)
For the complete development setup, see the setup guide.
Structure
The web/packages directory contains the core modules:
- client -- Generated TypeScript client for the oCIS Graph API
- container -- Static assets and base files
- extension-sdk -- Utilities for developing custom extensions
- pkg -- Shared logic used across the codebase
- runtime -- Authentication, routing, theming and application handling
Built-in apps (also in web/packages):
- files -- Core file sync-and-share functionality
- admin-settings -- User, group and space administration
- activities -- Activity stream
- app-store -- Browse and install extensions
- epub-reader -- Ebook file viewer
- external -- WOPI-based document editing (Collabora, ONLYOFFICE)
- pdf-viewer -- PDF file viewer
- preview -- Audio, video and image previewer
- text-editor -- Plain text editor