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

UI updates #102

Open
wants to merge 40 commits into
base: additional-api-updates
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7365069
feat: Add dark/light modes including map
annehaley Jan 26, 2025
c23ecd7
refactor: Use `setup` syntax in `Map.vue`
annehaley Jan 27, 2025
672442f
feat: Add Sidebars component
annehaley Jan 27, 2025
2144f67
feat: Add draggable and resizeable floating panels to sidebars
annehaley Jan 27, 2025
febe644
feat: Add user options menu and allow theme toggle
annehaley Jan 28, 2025
c5872ab
feat: Dynamic styling for map attribution according to theme and side…
annehaley Jan 28, 2025
d6e828b
feat: Add controls bar with screenshot function
annehaley Jan 29, 2025
41c3952
refactor: Update ProjectConfig UI
annehaley Jan 29, 2025
8eae7b2
chore: Resolve compiler macros no longer need to be imported warnings
annehaley Jan 30, 2025
3e77557
refactor: Update Charts panel
annehaley Jan 30, 2025
7860909
refactor: Update Analytics panel
annehaley Jan 30, 2025
394dc27
style: Hide Legends panel for now
annehaley Jan 30, 2025
dec5c2d
chore: Remove unused component files
annehaley Jan 30, 2025
d33f564
refactor: Update types and store
annehaley Jan 31, 2025
494ece7
refactor: Update Dataset panel and Project config
annehaley Jan 31, 2025
0167835
fix: Implement search bar for charts and analytics
annehaley Feb 5, 2025
252addd
feat: Add Selected Layers Panel
annehaley Feb 5, 2025
96f2005
fix: Allow adding multiple copies of the same layer
annehaley Feb 5, 2025
bdc17a8
feat: Layer removal and visibility toggle
annehaley Feb 5, 2025
69874cf
feat: Basic map layers for raster and vector sources
annehaley Feb 6, 2025
22ea8ad
refactor: Create `themes.ts` to define theme colors
annehaley Feb 6, 2025
5e85413
feat: Update Map Tooltip
annehaley Feb 6, 2025
69b3e1a
chore: Remove outdated functions and leave placeholders for reimpleme…
annehaley Feb 6, 2025
f8b6d6e
feat: Update raster tooltip logic
annehaley Feb 6, 2025
90ee9f9
feat: Add frame and style controls
annehaley Feb 7, 2025
0cb3ee4
chore: Update docker compose config, allow storing MapTiler API key i…
annehaley Feb 11, 2025
19f24b0
fix: Adjust floating panel behavior
annehaley Feb 11, 2025
c7338a9
fix: Create separate functions for clearing state upon different trig…
annehaley Feb 11, 2025
1444030
style: Update colors and appearance with new theme palettes
annehaley Feb 13, 2025
032cc69
refactor: update `getDefaultColor` to cycle between 4 basic colors
annehaley Feb 13, 2025
3b6d0ab
fix: Update map tooltip
annehaley Feb 13, 2025
51f4eee
refactor: Update networks and GCC logic
annehaley Feb 14, 2025
f3e8bf0
refactor: Isolate and fix panel drag logic
annehaley Feb 18, 2025
2f9eb54
refactor: Update Analytics Panel
annehaley Feb 19, 2025
861b65f
fix: Apply same default color to frames in the same layer
annehaley Feb 19, 2025
9b72e52
fix: Miscellaneous appearance and behavior fixes
annehaley Feb 19, 2025
7d08318
fix: Apply opacity to visible frames only
annehaley Feb 19, 2025
4950c20
style: Font and icon update
annehaley Feb 25, 2025
f346a2c
feat: Add "Map Only" option to screenshot menu
annehaley Feb 25, 2025
bb00946
feat: Allow docking floating panels in either sidebar in any order
annehaley Feb 25, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ rabbitmq/*
staticfiles/
sample_data/downloads/*
jupyter/.ipynb_checkpoints
dev/.env.web.docker-compose

# osmnx data cache folder
cache
Expand Down
13 changes: 8 additions & 5 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
version: '3'
services:
django:
build:
context: .
dockerfile: ./dev/Dockerfile
command: [ "./manage.py", "runserver", "0.0.0.0:8000" ]
command: ["./manage.py", "runserver", "0.0.0.0:8000"]
# Log printing via Rich is enhanced by a TTY
tty: true
env_file: ./dev/.env.docker-compose
Expand Down Expand Up @@ -34,7 +33,7 @@ services:
"worker",
"--loglevel",
"INFO",
"--without-heartbeat"
"--without-heartbeat",
]
# Docker Compose does not set the TTY width, which causes Celery errors
tty: false
Expand All @@ -59,11 +58,15 @@ services:

web:
image: node:latest
command: [ "npm", "run", "serve" ]
command: ["npm", "run", "serve"]
working_dir: /web
env_file:
# git ignored file for VUE_APP_MAPTILER_API_KEY
- path: ./dev/.env.web.docker-compose
required: false
volumes:
- ./web:/web
- ./.git:/web/.git # allow fetching version tag
- ./.git:/web/.git # allow fetching version tag
ports:
- 8080:8080
environment:
Expand Down
3 changes: 3 additions & 0 deletions uvdat/core/rest/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ def get_available_simulations(project_id: int):
queryset=queryset, projects=Project.objects.filter(id=project_id)
)
]
elif len(options):
options_type = options[0].__class__
args.append(
{
'name': a['name'],
'options': options,
'type': options_type.__name__,
}
)
details['args'] = args
Expand Down
1 change: 1 addition & 0 deletions web/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VUE_APP_OAUTH_CLIENT_ID=cBmD6D6F2YAmMWHNQZFPUr4OpaXVpW5w4Thod6Kj
VUE_APP_API_ROOT=http://localhost:8000/api/v1
VUE_APP_OAUTH_API_ROOT=http://localhost:8000/oauth/
VUE_APP_MAPTILER_API_KEY=myMapTilerKey
19 changes: 19 additions & 0 deletions web/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// .eslintrc.js
module.exports = {
"extends": [
"plugin:vue/base",
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [".vue"],
"ecmaVersion": 2021
},
"plugins": [
"vue",
"@typescript-eslint"
],
rules: {
'vue/script-setup-uses-vars': 'error',
}
}
87 changes: 85 additions & 2 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"buffer": "^6.0.3",
"core-js": "^3.8.3",
"git-describe": "^4.1.1",
"html2canvas": "^1.4.1",
"lodash": "^4.17.21",
"maplibre-gl": "^4.6.0",
"shpjs": "^4.0.4",
Expand Down
5 changes: 4 additions & 1 deletion web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=format_line_spacing" /> <title>
UVDAT
</title>
</head>
Expand Down
Loading