Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
42cdb7c
Initial commit to fix all known Manifest V3 bugs
codedread Jul 23, 2025
bae1022
Make fetchAllSpaces() async and get rid of the callback. Also simplif…
codedread Jul 23, 2025
ab89b80
Remove callback hell in spaces.js by rewriting as async functions.
codedread Jul 24, 2025
e6a1a9d
Modernize some JavaScript, async/await a couple more things, and shuf…
codedread Aug 1, 2025
0baf441
Clean up some logging
codedread Aug 11, 2025
cb430c2
Remove unnecessary arrow function and tighten up some indents
codedread Aug 12, 2025
deaaa90
Move all service worker files into the background folder
codedread Aug 12, 2025
85bc620
Turn more functions into async in spacesService
codedread Aug 12, 2025
3623cc0
Add {} around debug lines
codedread Aug 12, 2025
4659a64
Update dbService methods to use modern syntax (remove arrow functions)
codedread Aug 14, 2025
0cd744e
Add jsdoc for dbService methods.
codedread Aug 14, 2025
f147dba
Convert dbService fetchAllSessions() to async and update caller
codedread Aug 14, 2025
1bba3aa
Change dbService updateSession() to async code.
codedread Aug 14, 2025
07ed0c4
Make dbService createSession() async
codedread Aug 14, 2025
26ca836
Convert dbService removeSession to async
codedread Aug 14, 2025
d9635ab
Update remaining (unused) functions in dbService to async
codedread Aug 14, 2025
adde6d0
Make the db the source of truth for sessions. Ensure any changes to …
codedread Aug 14, 2025
5d4b10e
Fix SpacesService async initialization issues.
codedread Aug 26, 2025
6eec893
Fix database session updates not saving current tab state
codedread Aug 26, 2025
5ef391b
Spaces window id persistence (survives service worker restarts)
codedread Aug 26, 2025
31b8079
Fix global variables for extension window ids in background.js gettin…
codedread Aug 26, 2025
7dbd3d2
Attempt to fix the lost-space name issue once more by not clearing th…
codedread Aug 27, 2025
d723406
Turn off debug, remove some unnecessary logging and a duplicated func…
codedread Aug 27, 2025
acfb77e
Clean up some more debug logging
codedread Aug 27, 2025
d8d7bea
Move SpaceService async initialization waiting into SpacesService
codedread Aug 28, 2025
9dfd58b
Handle a situation when session.name is undefined
codedread Aug 28, 2025
ea4c32c
Clean up usages of callback-style for chrome.windows.getAll()
codedread Aug 28, 2025
045e077
Refactor code to use the async version of chrome.windows.get()
codedread Aug 28, 2025
bf14894
Clean up db.js a bit (remove dead code, change indentation, replace s…
codedread Aug 30, 2025
ae06a57
Change the Server type into a class inside db.js
codedread Aug 30, 2025
fa16aa9
Update db.js some more with cleaner jsdoc, modernized function syntax
codedread Aug 30, 2025
faaf418
Expose Server in db.js and neaten it up some more.
codedread Aug 30, 2025
40d07d2
Lil more jsdoc in the db.js
codedread Aug 30, 2025
f54ba54
Define @typedef in dbService.js for Session and update jsdoc
codedread Aug 30, 2025
e027816
Remove obsolete TODO
codedread Aug 30, 2025
93c606c
Remove ability for schema to be a function in db.js and a bit more mo…
codedread Aug 30, 2025
6bdb9e6
Turn DbSevice into a JS class for better readability
codedread Aug 30, 2025
cfcba2c
Fix indent in switcher.js
codedread Aug 30, 2025
79fb1d1
Update jsdoc for private methods in dbService.js and rename a couple …
codedread Aug 30, 2025
09e6e49
Use default parameter values for noop callbacks
codedread Aug 30, 2025
63a5b74
jsdoc for helper functions in spacesService.js
codedread Aug 30, 2025
8e79e42
Use async version of chrome.tabs.query() and make initialiseSpaces() …
codedread Aug 30, 2025
dc8e819
Change chrome.tabs.get() usage to use the async variety instead of th…
codedread Aug 30, 2025
bbf62b2
Remove callback from requestSpaceFromWindowId() and make it async
codedread Aug 30, 2025
e8c3301
Update requestCurrentSpace() to not use a callback.
codedread Aug 30, 2025
84fde29
Update extension to use the async version of chrome.runtime.sendMessa…
codedread Aug 30, 2025
ced53ea
Finish unindenting top-level functions
codedread Aug 30, 2025
e8dcbab
Convert processMessage() into an async function in a continued effort…
codedread Aug 30, 2025
4e49e19
Woops, missed this on last commit
codedread Aug 30, 2025
6b0f4c1
Convert saveNewSession() to async instead of using a callback
codedread Aug 30, 2025
fe83bd1
Update spacesService saveExistingSession() to not take a callback
codedread Aug 30, 2025
43c8938
Change SpacesService updateSessionName() and updateSessionTabs() to a…
codedread Aug 30, 2025
a81ba32
Change SpacesService deleteSession() to async and remove callback param
codedread Aug 30, 2025
e7cd278
Update background's handleDeleteSession() to not use a callback
codedread Aug 30, 2025
7ef2b8d
Update handleAddLinkToNewSession() to not use a callback
codedread Aug 30, 2025
5049425
Update handleMoveTabToNewSession() to not use a callback
codedread Aug 30, 2025
b135e85
Update handleMoveTabToWindow() and moveTabToWindow() to not use callb…
codedread Aug 30, 2025
32d59d0
Update requestAllSpaces(), handleAddLinkToSession() and handleAddLink…
codedread Aug 30, 2025
d95f7dc
Update handleWindowEvent() to not use a callback
codedread Aug 30, 2025
8685ada
Update SpacesService.handleWindowRemoved() by removing the callback
codedread Aug 30, 2025
08605e7
Update requestSpaceFromSessionId() to remove the callback param. Also…
codedread Aug 31, 2025
1856204
Remove callback from handleImportNewSession()
codedread Aug 31, 2025
766a06f
Remove an unnecessary "return await"
codedread Aug 31, 2025
8adaf0e
Remove callback from handleMoveTabToSession()
codedread Aug 31, 2025
90967a4
Remove callback from handleRestoreFromBackup()
codedread Aug 31, 2025
3bedc58
Remove callback from handleUpdateSessionName()
codedread Aug 31, 2025
60d2665
Remove callback from handleSaveNewSession(). Done callback refactor i…
codedread Aug 31, 2025
edccd10
Eliminate the last callback in background.js: the "sendResponse" para…
codedread Aug 31, 2025
204ca7f
Add first unit test for cleanUrl() and removed yarn.lock.
codedread Aug 31, 2025
bc8e39e
Add unit test for generateSessionHash()
codedread Aug 31, 2025
b1732c5
Update jest coverage for all files.
codedread Aug 31, 2025
e1d4d0f
Add unit test for cleanParameter()
codedread Sep 4, 2025
060e8b2
Tweak to README
codedread Sep 4, 2025
4fef9c7
Clean up noop in spaces.js
codedread Sep 4, 2025
c7a38fb
No, really. Clean it up
codedread Sep 4, 2025
2529bbb
Add unit tests for utils.getHashVariable()
codedread Sep 6, 2025
abb3181
Turn spacesService.filterInternalWindows() into a helper function and…
codedread Sep 6, 2025
bee1b6c
Rename test folder to tests.
codedread Sep 6, 2025
1459698
Add unit tests for spaces.js normaliseTablUrl()
codedread Sep 6, 2025
781fc01
Move getHashVariable() to common.js and eliminate duplicate getVariab…
codedread Sep 6, 2025
66ab459
Fix issue #2 by ensuring temporary sessions are returned from the ser…
codedread Sep 6, 2025
cc44644
Fix issue #5: Space rename prompts stop infinitely asking
codedread Sep 6, 2025
4202655
Fix issue #6: Remove duplicate "Unnamed window" in the "open spaces" …
codedread Sep 7, 2025
f448aa1
Fix issue #3 by escaping all HTML and adding unit tests. Flatten util…
codedread Sep 7, 2025
0e3b29e
Remove eslint and prettier (for now)
codedread Sep 7, 2025
0a70dc6
Add starter changelog
codedread Sep 7, 2025
e5d4165
Fix issue #4 and issue #7 by ensuring any database updates are carefu…
codedread Sep 7, 2025
d582d02
Fix issue #11 by restoring popup click handlers in popup.js and add a…
codedread Sep 8, 2025
d0ffdf9
Fix issue #9 be aligning the selected space properly inside spaces.js
codedread Sep 8, 2025
915d180
Fix issue where new chrome windows would not appear in the Spaces win…
codedread Sep 8, 2025
7246ad8
Refactor spacesRenderer functions to be module-level exported: getTab…
codedread Sep 8, 2025
307d014
Shuffle some functions around.
codedread Sep 8, 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
19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
/.idea/*
/.debris/*
.DS_Store
coverage/
node_modules
yarn.lock
5 changes: 0 additions & 5 deletions .prettierrc.js

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.1.4] - 2025-??-??

### Changes

- Updated to support Chrome Extension Manifest V3.
- Updated all code to modern JavaScript and improved documentation.
- Fixed [issue #3](https://github.com/codedread/spaces/issues/3) by escaping
HTML for all extension content.
- Increased unit test coverage from 0% to ???%.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ Please note that the webstore version may be behind the latest version here.

### Install as an extension from source

1. Download the **[latest available version](https://github.com/deanoemcke/spaces/archive/v1.1.1.zip)**
1. Download the **[latest available version](https://github.com/codedread/spaces/archive/v1.1.4.zip)**
2. Unarchive to your preferred location (e.g., `Downloads`).
2. In **Google Chrome**, navigate to [chrome://extensions/](chrome://extensions/) and enable <kbd>Developer mode</kbd> in the upper right corner.
3. Click on the <kbd>LOAD UNPACKED</kbd> button.
4. Browse to the _root directory_ of the unarchived download, and click <kbd>OPEN</kbd>.

> **TODO** &mdash; add more sections
> - [ ] Build from github
> - [ ] License (currently unspecified)
Loading