Commit Graph

3845 Commits (a7c26235c93b60fc1b83aa875cbca162abdc6d92)
 

Author SHA1 Message Date
Nic Luckie a7c26235c9
Update web/src/components/ConfirmDialog/index.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nic Luckie <nicolasluckie@users.noreply.github.com>
3 weeks ago
Nic Luckie 559850523b
Update web/src/components/Settings/AccessTokenSection.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nic Luckie <nicolasluckie@users.noreply.github.com>
3 weeks ago
Nic Luckie d3e6302526 refactor: simplify access token toast and remove unnecessary fragment wrapper
- Removed redundant React fragment in Attachments.tsx for cleaner structure
- Removed fallback logic for access token description in toast; use created.description directly since description is always required by client-side validation.
- Removed unused i18n key access-token-created-default since description is always present
3 weeks ago
Nic Luckie c7b53930cc Update CreateAccessTokenDialog and AccessTokenSection; improve handling 3 weeks ago
Nic Luckie 1684b78cd3
Update ShortcutsSection.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nic Luckie <nicolasluckie@users.noreply.github.com>
3 weeks ago
Nic Luckie 8f7fdca17b
Update index.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nic Luckie <nicolasluckie@users.noreply.github.com>
3 weeks ago
Nic Luckie ea3b6a7c77 refactor(ui): remove Markdown rendering from ConfirmDialog component
- Removed Markdown rendering capability from ConfirmDialog component
- Removed marked library dependency from package.json and lockfile
- Updated all component usages to use plain text descriptions
- Converted irreversible action warnings from Markdown to plain text
- Simplified component API by removing descriptionMarkdown prop
- Updated ConfirmDialog README to reflect simplified implementation
- Retained DOMPurify dependency for other components that need it
- Updated en.json translations to remove Markdown formatting
3 weeks ago
Nic Luckie 72fcbf7e10 fix(web): improve ConfirmDialog reliability
- Fixed potential undefined username toast in MemberSection by storing username locally before clearing target state
- Standardized data-loading attribute on confirm button to use boolean value directly
3 weeks ago
Nic Luckie 9beb6ca5c1 fix(web): improve destructive flows, i18n specificity, and remove unused attachments dialog
- Attachments: reverted unused bulk "Delete all unused" ConfirmDialog and pruned related unused vars (flow not user-triggered)
- Members: capture username before clearing archive/delete targets to avoid brittle state reads
- Access tokens: capture fields before clearing delete target; safe toast + functional state update
- Sessions: use “Revoke” label instead of generic delete wording
- Tags: replace incorrect generic deletion success message with tag.delete-success i18n key
- ConfirmDialog: restructured into its own folder (index + module + README) to align with component organization guidelines
- General: eliminate reliance on reading state immediately after reset; tighten handler robustness
3 weeks ago
Nic Luckie 30795d1d9c feat(web): introduce accessible ConfirmDialog and migrate confirmations; add Markdown-safe descriptions
Why
- window.confirm is not supported on Brave Mobile for iOS, which blocked destructive actions like deleting memos. Replacing it with an accessible, app-native dialog restores mobile functionality and improves UX.

What changed
- New ConfirmDialog component
  - Replaces window.confirm usage across the app.
  - Props: open/onOpenChange, title, description or descriptionMarkdown, confirm/cancel labels, onConfirm, confirmVariant.
  - Prevents double-submit and accidental dismiss while confirming (loading state).
- Markdown support for dialog descriptions
  - descriptionMarkdown renders via marked and is sanitized with DOMPurify before injection.
  - Keeps translations readable (Markdown) and safe (sanitized HTML).
- Member management flows
  - Updated archive/delete dialogs to use ConfirmDialog.
  - Added toast notifications for archive, restore, and delete actions.
- i18n: added/updated relevant translation keys (en).

Accessibility and mobile
- Dialog buttons are touch-friendly.
- Escape and outside-click behavior matches expectations.

Manual Tests - Verified in Brave desktop (v1.82.166) and Brave for iOS (v1.81 (134))
- Memos:
  - Archive → confirm archival and shows success toast.
  - Restore (only when archived) → confirm restoration and shows success toast.
  - Delete → destructive dialog → confirm deletion and shows success toast.
- Shortcuts: create → menu → Delete → dialog appears; cancel keeps; confirm deletes and list refreshes.
- Access tokens: Settings → Access Tokens → Delete → dialog title shows masked token; confirm deletes.
- Members: Settings → Members → non-current user:
  - Archive → warning dialog → confirm archives.
  - Delete (only when archived) → destructive dialog → confirm deletes.
- Sessions: Settings → Sessions → Revoke non-current session → dialog appears; confirm revokes; current session remains disabled.
- Webhooks: Settings → Webhooks → Delete → dialog appears; confirm deletes and list refreshes.
- Mobile/accessibility: focus trap, inert background, tappable buttons, Escape/outside-click behavior verified.

Notes / follow-ups
- Deleting a member currently removes the account but does not cascade-delete the member’s content. Not sure if this is intended or not, so I left the warning description more general for now.
3 weeks ago
Steven 7ab57f8ed2 chore: upgrade frontend dependencies 4 weeks ago
Steven 6d1485d168 fix: reset state on dialog close and improve dialog open handling 4 weeks ago
Steven 5ad2038b1a feat: update gomark dependency and refactor markdown parsing logic 4 weeks ago
Steven b7f792cbf7 chore: tweak development instructions 4 weeks ago
Steven f44b0850f4 feat: enhance CodeBlock component with theme-aware syntax highlighting 4 weeks ago
Steven c3d4f8e9d1 feat: implement user-specific SQL converter for filtering in user service 1 month ago
Steven 383553d3c8 feat: add DOMPurify for sanitizing HTML content in CodeBlock component 1 month ago
Giacomo Cerquone f4e23727bb
fix: avoid hiding reaction selector and keep it always shown for mobile (#5079) 1 month ago
Giacomo Cerquone 60123de318
fix: update useEffect dependency to location.key so drawer is closed also when re-navigating to current route (#5077) 1 month ago
dependabot[bot] 3be1b3a1e3
chore: bump @radix-ui/react-checkbox from 1.3.2 to 1.3.3 in /web (#5062)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] fb8a997248
chore: bump @radix-ui/react-dropdown-menu from 2.1.15 to 2.1.16 in /web (#5063)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] b2a259d0ff
chore: bump react-router-dom from 7.7.1 to 7.8.2 in /web (#5061)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] b8fe953833
chore: bump @radix-ui/react-select from 2.2.5 to 2.2.6 in /web (#5065)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
Steven 5a1af7b240 fix: adjust badge height 1 month ago
dependabot[bot] 0c516c83bd
chore: bump nice-grpc-web from 3.3.7 to 3.3.8 in /web (#5056)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] 9c67bbbbba
chore: bump tw-animate-css from 1.3.6 to 1.3.7 in /web (#5053)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] 74a44ac3e2
chore: bump actions/checkout from 4 to 5 (#5052)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] fdbcd20ad1
chore: bump react-hot-toast from 2.5.2 to 2.6.0 in /web (#5051)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] 56fd9fd7d5
chore: bump @bufbuild/protobuf from 2.6.2 to 2.7.0 in /web (#5057)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] 9c456c3b72
chore: bump i18next from 25.3.2 to 25.4.2 in /web (#5058)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot] 1954eeb37b
chore: bump github.com/spf13/cobra from 0.0.3 to 1.10.1 (#5059)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
Johnny ebff15149b fix: use Fprint instead of Fprintf for development mode message 1 month ago
Johnny 3a7538f787 chore: fix linter 1 month ago
Johnny a373673087 chore: go mod tidy 1 month ago
Johnny 7cc2df9254 chore: fix linter 1 month ago
Johnny 3d1c197764 chore: upgrade golangci-lint version to v2.4.0 1 month ago
Johnny 9557150a87 chore: upgrade go version to 1.25 1 month ago
Johnny e427344e82 chore: upgrade dependencies 1 month ago
Johnny 12ab7e9dde chore: tweak docs 2 months ago
Johnny 3ba3f610c9 chore: upgrade typescript-eslint 2 months ago
Johnny 0b4252d1a3 chore: fix linter 2 months ago
Johnny cf29684882 chore: tweak links 2 months ago
Johnny 01c6aca788 chore: update readme with star history section 2 months ago
Xiang Jaywhen 016efe50a2
fix: update the link of Installation Guide (#5024)
Signed-off-by: Xiang Jaywhen <jaywhenx@gmail.com>
2 months ago
varsnotwars e2454a8ae4
chore: add test for ListMemos (#5015) 2 months ago
boojack c5a61ba89e
chore: tweak README.md
Signed-off-by: boojack <stevenlgtm@gmail.com>
2 months ago
Steven 0d658088dc chore: bump version to 0.25.1 2 months ago
Steven e07e9f2e9f fix: theme selector 2 months ago
varsnotwars fbcdf0fba7
fix update theme not saving (#5012) 2 months ago
Johnny 01d3f2f86c chore: tweak dark theme 2 months ago