Commit graph

546 commits

Author SHA1 Message Date
Shaun Warman
a5e56c3446
fix: forwardemail bounce processing invalid signature issue (#2250) 2025-01-10 10:40:21 +05:30
Kailash Nadh
50b296da08 Remove GitHub from OIDC shortcuts as it doesn't support OIDC. Closes #2235. 2025-01-05 21:00:17 +05:30
Kailash Nadh
7bfbd6a856 Add all to subscriber deletion by query which broke with query validation. Ref: #2122. 2024-12-04 22:07:54 +05:30
Kailash Nadh
a1291114d9 Replace broken indent JS lib with js-beautify. Closes #2182. 2024-12-04 21:52:37 +05:30
Kailash Nadh
1c33d32b9e Remove redundant event from bounces UI. Closes #1850. 2024-12-04 21:16:48 +05:30
centja1
cb99d600aa
Fix loading of messengers from serverConfig on line 629 (#2187) 2024-12-03 13:40:31 +05:30
dependabot[bot]
882c49f1dd
Bump cross-spawn from 7.0.3 to 7.0.6 in /frontend (#2169)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-19 10:14:02 +05:30
Kailash Nadh
0a27de16c6 Replace type field in user creation UI with radio-button for better usability. 2024-11-13 00:03:40 +05:30
Shaun Warman
cb8b54fd00
Add ForwardEmail (provider) bounce integration (#2016)
* Add ForwardEmail one-click SMTP form option.
* Add bounce webhook integration.

---------

Co-authored-by: Kailash Nadh <kailash@nadh.in>
2024-11-10 21:45:07 +05:30
Bowrna
03925821fb
Add % on campaign analytics pie chart hover (#2124)
Co-authored-by: Kailash Nadh <kailash@nadh.in>
2024-11-05 21:32:36 +05:30
pbence
5abf004655
fix dummy detection for OIDC client secret (#2116) 2024-10-29 10:36:17 +05:30
Kailash Nadh
5b3d6e2be0 Add first-time Super Admin setup UI on fresh install.
- Don't setup username+password from config file during fresh install.
- If `LISTMONK_ADMIN_USER` and `LISTMONK_ADMIN_PASSWORD` env vars are
  set during `--install`, use them.
- Otherwise, render new username+password creation UI on `/admin/login`.
- Add Cypress tests.
2024-10-26 19:47:01 +05:30
Kailash Nadh
1e4b3a26f2 Separate get individual user and get all users queries. 2024-10-26 17:03:02 +05:30
Kailash Nadh
87db0d596b Fix Cypress admin form test to support <codeflask> rendered HTML. 2024-10-26 13:27:45 +05:30
Kailash Nadh
9760d19b4d Fix button focus/active styles on the UI. 2024-10-23 12:21:15 +05:30
Kailash Nadh
69de02ab6d Restyle and simplify subscriber form UI with tabs. 2024-10-23 00:06:53 +05:30
Kailash Nadh
b5382b81a1 Add user UI frontend tests. 2024-10-22 23:11:15 +05:30
Kailash Nadh
b2866b1f12 Apply minor style changes and improvements to modals. 2024-10-22 23:10:16 +05:30
Kailash Nadh
74e77bd6e0 Add names to user form fields for testing. 2024-10-22 22:50:09 +05:30
Kailash Nadh
3fdf6fe31e Add individual list permission checks on admin UI. 2024-10-22 21:37:19 +05:30
Kailash Nadh
13222b5eb9 Fix random timing related Cypress test failures (huh). 2024-10-20 23:50:06 +05:30
Kailash Nadh
29aa977e6a Expand search input width on subscribers UI for smaller screens. 2024-10-20 23:50:06 +05:30
Kailash Nadh
6258fd5cee Increase settings UI poll interval to reduce broken requests. 2024-10-20 23:50:06 +05:30
Kailash Nadh
0f785b7173 Fix Cypress tests to work with new auth and other UI changes. 2024-10-20 23:50:06 +05:30
Kailash Nadh
71f9e861e4 Show OIDC URL warning only when enabled on the UI. 2024-10-20 23:50:06 +05:30
Kailash Nadh
03744e0dde Fix broken settings references on forms page 2024-10-20 23:50:06 +05:30
Kailash Nadh
cc71899e86 Add non-prod ODIC URL warning on admin settings UI. 2024-10-13 18:53:39 +05:30
Kailash Nadh
af06d2e462 Upgrade prismjs. 2024-10-13 18:16:43 +05:30
Kailash Nadh
3671a5254e Update profile UI with new user data structures. 2024-10-13 17:03:58 +05:30
Kailash Nadh
ae2a386193 Add support for "list roles".
This commit splits roles into two, user roles and list roles, both of which
are attached separately to a user.

List roles are collection of lists each with read|write permissions, while
user roles now have all permissions except for per-list ones.

This allows for easier management of roles, eliminating the need to clone and
create new roles just to adjust specific list permissions.
2024-10-13 17:03:58 +05:30
Kailash Nadh
12a6451ed0 Add list permission check to subscriber calls. 2024-10-13 17:03:55 +05:30
Kailash Nadh
d74e067961 Add per-list permission to list management.
- Filter lists by permitted list IDs in DB get calls.
- Split getLists() handlers into two (one, all) for clarity.
- Introduce new `subscribers:get_by_list` permission.
- Tweak UI rendering to work with new per-list permssions.
2024-10-13 16:59:52 +05:30
Kailash Nadh
982e8d8320 Fix post v4.x.x upgrade warning on admin UI. 2024-10-13 16:59:52 +05:30
Kailash Nadh
0bea9989ec Fix role selection on in user form. 2024-10-13 16:59:52 +05:30
Kailash Nadh
b7155a45e4 Fix admin UI legacy user warning. 2024-10-13 16:59:52 +05:30
Kailash Nadh
b0f6c22baa Fix broken subscription status tag on subscriber form UI. 2024-10-13 16:59:52 +05:30
Kailash Nadh
90591fc57e Apply OIDC/user profile related changes to admin UI. 2024-10-13 16:59:52 +05:30
Kailash Nadh
193f8a866b Add one-click provider config shortcut in OIDC settings. 2024-10-13 16:59:52 +05:30
Kailash Nadh
4eabd967d8 Refactor update check.
- Switch away from GitHub releases API to a statically hosted custom
  JSON message to include richer data.
- Instead of checking 24 hours post-boot, check 15 mins later post boot
  and then every 24 hours.
- Add provision for messages to display on the admin dashboard to
  communicate important / urgent announcements.
  (Fingers crossed, this never has to be used!)
2024-10-13 16:59:52 +05:30
Kailash Nadh
a8c17780f9 Add warning on admin UI for legacy creds in the TOML file. 2024-10-13 16:59:52 +05:30
Kailash Nadh
ee90496df9 Apply minor linting fixes to role form. 2024-10-13 16:59:52 +05:30
Kailash Nadh
d52eac0948 Update user APIs and queries to embed role + list permissions. 2024-10-13 16:59:52 +05:30
Kailash Nadh
612c1d6eac Add per-list permission management to roles. 2024-10-13 16:59:52 +05:30
Kailash Nadh
19527f97eb Add new fields to /api/config to remove /settings dependency in camapign UI. 2024-10-13 16:59:52 +05:30
Kailash Nadh
f69aa300b4 Move User/Roles nav items under Settings. 2024-10-13 16:59:52 +05:30
Kailash Nadh
4a69f0ac5b Minor refactor to subscribers UI. Remove superfluous status column. 2024-10-13 16:59:52 +05:30
Kailash Nadh
474f93559f Add permission checks to admin UI to toggle visibility/functionality of components. 2024-10-13 16:59:52 +05:30
Kailash Nadh
09145b4abe Fix profile edit page. 2024-10-13 16:59:52 +05:30
Kailash Nadh
32d5823dfe Refactor 'super' user type to a pre-defined super admin role. 2024-10-13 16:59:52 +05:30
Kailash Nadh
8126eec358 Restyle tags on the UI. 2024-10-13 16:59:51 +05:30