Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
3c80e07
Modernize Frauden UI
rcarvajalp May 9, 2026
488b2e5
Merge pull request #1 from rcarvajalp/codex/estilizar-interfaz-de-usu…
rcarvajalp May 9, 2026
8f2f915
Update hero subtitle
rcarvajalp May 10, 2026
b581721
Merge pull request #2 from rcarvajalp/codex/analyze-options-to-disabl…
rcarvajalp May 10, 2026
0fbda64
Grant delete where storage write is allowed
rcarvajalp May 11, 2026
512a08d
Merge pull request #3 from rcarvajalp/codex/locate-folder-or-bucket-c…
rcarvajalp May 11, 2026
23dca19
Use resource-defined S3 bucket names
rcarvajalp May 11, 2026
2b5b6eb
Merge pull request #4 from rcarvajalp/codex/locate-buckets-without-pr…
rcarvajalp May 11, 2026
b5f6ebe
Avoid physical bucket rename collision
rcarvajalp May 11, 2026
094eac4
Merge pull request #5 from rcarvajalp/codex/locate-buckets-without-pr…
rcarvajalp May 11, 2026
3ff587f
Remove reusable bucket name constants
rcarvajalp May 11, 2026
8a1d05b
Merge branch 'main' into codex/locate-buckets-without-prefixes-or-suf…
rcarvajalp May 11, 2026
b8225c9
Merge pull request #6 from rcarvajalp/codex/locate-buckets-without-pr…
rcarvajalp May 11, 2026
d3098d1
Revert "Merge pull request #5 from rcarvajalp/codex/locate-buckets-wi…
rcarvajalp May 12, 2026
47fef5c
Revert "Merge pull request #4 from rcarvajalp/codex/locate-buckets-wi…
rcarvajalp May 12, 2026
7fa26ae
quitar la palabra clave bucket del nombre del storage
rcarvajalp May 12, 2026
dd647df
Tighten hero title layout
rcarvajalp May 12, 2026
3190c6d
Merge pull request #7 from rcarvajalp/codex/create-pull-request
rcarvajalp May 12, 2026
4435e4d
Merge branch 'main' of https://github.com/rcarvajalp/frauden-amplify-…
rcarvajalp May 12, 2026
648c17a
Show storage bucket friendly names
rcarvajalp May 12, 2026
a7756f5
Merge branch 'main' into codex/create-pull-request-cwyxy7
rcarvajalp May 12, 2026
2156983
Merge pull request #8 from rcarvajalp/codex/create-pull-request-cwyxy7
rcarvajalp May 12, 2026
1db3610
Fix storage browser data table override
rcarvajalp May 12, 2026
b615b17
Merge pull request #9 from rcarvajalp/codex/fix-typescript-build-errors
rcarvajalp May 12, 2026
a3884c7
Fix storage browser friendly bucket labels
rcarvajalp May 12, 2026
6cfbb4f
Merge pull request #10 from rcarvajalp/codex/fix-folder-table-logic-e…
rcarvajalp May 12, 2026
b9ff508
Show real bucket names in storage browser
rcarvajalp May 12, 2026
e8a95aa
Merge pull request #11 from rcarvajalp/codex/revert-friendly-bucket-l…
rcarvajalp May 12, 2026
fa516b8
Hide bucket column in locations table
rcarvajalp May 12, 2026
dc02513
Merge pull request #12 from rcarvajalp/codex/ocultar-columna-nombre-b…
rcarvajalp May 12, 2026
bed39c1
Hide bucket column in folders table
rcarvajalp May 12, 2026
db7044c
Merge pull request #13 from rcarvajalp/codex/remove-bucket-name-colum…
rcarvajalp May 12, 2026
a2a9d2a
Add knowledge sync button
rcarvajalp May 12, 2026
2ad4f3c
Merge pull request #14 from rcarvajalp/codex/add-sync-knowledge-butto…
rcarvajalp May 12, 2026
7d66a4d
Add knowledge sync button tooltip
rcarvajalp May 17, 2026
174bf54
Merge pull request #15 from rcarvajalp/codex/remove-text-and-add-tool…
rcarvajalp May 17, 2026
6568376
Restrict file deletion to eliminadores group
rcarvajalp May 17, 2026
e3fc06d
Merge pull request #16 from rcarvajalp/codex/add-user-group-for-file-…
rcarvajalp May 17, 2026
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ This template equips you with a foundational React application integrated with A
- **Authentication**: Setup with Amazon Cognito for secure user authentication with email login.
- More info on how to setup and configuration option: https://docs.amplify.aws/react/build-a-backend/auth/set-up-auth/
- **Storage**: Configured with multiple S3 buckets and granular access controls. The sample is configured with
- Default storage bucket with public, admin, and private access paths
- Secondary storage bucket with separate backup paths.
- Default `frauden-bucket` storage bucket with `doctrina`, `medios`, `jurisprudencia`, and `legislacion` access paths for authenticated readers and admin read/write/delete access.
- Secondary `frauden-expedientes` storage bucket with `publico`, `confidencial`, and owner-scoped `privado/{entity_id}` access paths, including delete permissions wherever write access is granted.
- More info on how to setup : https://docs.amplify.aws/react/build-a-backend/storage/set-up-storage/#building-your-storage-backend
- **UI Components**: Pre-integrated Amplify UI React components including:
- Authenticator for sign-in/sign-up flows
Expand Down
2 changes: 1 addition & 1 deletion amplify/auth/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export const auth = defineAuth({
loginWith: {
email: true,
},
groups: ['admin']
groups: ['admin', 'eliminadores'],
});
17 changes: 13 additions & 4 deletions amplify/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource';
import { storage, secondaryStorage } from './storage/resource';


/**
* @see https://docs.amplify.aws/react/build-a-backend/ to add storage, functions, and more
*/
defineBackend({
const backend = defineBackend({
auth,
storage,
secondaryStorage
storage,
secondaryStorage,
});

// Do not override cfnBucket.bucketName here. S3 bucket names are globally unique,
// and Amplify's generated physical names avoid collisions during deployments.

const { cfnUserPool } = backend.auth.resources.cfnResources;

cfnUserPool.adminCreateUserConfig = {
...cfnUserPool.adminCreateUserConfig,
allowAdminCreateUserOnly: true,
};
61 changes: 34 additions & 27 deletions amplify/storage/resource.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
import { defineStorage } from '@aws-amplify/backend';

export const storage = defineStorage({
name: 'myStorageBucket',
name: 'frauden',
isDefault: true,
access: (allow) => ({
'public/*': [
allow.guest.to(['read', 'write']),
allow.authenticated.to(['read', 'write', 'delete']),
access: (allow) => ({
'doctrina/*': [
allow.authenticated.to(['read']),
allow.groups(['admin']).to(['read', 'write']),
allow.groups(['eliminadores']).to(['delete']),
],
'admin/*': [
allow.groups(['admin']).to(['read', 'write', 'delete']),
allow.authenticated.to(['read'])
'medios/*': [
allow.authenticated.to(['read']),
allow.groups(['admin']).to(['read', 'write']),
allow.groups(['eliminadores']).to(['delete']),
],
'private/{entity_id}/*': [
allow.entity('identity').to(['read', 'write', 'delete'])
]
})
'jurisprudencia/*': [
allow.authenticated.to(['read']),
allow.groups(['admin']).to(['read', 'write']),
allow.groups(['eliminadores']).to(['delete']),
],
'legislacion/*': [
allow.authenticated.to(['read']),
allow.groups(['admin']).to(['read', 'write']),
allow.groups(['eliminadores']).to(['delete']),
],
}),
});

export const secondaryStorage = defineStorage({
name: 'mySecondaryStorageBucket',
access: (allow) => ({
'backup_public/*': [
allow.guest.to(['read', 'write']),
allow.authenticated.to(['read', 'write', 'delete']),
name: 'frauden-expedientes',
access: (allow) => ({
'publico/*': [
allow.authenticated.to(['read', 'write']),
allow.groups(['eliminadores']).to(['delete']),
],
'confidencial/*': [
allow.groups(['admin']).to(['read', 'write']),
allow.groups(['eliminadores']).to(['delete']),
],
'backup_admin/*': [
allow.groups(['admin']).to(['read', 'write', 'delete']),
allow.authenticated.to(['read'])
'privado/{entity_id}/*': [
allow.entity('identity').to(['read', 'write']),
allow.groups(['eliminadores']).to(['delete']),
],
'backup_private/{entity_id}/*': [
allow.entity('identity').to(['read', 'write', 'delete'])
]
})
}),
});



4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!doctype html>
<html lang="en">
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Amplify Storage Browser Sample</title>
<title>Frauden | Gestor documental</title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading