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

Add folder delete and rename behavior #355

Merged
merged 3 commits into from
Oct 12, 2024
Merged

Add folder delete and rename behavior #355

merged 3 commits into from
Oct 12, 2024

Conversation

benjreinhart
Copy link
Contributor

Need to fix folder renaming, but otherwise this is good to go.

Copy link
Contributor

@nichochar nichochar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

router.delete('/apps/:id/directories', cors(), async (req, res) => {
const { id } = req.params;

// TODO: validate and ensure path is not absolute
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've wanted some path cleaning utils also in other places, this is a good idea. It's particularly useful given that LLMs are giving us paths which i have less confidence in.

packages/web/src/components/apps/use-files.tsx Outdated Show resolved Hide resolved
@benjreinhart benjreinhart merged commit f53eed4 into main Oct 12, 2024
3 checks passed
@benjreinhart benjreinhart deleted the filetree branch October 12, 2024 23:23
BeRecursive22 pushed a commit to BeRecursive22/srcbook that referenced this pull request Oct 13, 2024
* Add folder delete and rename behavior

* Remove unused files state

* Fix lint warnings
nichochar pushed a commit that referenced this pull request Oct 14, 2024
#333)

* [FIX]:285 - Type proccess.env based off the available secrets in a notebook

* [ADD] - changeset

* [FIX] - linting and formatting

* Style apps page sidebar and header (#340)

* Update sans font (#341)

* File tree functionality and styles (#344)

* Add support for deleting and renaming files (#345)

* Add support for deleting and renaming files

* Fix lint

* Exclude a few directories

* Implement top level create file and folder (#346)

* Homepage UI Rework! (#348)

* inital homepage rework, sections, card style, srcbook to notebook

* fix lil linter error

* move user facing Srcbook (in ref to notebook) to Notebook

* style up to match figma

* some cleanup around purples on create app (#351)

* fix CI bug with pnpm CI mismatch in release (#354)

* Add logic to represent booting state within preview panel and parse stdout from vite to get port (#349)

* feat: add logic to represent booting state within preview panel and parse stdout from vite to get port

* fix: run npm run format

* Add folder delete and rename behavior (#355)

* Add folder delete and rename behavior

* Remove unused files state

* Fix lint warnings

* [FIX] - env type errors

* put the env.d.ts file under root directory instead of src

* remove cell:format

---------

Co-authored-by: Ben Reinhart <[email protected]>
Co-authored-by: versecafe <[email protected]>
Co-authored-by: Ryan Gaus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants