1
0
mirror of https://github.com/element-hq/element-web.git synced 2026-10-24 23:19:26 +03:00

29 Commits

Author SHA1 Message Date
Michael Telatynski
6d644ffe78 Remove legacy Module & Customisation API (#33941)
* Remove legacy Module & Customisation API

in favour of the new runtime modules system

* Delint

* Remove unused i18n string

* Fix tests

* Fix test

* Fix tests

* Iterate

* Fix bad merge

* Bump Module API version

* Bump module-api compatibility ranges

* Update docs

* Fix semver ranges

* Update test module API version

* Too many versions

* Too many versions again
2026-09-11 13:32:48 +00:00
Florian Duros
fc68b58c4d Room list: add an Invites section (#34736)
* Add an Invites section to the room list

Invited rooms are collected in a section pinned above Favourites.
The invite tag is synthetic, derived from the membership rather than
stored as account data, so tagRoom refuses to write or remove it.

* Name the Invites section and hide its filter chip

The collapsed header shows the number of invitations: an invitation is
neither a mention nor a notification, so it would contribute nothing to
the badge otherwise. The chip is only offered when sections are off.

* Keep invited rooms out of other sections

Membership fixes the section of an invited room, so it cannot be dragged
and the Favourited, Low priority and "Move to" entries are hidden.

* Start the Invites section collapsed

The section appears on its own when an invitation arrives, so it starts
closed and its header reports the count. Expanding it lasts only while it
is on screen, so it is closed again every time it reappears.

* Update e2e tests

* Update screenshots

* Simplify dragAndDrop.ts

* Open the section header in the e2e test only if closed

* Update lifecycle e2e tests
2026-09-07 11:04:50 +00:00
Michael Telatynski
4aa1a3549e Enable oxlint restriction ruleset (#34307)
* Remove stale max-len disablements

* Remove stale camelCase & naming-convention disablements

* Remove stale ban-ts-comment disablements

* Remove stale no-var disablements

* Remove stale no-empty-property disablements

* Remove stale react rule disablements

* Remove stale no-constant-condition disablements

* Remove stale no-unused-vars disablements

* Remove stale disablements for disabled rules

* fixup camelcase

* Remove dead code

* Tidy code

* Tweak oxlint config

* Use oxlint to apply jsx/tsx extension consistently

* Fix import

* Fix imports

* Rename affected snapshots

* Update more imports

* Enable restriction ruleset

* Make code comply with new rules

* Make code comply with react/button-has-type

* Make code comply with typescript/non-nullable-type-assertion-style

* Comply with node/no-process-env

* Comply with unicorn/prefer-node-protocol

* Comply with unicorn/import-style

* Comply with unicorn/no-process-exit

* Comply with no-proto

* Comply with node/handle-callback-err

* Comply with import/no-commonjs

* Comply with node/no-path-concat

* Comply with unicorn/no-length-as-slice-end

* Comply with unicorn/no-document-cookie

* Comply with unicorn/prefer-module

* Comply with typescript/prefer-literal-enum-member

* Comply with jsx-a11y/anchor-ambiguous-text

* Tweak oxlint config

* Fix resolves

* Iterate

* Iterate

* Iterate

* Iterate

* Iterate

* Iterate

* Iterate
2026-08-04 09:15:07 +00:00
Michael Telatynski
1bec06ca52 Wire up GHA workflow to release modules (#34544)
* Wire up GHA workflow to release modules

* Iterate
2026-08-04 08:29:40 +00:00
Michael Telatynski
5002f2929f Fix CI/CD pnpm error around minimumReleaseAge (#33908)
* Update pnpm

* Fix @types/node dep reference

* disable allowBuilds for js-sdk

* disable allowBuilds for js-sdk for git too

* Iterate

* Iterate
2026-06-19 11:12:59 +00:00
Michael Telatynski
7a1a3f518c Make codebase comply to knip --strict (#33893)
* Make codebase comply to `knip --strict`

Deletes a few bits of dead code

* Trim i18n strings

* Fix missing export

* Remove test of dead code
2026-06-18 09:35:47 +00:00
Michael Telatynski
44c540eca0 Tweak modules to be disabled if config is missing (#33806)
* Consolidate modules vitest coverage

* Use vite-common as base for modules vitest config

* Make knip happier

* Fix coverage paths

* Place modules unit tests alongside src

* Switch to defineProject for better type safety

* Consolidate vitest CI & coverage

Kills off vite-common

* Update comment

* Update lockfile

* Fix shared-components vitest config

* Soften eslint config for tests in modules

* Run eslint on modules/playwright dir too

* Make tsc happy

* Tweak modules to be disabled if config is missing

* Restore blank line

* Improve coverage

* Potential fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-16 08:41:40 +00:00
Michael Telatynski
e9a89d9872 Consolidate vitest CI & coverage (#33808)
* Consolidate modules vitest coverage

* Use vite-common as base for modules vitest config

* Make knip happier

* Fix coverage paths

* Place modules unit tests alongside src

* Switch to defineProject for better type safety

* Consolidate vitest CI & coverage

Kills off vite-common

* Update comment

* Update lockfile

* Fix shared-components vitest config

* Soften eslint config for tests in modules

* Run eslint on modules/playwright dir too

* Make tsc happy
2026-06-10 16:00:34 +00:00
Michael Telatynski
6f46493b4d DRY 2026-06-08 13:34:08 +01:00
Michael Telatynski
d4bdc70653 Fix tests 2026-06-08 11:59:47 +01:00
Michael Telatynski
af74f511ed Make tsc happier 2026-06-08 11:42:00 +01:00
Michael Telatynski
2192b2f5e3 Fix vitest runs for modules 2026-06-08 11:21:36 +01:00
Michael Telatynski
cf9ee41d06 DRY 2026-06-08 11:19:13 +01:00
Michael Telatynski
799d33278f Absorb remainder of element-modules into monorepo 2026-06-08 10:32:12 +01:00
renovate[bot]
2a6e185be9 Update vite 2026-06-04 08:13:41 +00:00
Michael Telatynski
cff89430f6 Remove unused export 2026-06-03 16:43:23 +01:00
Andy Balaam
746a022a95 Use the rejectToast function from utils instead of a fixture 2026-05-15 13:08:10 +01:00
renovate[bot]
7f286de61f Update dependency typescript to v6 2026-04-29 20:10:19 +00:00
Andy Balaam
ddb873a370 In lifecycle tests, dismiss the Verify toast if it appears (#252)
Depend on @element-hq/element-web-playwright-common v3.1.0 to provide the `toasts` fixture.
2026-04-14 14:36:53 +01:00
dependabot[bot]
6ab5d7d3c5 build(deps-dev): bump vite in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `vite` from 7.3.1 to 7.3.2
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.2
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-06 20:43:24 +00:00
David Langley
617978e436 update moduleApiVersion to enforce module is actually present. 2026-03-23 11:38:04 +00:00
David Langley
c058c187c4 Tidy up 2026-03-13 16:19:27 +00:00
David Langley
610a9494d1 Fix coverage paths 2026-03-13 15:43:25 +00:00
David Langley
75464c1634 Make sonar happy 2026-03-13 15:43:25 +00:00
David Langley
7d183ed15b Fix coverage reporting 2026-03-13 15:43:25 +00:00
David Langley
c2da26542e Remove double export 2026-03-13 15:43:25 +00:00
David Langley
782b008b54 Fix e2e
We need wildcard to match query params etc
2026-03-13 15:43:25 +00:00
David Langley
5d091e91c3 Update e2e tests and header
Don't add normalisation of widget headers either
2026-03-13 15:43:25 +00:00
David Langley
6aa454c646 Add widget lifecycle module 2026-03-13 15:43:25 +00:00