Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Spaces #345

Open
wants to merge 71 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
3263b54
chore: update lucide
netchampfaris Dec 9, 2024
24b6314
chore: add tsconfig.json
netchampfaris Dec 9, 2024
334677a
fix: space list view
netchampfaris Dec 9, 2024
159cbe4
fix: show only joined spaces in sidebar
netchampfaris Dec 9, 2024
0939aef
fix: show only joined spaces in sidebar
netchampfaris Dec 11, 2024
38e815e
chore: ignore yaml from prettier
netchampfaris Dec 11, 2024
f96ed80
refactor: Discussions
netchampfaris Dec 11, 2024
ca90ab4
feat: Space pages
netchampfaris Dec 11, 2024
8a52a32
fix: update discussions query
netchampfaris Dec 11, 2024
4970758
fix: tsconfig and types for doctypes
netchampfaris Dec 11, 2024
a8d9608
fix: update yarn.lock
netchampfaris Dec 11, 2024
4f60040
chore: update vue and frappe-ui
netchampfaris Dec 11, 2024
3b03ddd
fix: SpaceOptions component
netchampfaris Dec 11, 2024
d854232
fix: Discussion page
netchampfaris Dec 11, 2024
22fe34e
fix: ignore components.d.ts
netchampfaris Dec 30, 2024
06c43b2
fix: generate interfaces for doctypes
netchampfaris Dec 30, 2024
92d872d
refactor: teams to useList
netchampfaris Dec 30, 2024
8e5af98
refactor: session to useCall
netchampfaris Dec 30, 2024
375ff31
refactor: notifications to useCall
netchampfaris Dec 30, 2024
61ff648
refactor: users to useCall
netchampfaris Dec 30, 2024
55e556a
fix: add data/spaces
netchampfaris Dec 30, 2024
d84a2aa
fix: update types
netchampfaris Dec 30, 2024
659c816
fix: update usage of new utilities
netchampfaris Dec 30, 2024
4f93269
fix: update vue-router
netchampfaris Dec 30, 2024
422e4ef
refactor: AppSidebar
netchampfaris Dec 30, 2024
4a62de6
refactor: Login.vue
netchampfaris Dec 30, 2024
42c2c9e
fix: minor typo
netchampfaris Dec 30, 2024
6d72376
fix: truncate long space name in sidebar
netchampfaris Jan 1, 2025
598bec7
refactor: space actions to use new data fetching APIs
netchampfaris Jan 1, 2025
25d6850
fix: dont allow new discussions in archived project
netchampfaris Jan 1, 2025
e2939e5
fix: update frappe-ui
netchampfaris Jan 1, 2025
eacfbbf
fix: better joined spaces logic
netchampfaris Jan 1, 2025
97ae103
fix: type dayjs and utils
netchampfaris Jan 4, 2025
7d43fdb
chore: merge intellisense.d.ts and components.d.ts
netchampfaris Jan 4, 2025
b53b15f
fix: refactor discussion list and view
netchampfaris Jan 4, 2025
6f86c19
fix: refactor task comments
netchampfaris Jan 4, 2025
11501a0
fix: refactor comments into typescript
netchampfaris Jan 4, 2025
ec07c67
fix: refactor Page
netchampfaris Jan 5, 2025
92d2c6b
refactor: TaskList
netchampfaris Jan 7, 2025
54fa82e
refactor: Task detail screen
netchampfaris Jan 7, 2025
aedaad6
refactor: command palette
netchampfaris Jan 7, 2025
d8bbe96
fix: move search below links
netchampfaris Jan 7, 2025
16b67a2
fix: update joined spaces on join/leave
netchampfaris Jan 8, 2025
f84eb77
feat: Last post reminder
netchampfaris Jan 8, 2025
1edf759
fix: revert list return format
netchampfaris Jan 8, 2025
2a74a2a
feat: clear cache functionality
netchampfaris Jan 8, 2025
f8ac585
fix: remove projects usage
netchampfaris Jan 8, 2025
25c4c79
fix: disable projects fetch
netchampfaris Jan 8, 2025
5052fb2
fix: remove ArchivedTeams from settings
netchampfaris Jan 8, 2025
e48e49b
fix: update frappe-ui
netchampfaris Jan 8, 2025
465ad05
fix: spacing
netchampfaris Jan 8, 2025
0a205ed
fix: mobile view fixes
netchampfaris Jan 8, 2025
9840725
feat: remember last feed tab in home
netchampfaris Jan 8, 2025
93cea46
fix: update frappe-ui
netchampfaris Jan 8, 2025
03b6306
fix: update discussions/tasks count from project
netchampfaris Jan 8, 2025
f05b3e5
feat: category options
netchampfaris Jan 8, 2025
224649d
fix: update frappe-ui
netchampfaris Jan 8, 2025
01fcc5a
fix: update discussion list in space discussions reactively
netchampfaris Jan 9, 2025
ae705f8
fix: explicit filters and cacheKey in discussion list
netchampfaris Jan 9, 2025
c517d02
fix: public, private and archived tabs in space list
netchampfaris Jan 9, 2025
a835754
fix: migrate members from team to project for private projects
netchampfaris Jan 9, 2025
d5ea739
fix: store new discussion as draft in localStorage
netchampfaris Jan 9, 2025
8a4df4e
fix: syntax error
netchampfaris Jan 9, 2025
5ff0570
fix: Poll styling and anonymous polls
netchampfaris Jan 9, 2025
ef34599
fix: Autosave page edits
netchampfaris Jan 9, 2025
3a2a899
fix: fetch poll doc always
netchampfaris Jan 9, 2025
8d278bf
fix: update title on input
netchampfaris Jan 9, 2025
32c7931
fix: delete comments instead of setting deleted_at
netchampfaris Jan 9, 2025
135db51
fix: add container padding in discussion view
netchampfaris Jan 10, 2025
b26a1a5
fix: mobile view styling for people and profile
netchampfaris Jan 10, 2025
03ab0db
fix: hide separator on hover
netchampfaris Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ gameplan/docs/current
gameplan/public/frontend
gameplan/www/teams.html
gameplan/www/g.html
build
build
frontend/components.d.ts
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ repos:
hooks:
- id: prettier
types_or: [javascript, vue, scss]
exclude_types: [yaml]


ci:
autoupdate_schedule: weekly
Expand Down
107 changes: 0 additions & 107 deletions frontend/components.d.ts

This file was deleted.

21 changes: 21 additions & 0 deletions frontend/frappeui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"typeGeneration": {
"input": {
"gameplan": [
"gp_project",
"gp_member",
"gp_team",
"gp_comment",
"gp_discussion",
"gp_page",
"gp_task",
"gp_poll",
"gp_guest_access",
"gp_invitation",
"gp_user_profile",
"gp_notification",
"gp_activity"
]
}
}
}
7 changes: 0 additions & 7 deletions frontend/intellisense.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/jsconfig.json

This file was deleted.

8 changes: 7 additions & 1 deletion frontend/lucideIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import * as LucideIcons from 'lucide-static'

let icons = {}
for (const icon in LucideIcons) {
let iconSvg = LucideIcons[icon]
if (icon == 'default') {
continue
}
let iconSvg = LucideIcons[icon]

// set stroke-width to 1.5
if (iconSvg && iconSvg.includes('stroke-width')) {
Expand All @@ -26,8 +26,14 @@ export default icons
function camelToDash(key) {
// barChart2 -> bar-chart-2
let withNumber = key.replace(/[A-Z0-9]/g, (m) => '-' + m.toLowerCase())
if (withNumber.startsWith('-')) {
withNumber = withNumber.substring(1)
}
// barChart2 -> bar-chart2
let withoutNumber = key.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase())
if (withoutNumber.startsWith('-')) {
withoutNumber = withoutNumber.substring(1)
}

if (withNumber !== withoutNumber) {
// both are required because unplugin icon resolver doesn't put a dash before numbers
Expand Down
8 changes: 4 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
"@vueuse/core": "^10.1.2",
"dayjs": "^1.10.7",
"feather-icons": "^4.28.0",
"frappe-ui": "^0.1.93",
"frappe-ui": "^0.1.103",
"fuzzysort": "^2.0.4",
"gemoji": "^7.1.0",
"htmldiff-js": "^1.0.5",
"socket.io-client": "^4.7.2",
"vue": "3.4.12",
"vue-router": "^4.2.2"
"vue": "^3.5.13",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@tailwindcss/container-queries": "^0.1.1",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"autoprefixer": "^10.4.2",
"cypress": "10.11.0",
"lucide-static": "^0.257.0",
"lucide-static": "^0.469.0",
"postcss": "^8.4.5",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
Expand Down
35 changes: 35 additions & 0 deletions frontend/src/components/AppLink.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<template>
<a v-if="isExternalLink" v-bind="$attrs" :href="props.to" target="_blank">
<slot />
</a>
<RouterLink v-else v-bind="$props" custom :to="props.to" v-slot="{ isActive, href, navigate }">
<a
v-bind="$attrs"
class="focus:outline-none focus-visible:ring focus-visible:ring-gray-400"
:href="href"
@click="navigate"
:class="isActive ? activeClass : inactiveClass"
>
<slot />
</a>
</RouterLink>
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { RouterLink } from 'vue-router'

defineOptions({
inheritAttrs: false,
})

const props = defineProps({
// @ts-ignore
...RouterLink.props,
inactiveClass: String,
})

const isExternalLink = computed(() => {
return typeof props.to === 'string' && props.to.startsWith('http')
})
</script>
Loading
Loading