Commit Graph

4388 Commits

Author SHA1 Message Date
dal 89e69c8ef4
Merge pull request #538 from buster-so/dallin/bus-1419-enable-sharing-of-dashboards-or-collections-with-workspace
Workspace Sharing
2025-07-18 07:01:44 -07:00
Devin AI e0f3270802 fix: update story mock endpoint to use new dictionaries/currency route
Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-18 12:56:52 +00:00
Devin AI 30fc4fda18 feat: move currencies endpoint to dictionaries route
- Move currency endpoint from /api/v2/currency to /api/v2/dictionaries/currency
- Follow existing dictionaries pattern with separate config.ts and index.ts
- Update web API calls to use new endpoint location
- Remove old currency route registration and files
- Preserve all existing functionality and types

The new endpoint is accessible at /api/v2/dictionaries/currency and maintains
the same response format and authentication requirements.

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-18 12:56:26 +00:00
dal a7e43c665e
fix unit tests 2025-07-18 00:04:28 -06:00
Devin AI 615f433b82 fix: resolve TypeScript implicit any errors and address PR review comments
- Add proper type annotations for theme parameters in useThemeOperations and ColorsApp
- Make onSelectTheme async for consistency
- Remove unused imports (useGetUser, useUpdateOrganization)
- Add userConfig to useMemo dependency array

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-18 06:02:55 +00:00
Devin AI 28b16a92c1 clean: remove old hook file from generic hooks directory
Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-18 05:32:49 +00:00
Devin AI 481b816152 refactor: move useThemeOperations hook to colors feature directory
- Move hook from generic src/hooks to src/components/features/colors for better organization
- Update import paths in ColorsApp and DefaultThemeSelector
- Remove export from generic hooks index file

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-18 05:21:59 +00:00
Devin AI d9dc420137 feat: add hideThreeDotMenu prop to conditionally show theme menu based on admin status
- Add hideThreeDotMenu optional boolean prop to IColorTheme interface
- Update ThemeList component to check admin status and hideThreeDotMenu prop before showing three dot menu
- Set hideThreeDotMenu: false for userConfig organization themes and true for dictionary themes in ColorsApp
- Create reusable useThemeOperations hook for theme operations (onCreateCustomTheme, onDeleteCustomTheme, onModifyCustomTheme, onSelectTheme)
- Update DefaultThemeSelector to use the new hook
- Wrap EditCustomThemeMenu with AddThemeProviderWrapper in ColorsApp

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-18 05:16:15 +00:00
dal 51da02efbb
update package.json pass if no unit tests 2025-07-17 23:03:54 -06:00
Nate Kelley 55e32c573e
Merge pull request #543 from buster-so/big-nate/bus-1424-default-color-palette-in-workspace-settings
update theme wrapper
2025-07-17 23:02:59 -06:00
Nate Kelley d6f0dd3bb5
update theme wrapper 2025-07-17 23:02:42 -06:00
Nate Kelley 114ee3592a
Merge pull request #542 from buster-so/big-nate/bus-1424-default-color-palette-in-workspace-settings
Update color apps to include custom themes
2025-07-17 22:52:15 -06:00
Nate Kelley ea0048e8e2
Update color apps to include custom themes 2025-07-17 22:51:26 -06:00
Nate Kelley cde45ad869
key iterations and type fixes 2025-07-17 22:42:12 -06:00
dal ba61b6a3ea
Merge remote-tracking branch 'origin/staging' into dallin/bus-1380-fix-unit-tests 2025-07-17 22:31:32 -06:00
Nate Kelley 9f86f337ff
Merge branch 'staging' into dallin/bus-1419-enable-sharing-of-dashboards-or-collections-with-workspace 2025-07-17 22:13:53 -06:00
Nate Kelley 0a34db8989
revise front end to use shared components 2025-07-17 22:12:12 -06:00
Nate Kelley 70a5fd6ec0
Merge pull request #540 from buster-so/big-nate/bus-1424-default-color-palette-in-workspace-settings
Big nate/bus 1424 default color palette in workspace settings
2025-07-17 18:53:59 -06:00
Nate Kelley 10e37f07de
update all types to work better together 2025-07-17 18:51:45 -06:00
Nate Kelley 09e4b36bf5
add dictionaries for color schemes 2025-07-17 17:16:15 -06:00
dal cd8a50403f
Merge branch 'staging' into dallin/bus-1419-enable-sharing-of-dashboards-or-collections-with-workspace 2025-07-17 17:16:07 -06:00
dal 525a2c5e23
fix list logic 2025-07-17 17:04:30 -06:00
dal b6cf6539ea
Merge branch 'origin/staging' into dallin/bus-1380-fix-unit-tests - Resolved conflicts in CLAUDE.md 2025-07-17 16:52:03 -06:00
dal 9f8b964381
Merge pull request #532 from buster-so/devin/1752763318-fix-unit-tests-across-packages
Fix unit tests across packages - move tests alongside source files and ensure proper mocking
2025-07-17 15:44:16 -07:00
dal 54fcd12979
Merge pull request #537 from buster-so/devin/BUS-1435-1752781371
feat(slack): implement scope validation and re-installation flow for BUS-1435
2025-07-17 15:40:04 -07:00
Devin AI e115dd28b2 fix(slack): resolve scope validation and default channel issues
- Add missing 'channels:join' and 'channels:manage' to required OAuth scopes
- Update scope validation to handle comma-separated scope format
- Include defaultChannel in 're_install_required' status response
- Ensures complete integration data is returned in all status cases

Fixes scope validation for existing integrations and missing default channel data in API responses.

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 22:33:00 +00:00
dal 6dd27e04f5
Merge pull request #535 from buster-so/devin/BUS-1434-1752774026
Implement version-based deduplication in file selection for BUS-1434
2025-07-17 15:31:06 -07:00
Nate Kelley d2cd4fb173
create default them component 2025-07-17 16:24:46 -06:00
dal cc2dd7fa61
Enhance workspace member count integration across various handlers and components
- Introduced `count_workspace_members` utility function to retrieve the number of active users in a workspace.
- Updated chat, collection, dashboard, and metric handlers to include `workspace_member_count` in their responses.
- Modified relevant types to accommodate the new `workspace_member_count` field.
- Adjusted frontend components to display the number of workspace members in the ShareMenu and related UI elements.

These changes improve the visibility of workspace member information and enhance the overall user experience.
2025-07-17 16:21:14 -06:00
Nate Kelley e803d76f52
finalize default theme base 2025-07-17 15:59:37 -06:00
Nate Kelley aa8da2ae11
update to custom theme base 2025-07-17 15:52:09 -06:00
dal e1ff5098fd
nucleo filled 2025-07-17 15:49:50 -06:00
dal f71973eac2
Enhance ShareMenu and metric mocks with workspace sharing updates
- Adjusted the ShareMenu component styles for improved layout consistency.
- Added `workspace_sharing` property with a default value of 'none' in metric-related mocks and tests.
- Updated the mock dashboard to include the new `workspace_sharing` field.

These changes improve the UI and ensure that the workspace sharing feature is properly represented in the mock data.
2025-07-17 15:44:36 -06:00
Nate Kelley 490967a1bc
add additional context to menus 2025-07-17 15:38:47 -06:00
dal 4e2b6c235e
Refactor workspace sharing permissions across assets
- Updated the `WorkspaceSharing` enum to use camelCase for serialization.
- Introduced `workspace_permissions` field in update requests for chats, collections, dashboards, and metrics.
- Implemented handling of workspace sharing permissions in respective update handlers, allowing for setting and removing permissions.
- Adjusted frontend components and API interfaces to align with the new `workspace_sharing` naming convention.

This change enhances the consistency and usability of workspace sharing across different asset types.
2025-07-17 15:26:26 -06:00
Devin AI 623aaf2fb1 fix(slack): include status field in integration API response
- Add missing status field to GET /api/v2/slack/integration response
- Ensures 're_install_required' status reaches the UI for yellow button display
- Critical fix for scope validation feature to work end-to-end

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 21:24:48 +00:00
Nate Kelley 74aebb4291
color picker drag update for bug 2025-07-17 15:10:51 -06:00
Nate Kelley ba8c4640bf
Update NewThemePopup.tsx 2025-07-17 14:54:44 -06:00
dal d9f9182ab2
ui components and return the values 2025-07-17 14:51:53 -06:00
Nate Kelley b27dc430d9
create basic color spickers 2025-07-17 14:44:20 -06:00
Devin AI 55af2727a1 refactor(slack): extract shared scope validation helper function
- Create validateScopes helper to avoid code duplication
- Use shared function in both initiateOAuth and getIntegrationStatus
- Addresses code review feedback from greptile-apps[bot]

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 20:03:25 +00:00
dal 1e705c9828
Implement collection access checks for chats and dashboards
- Updated `get_chat_handler` to check for collection access when a user lacks direct permission.
- Modified `get_dashboard_handler` to first verify collection access before checking chat access.
- Added `check_chat_collection_access` function to validate user access to chats via collections.
- Enhanced `check_metric_dashboard_access` to include collection access checks concurrently with other permission checks.

This change improves the permission model by allowing access to chats and dashboards through associated collections, enhancing user experience and security.
2025-07-17 14:01:45 -06:00
Devin AI 077d6de476 feat(slack): implement scope validation and re-installation flow for BUS-1435
- Create centralized OAuth scopes constants file
- Add scope validation to integration status check
- Update OAuth flow to handle re-installations while preserving user settings
- Add yellow 'Re-install Required' button to UI when scopes don't match
- Implement proper error handling and rollback logic for failed re-installations

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 19:54:49 +00:00
Nate Kelley f77844fdab
Merge pull request #536 from buster-so/big-nate/bus-1424-default-color-palette-in-workspace-settings
default color palette in workspace settings - api routes
2025-07-17 13:20:18 -06:00
Nate Kelley 5dd7b20f25
fix broken linting 2025-07-17 13:18:32 -06:00
dal 955aab3232
get max permissions between direct and workspace 2025-07-17 13:14:57 -06:00
Nate Kelley 64def9918d
Merge branch 'big-nate/bus-1424-default-color-palette-in-workspace-settings' of https://github.com/buster-so/buster into big-nate/bus-1424-default-color-palette-in-workspace-settings 2025-07-17 13:12:38 -06:00
Nate Kelley b8de7a5c51
update rules 2025-07-17 13:12:11 -06:00
Nate Kelley 8c562c70b5
Update apps/server/src/api/v2/organization/PUT.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-17 13:11:04 -06:00
Nate Kelley 0d5a881b89
Update packages/database/.cursor/schema.mdc
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-17 13:10:19 -06:00